Skip to content

Instantly share code, notes, and snippets.

View Nanodragon999's full-sized avatar
🏠
Searching for a remote work.

Norton Nanodragon999

🏠
Searching for a remote work.
  • France
View GitHub Profile
target_number=1
target_folder="folder "$target_number"/"
#set up the switch folder function, not working correctly yet though
file_count=$(expr $(\ls ${target_folder} | wc -l) - 3) #count the number of files, too slow so need to remplace with counting transfer.
inotifywait -m -q -e close_write --format %f . | while IFS= read -r file; do
#watch a directory/folder for files that have their file descriptor closed, then read the filename of the file printed by inotifywait.
if [ file_count=>400000 ]; then
#if the file count exceed 400k (or transfer in the preferred case)

Keybase proof

I hereby claim:

  • I am nanodragon999 on github.
  • I am nanodragon999 (https://keybase.io/nanodragon999) on keybase.
  • I have a public key ASCTxUCLuQYWe2DRddHMWKUMWDlBV18eZJAwjWePE20vzgo

To claim this, I am signing this object:

@Nanodragon999
Nanodragon999 / rtorrent_xmlrpc.txt
Created November 11, 2018 21:21 — forked from riptl/rtorrent_xmlrpc.txt
rtorrent XMLRPC methods
system.listMethods
system.methodExist
system.methodHelp
system.methodSignature
system.multicall
system.shutdown
system.capabilities
system.getCapabilities
add_peer
and