filebot

sync-amc.groovy

Jan 21st, 2014
6,549
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.56 KB | None | 0 0
  1. // filebot sync-amc.groovy --output "X:/output" -non-strict --action move --conflict skip
  2.  
  3.  
  4. // SCP config
  5. def config = [
  6.     server: 'example.org',
  7.     username: 'monkey',
  8.     password: 'tiger',
  9.     remoteFolder: '/home/monkey/complete/',
  10.     localFolder: 'X:/sync/'
  11. ]
  12.  
  13.  
  14. // AMC config
  15. def amc = [
  16.     minFileSize: 0,
  17.     minLengthMS: 0,
  18.     excludeList: new File(config.localFolder, 'local.excludes')
  19. ]
  20.  
  21.  
  22. def excludeList = new File(config.localFolder, 'remote.excludes')
  23. def excludes = (excludeList.exists() ? excludeList.readLines() : []) as HashSet
  24.  
  25.  
  26. // ***********   SYNC   *********** //
  27.  
  28.  
  29. include('fn:lib/ant')
  30.  
  31. def remoteFilesList = sshexec(command: """find "${config.remoteFolder}" -type f""", host: config.server, username: config.username, password: config.password)
  32. def newRemoteFiles = remoteFilesList.readLines().findAll{ !excludes.contains(it) }
  33.  
  34. println "[FIND] ${newRemoteFiles.size()} new files"
  35. if (newRemoteFiles.isEmpty())
  36.     return;
  37.  
  38. newRemoteFiles.each{ remotePath ->
  39.     def localPath = new File(config.localFolder, remotePath)
  40.     println "[SYNC] Copy [${remotePath}] to [${localPath}]"
  41.     scp(host: config.server, username: config.username, password: config.password, file: remotePath, localDir: localPath.parentFile)
  42.  
  43.     excludeList.append(remotePath + '\n') // add remote path to local exclude list
  44. }
  45.  
  46.  
  47. // ***********   AMC   *********** //
  48.  
  49.  
  50. new File(config.localFolder).listFiles().findAll{ it.isDirectory() }.each{ root ->
  51.     println "[AMC] Execute AMC on ${root}"
  52.     executeScript('fn:amc', amc, root)
  53.     executeScript('fn:cleaner', [root:true], root)
  54. }
Advertisement
Comments
  • Sardotir
    50 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • Exoyetir
    43 days
    # CSS 0.06 KB | 0 0
    1. We just shared HQ data on our channel: https://t.me/theprotocolone
Add Comment
Please, Sign In to add comment