This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python3 | |
""" | |
Convert a requirements.txt file to a Poetry project. | |
Just place in the root of your working directory and run! | |
""" | |
sourceFile = "./requirements.txt" | |
import re | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: yourapp | |
# Required-Start: nginx | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: The main django process | |
# Description: The gunicorn process that receives HTTP requests | |
# from nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download the sources (sqlite 3230100 was broken, 3220000 was used instead): | |
$ wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz | |
$ wget https://sqlite.org/2018/sqlite-src-3220000.zip | |
$ wget https://www.python.org/ftp/python/3.10.4/Python-3.10.4.tar.xz | |
Move src to /usr/local/src. | |
$ mv openssl-1.1.0h.tar.gz /usr/local/src/ | |
$ mv sqlite-src-3220000.zip /usr/local/src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install dependencies | |
sudo yum install gcc | |
# Download sqlite3: | |
curl -LOk https://www.sqlite.org/2022/sqlite-autoconf-3380500.tar.gz | |
tar xzf sqlite-autoconf-3380500.tar.gz | |
# Configure and compile: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install tmux 3.3a on Amazon Linux 2 | |
# Install dependencies | |
sudo yum install -y gcc kernel-devel make ncurses-devel | |
# Download src dependencies for tmux and compile: | |
curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz | |
tar -xf libevent-2.1.11-stable.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Export | |
infocmp -x tmux-256color >! tmux256 | |
nfocmp -x xterm-kitty >! xterm-kitty | |
# Import | |
tic -x tmux256 | |
tic -x xterm-kitty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ----------------- ---- | |
Map Quick Explanation Link | |
--- ----------------- ---- | |
< <F1> Causes Netrw to issue help | |
<cr> Netrw will enter the directory or read the file |netrw-cr| | |
<del> Netrw will attempt to remove the file/directory |netrw-del| | |
<c-h> Edit file hiding list |netrw-ctrl-h| | |
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l| | |
<c-r> Browse using a gvim server |netrw-ctrl-r| | |
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am nebuchadrezzar on github. | |
* I am raven_over_snow (https://keybase.io/raven_over_snow) on keybase. | |
* I have a public key ASB3C29QjurhhzPqnfITf1thGwf4-dQSLZ0eDA5PaFE9oAo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# upstream is the source repro, origin is a forked copy. | |
git fetch upstream | |
git checkout master | |
git merge upstream/master | |
git submodule update --init --recursive | |
git commit -m "updates from upstream" | |
git push origin |