Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Engel chrsengel

View GitHub Profile
View .aliases
alias bb='brave-browser'
alias t='tmux'
alias ta='tmux attach'
alias sagi='sudo apt-get install -y'
alias sagu='sudo apt-get update'
alias e='echo'
alias sl='exa'
#alias ls='exa'
alias sls='exa'
alias pwd='pwd -P'
View extensions.sh
code --install-extension 13xforever.language-x86-64-assembly
code --install-extension aaron-bond.better-comments
code --install-extension adpyke.codesnap
code --install-extension albymor.increment-selection
code --install-extension alexcvzz.vscode-sqlite
code --install-extension Angular.ng-template
code --install-extension attilabuti.vscode-mjml
code --install-extension bierner.emojisense
code --install-extension bierner.markdown-preview-github-styles
code --install-extension bradlc.vscode-tailwindcss
View .nanorc
set tabsize 2
set linenumbers
set smooth
set nohelp
set morespace
set tabstospaces
View .tmux.conf
setw -g window-status-current-format "#T(#I:#W#F)"
setw -g window-status-format "#T(#I:#W#F)"
# reload
bind r source-file ~/.tmux.conf
# move windows
bind -n C-S-Left swap-window -t -1
bind -n C-S-Right swap-window -t +1
@chrsengel
chrsengel / gas
Last active Jan 7, 2021
Super simple ethereum gas price script
View gas
#!/bin/bash
URL1="https://ethgasstation.info/api/ethgasAPI.json"
URL2="https://www.gasnow.org/api/v1/gas/price"
# gas stuff
RES1=$(curl -s $URL1)
RES2=$(curl -k -s $URL2)
fastest1=$(echo $RES1 | jq ".fastest")
View settings.json
{
"codesnap.transparentBackground": true,
"codesnap.boxShadow": "rgba(0, 0, 0, 0.1) 0px 4px 2px",
"html.suggest.html5": true,
"breadcrumbs.enabled": true,
"doxdocgen.cpp.tparamTemplate": "\\param}",
"doxdocgen.file.fileTemplate": "\\file",
"editor.cursorBlinking": "phase",
"editor.cursorSmoothCaretAnimation": true,
"editor.fontFamily": "Fira Code",
@chrsengel
chrsengel / termux.properties
Created Mar 4, 2020
My top key configuration for the termux app
View termux.properties
extra-keys = [ \
['ESC', 'TAB', 'HOME', 'END', 'UP', 'PGUP', 'PGDN', '/', '-'], \
['CTRL', 'ALT', '~', 'LEFT', 'DOWN', 'RIGHT', '*', '|', './'] \
]
@chrsengel
chrsengel / getPubKey.js
Last active May 3, 2022
Attempting to get the public key
View getPubKey.js
const ethers = require("ethers")
const pk =
"0x0471c746523d16e93d4738f882d9b0beebf66c68caa0f895db15686b57b878cfc7b3e09813ba94f1bbfaa91a06566d3d18bbf69d10bcc947325bbcd6fea97ed692"
const ad = "0xcD3edF915387E2555A829567cE0dBbC919834B82"
getPubKey = async () => {
const infuraProvider = new ethers.providers.JsonRpcProvider(
"https://ropsten.infura.io/v3/<projectID>"
)
View engel-pubkey.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEXYpxrhYJKwYBBAHaRw8BAQdAhP7AdNuAGpW/V6khi+ju+bdLOysjVNOPnGpr
s05ZAOW0L0NocmlzdGlhbiBFbmdlbCA8ZW5nZWwuY2hyaXN0aWFuMTk5NEBnbWFp
bC5jb20+iJYEExYIAD4WIQQKKb7aMzFxPc8whPaTkVFyxy3kFwUCXYpxrgIbAwUJ
B4TOAAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRCTkVFyxy3kFxE1AQDjARbs
1CQ0zt6fhpjM3sWkTeywwbre58oY7eOzllScqwEAsrbspo8Yb/yqzPLlHn77y0xS
REpWMlpmfu2vcZJFjwm4OARdinGuEgorBgEEAZdVAQUBAQdAoveJeN5E1uwo+X9O
Ppg2CGZk2jOOFJ/m2aLolxEqDnoDAQgHiH4EGBYIACYWIQQKKb7aMzFxPc8whPaT
kVFyxy3kFwUCXYpxrgIbDAUJB4TOAAAKCRCTkVFyxy3kF+lZAP0Ugxtg2llAnkiZ