Skip to content

Instantly share code, notes, and snippets.

@vince06fr
vince06fr / answerfile
Created August 22, 2024 21:46 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@vince06fr
vince06fr / umbrel-ubuntu-20-04.md
Created October 5, 2023 15:44 — forked from TradeClaw/umbrel-ubuntu-20-04.md
Installing Umbrel on Ubuntu 20.04

Install Ubuntu Server 20.04

There is no guarantee this guide will work flawless on earlier or later versions of Ubuntu!

  • 1 CPU & 4GB RAM minimum (more CPU helps initial sync)
  • 1TB SSD disk minimum
  • Resize ubuntu-lv to 50G
  • Create new umbrel-lv for the remaining space and new mount /umbrel
  • Select 'Install OpenSSH Server'
  • Do NOT choose the docker feature, this will be installed manually
  • Reboot after security patching finishes
  • Login via SSH
@vince06fr
vince06fr / improved-lnd-bitcoind-mainnet.md
Created February 20, 2021 00:29 — forked from bretton/improved-lnd-bitcoind-mainnet.md
Detailed guide to installing LND and Bitcoind on Ubuntu 16.04 LTS for Mainnet

Intro

This guide is specific to getting LND 0.5-beta and Bitcoind running on Ubuntu 16.04 LTS for mainnet. It is ageing rapidly and includes steps not necessary on newer versions of LND

Original installation guide:

This guide is broken into the following sections:

  • Install bitcoind and set to start automatically
  • Install development tools and dependancies
@vince06fr
vince06fr / install_Jupyter.sh
Created November 17, 2020 23:32 — forked from gatopeich/install_Jupyter.sh
Install Jupyter iPython Notebook on Android via Termux
pkg upgrade
# Install runtime deps
pkg install python libzmq libcrypt
# Add build deps
pkg install python-dev libzmq-dev libcrypt-dev clang
pip3 install -U pip
pip3 install pyzmq --install-option="--zmq=/usr/lib"
pip3 install jupyter
@vince06fr
vince06fr / init.vim
Last active December 18, 2020 07:55
neovim ide configuration
" nvim config from https://medium.com/better-programming/setting-up-neovim-for-web-development-in-2020-d800de3efacd
" https://www.vimfromscratch.com/articles/vim-for-python/
" http://nerditya.com/code/guide-to-neovim/
" https://medium.com/@hanspinckaers/setting-up-vim-as-an-ide-for-python-773722142d1d
call plug#begin("~/.vim/plugged")
" Plugin Section
Plug 'dracula/vim'
Plug 'scrooloose/nerdtree'
@vince06fr
vince06fr / instructions.md
Created July 7, 2020 16:27 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@vince06fr
vince06fr / nginx-vhost.conf
Created January 23, 2020 17:23 — forked from aleksandar-babic/nginx-vhost.conf
Wordpress behind NGINX reverse proxy
location /blog/ {
#auth_basic "Restricted";
#auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass https://test-blog.bitstarz.com/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
@vince06fr
vince06fr / kivy_pdf.py
Created January 14, 2020 17:31 — forked from tshirtman/kivy_pdf.py
a very limited pdf viewer implemented directly with kivy widgets, using pdfminer to get the content
# adapted from https://github.com/dpapathanasiou/pdfminer-layout-scanner
from os.path import exists
from tempfile import mkdtemp, mkstemp
from shutil import rmtree
from binascii import b2a_hex
from os import write, close
from threading import Thread
from pdfminer.pdfpage import PDFPage
@vince06fr
vince06fr / svg2ico.sh
Created December 28, 2019 19:53 — forked from azam/svg2ico.sh
Convert SVG to ICO using ImageMagick, with transparent background and multi-size icons
convert -density 384 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon.ico
@vince06fr
vince06fr / conf
Created December 5, 2017 00:47 — forked from anonymous/conf
# cat /etc/electrumx.conf
DAEMON_URL = http://electrum:qsadsferfsdsewew2323asde@localhost:8332/
DB_DIRECTORY = /home/bitcoin/.electrumx/
DB_ENGINE = leveldb
USERNAME = bitcoin
ELECTRUMX = /home/bitcoin/electrumx/electrumx_server.py
HOST =
COIN = BitcoinSegwit