Skip to content

Instantly share code, notes, and snippets.

@olivejun
olivejun / resilio.txt
Created August 30, 2020 03:39 — forked from garronej/resilio.txt
Install resilio-sync on raspberry pi
mkdir /var/lib/resilio-sync/ && chown pi:pi -R /var/lib/resilio-sync
mkdir /etc/resilio-sync
nano /etc/resilio-sync/config.json
{
"storage_path" : "/var/lib/resilio-sync/",
"pid_file" : "/var/run/resilio-sync/sync.pid",
"webui" :

Keybase proof

I hereby claim:

  • I am olivejun on github.
  • I am oli_ve (https://keybase.io/oli_ve) on keybase.
  • I have a public key ASCO7v-RXTBNyAZNFrdrw83lsTNnN3llcYGaUT_Lqop3pwo

To claim this, I am signing this object:

@olivejun
olivejun / upgrades.txt
Created June 27, 2020 21:56
[automatic security upgrades]
root@ars-vpn-test:~$ apt update ; apt dist-upgrade -y
root@ars-vpn-test:~$ apt install unattended-upgrades
root@ars-vpn-test:~$ dpkg-reconfigure unattended-upgrades
@olivejun
olivejun / transfershalias.txt
Created June 27, 2020 13:12
[alias for transfer.sh] bash #shell
transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
@olivejun
olivejun / snippets.txt
Created May 30, 2020 05:15
[ssdnodes] important things to help maintain ssdnodes server~ #server #dev
## learning how to set pkg_config_path
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).
If you need to have icu4c first in your PATH run:
echo 'set -g fish_user_paths "/usr/local/opt/icu4c/bin" $fish_user_paths' >> ~/.config/fish/config.fish
echo 'set -g fish_user_paths "/usr/local/opt/icu4c/sbin" $fish_user_paths' >> ~/.config/fish/config.fish
For compilers to find icu4c you may need to set:
https://stackoverflow.com/questions/2762994/how-to-define-an-alias-in-fish-shell
Verifying my Blockstack ID is secured with the address
1Mwz3aaQ1AXCKsdXec59b2CVR78NpT3n6a
https://explorer.blockstack.org/address/1Mwz3aaQ1AXCKsdXec59b2CVR78NpT3n6a