Skip to content

Instantly share code, notes, and snippets.

Avatar
🌈
Doing…something

i5heu i5heu

🌈
Doing…something
View GitHub Profile
View ipfs-demon-service
[Unit]
Description=IPFS daemon
After=network.target
[Service]
User=ipfs
Group=ipfs
ExecStart=/usr/local/bin/ipfs daemon
Restart=on-failure
[Install]
WantedBy=multi-user.target
View ipfs-cluster-service
[Unit]
Description=IPFS main cluster
After=network.target
[Service]
User=ipfs
Group=ipfs
ExecStart=/home/ipfs/ipfs-cluster-follow/ipfs-cluster-follow main-cluster run
Restart=on-failure
[Install]
WantedBy=multi-user.target
@i5heu
i5heu / ipfs-linux-iso-collection.md
Last active May 12, 2020
ipfs linux .iso collection
View ipfs-linux-iso-collection.md
file ipfs hash
debian-10.4.0-amd64-netinst.iso QmSQXa22nRKddx4cojKHpco8du1bBdk3dzDZ5QK2WHjtQY
ubuntu-20.04-live-server-amd64.iso QmXknmssT6gef1tyTxXAtTMuHyE1bid3Thhq5ooRGAt6if
archlinux-2020.05.01-x86_64.iso QmbCNtXFfA2cKvQ5Ncnh3s9ZscdvqA1eZCPUB1qiU4ZuSk
debian-10.4.0-amd64-xfce-CD-1.iso QmaQmb4j9XMVFXv574FpTwnz4R8fLRqPfucd8Mz8c93Qyt
latest-nixos-plasma5-x86_64-linux.iso QmXyRpSxdd67Yo2m4sRTnf8McFy7yPjUN5knonyJPjpq24
tails-amd64-4.6.img QmP5pf2vUEKG3dxAJdfhj4TaoecrZCRQnVQxsk4j7xaxrX
ubuntu-20.04-desktop-amd64.iso QmY7nvn8BLJ8pNCQv1fK31YgfqdXtcMUaf3jqd5ap5ZJMW
View start.sh
echo "start init script"
sudo apt -y update && sudo apt -y full-upgrade && sudo snap refresh kakoune
apt install -y curl git llvm gcc rustc libclang-dev libssl-dev clang pkg-config
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
echo "PATH=\$PATH:\$HOME/.cargo/env" >> ~/.bashrc
ssh-keygen
cat ~/.ssh/id_rsa.pub
echo "finished init script"
View ejabberd-LetsEncrypt-renew.sh
certbot certonly --standalone -d im.openlibre.org
service nginx stop
rm /etc/ejabberd/ejabberd.pem
#cat /etc/letsencrypt/live/im.openlibre.org/fullchain.pem /etc/letsencrypt/live/im.openlibre.org/privkey.pem >> /etc/ejabberd/ejabberd.pem
cat /etc/letsencrypt/live/im.openlibre.org/cert.pem /etc/letsencrypt/live/im.openlibre.org/chain.pem /etc/letsencrypt/live/im.openlibre.org/privkey.pem > /etc/ejabberd/ejabberd.pem
chown ejabberd /etc/ejabberd/ejabberd.pem
service nginx start
service ejabberd restart
View debug-remove-before-commit.js
// ____ __________ __ ________
// / __ \/ ____/ __ )/ / / / ____/
// / / / / __/ / __ / / / / / __
// / /_/ / /___/ /_/ / /_/ / /_/ /
// /_____/_____/_____/\____/\____/
// ##### REMOVE BEFORE COMMIT #######
View deug-console-log.js
// set the debug output to none if the debug mode is not set
if (document.cookie.indexOf("DebugMode042003") == -1) {
console.debug = () => {};
}
View dockerToUsable.sh
apt update -y && apt install fish -y && fish && apt install wget ping ping6 vim -y
View init.vim
" if hidden is not set, TextEdit might fail.
set hidden
" Some servers have issues with backup files, see #649
set nobackup
set nowritebackup
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}}
Plug 'yggdroot/indentline'
View sh-Docker-init.sh
sleep 1m
sudo snap refresh && sudo apt -y update && sudo apt -y upgrade && sudo apt -y dist-upgrade
apt install -y docker.io
You can’t perform that action at this time.