Skip to content

Instantly share code, notes, and snippets.

View Haruki's full-sized avatar
🕶️

Pimpelkram Haruki

🕶️
View GitHub Profile
@Haruki
Haruki / ddns_ud.sh
Created June 11, 2021 21:51 — forked from mueslo/ddns_ud.sh
Dynamic A-Record DNS Updater for united-domains.de (OpenWRT/LEDE)
#!/bin/sh
# requires: wget, ca-certificates, grep
#rm /tmp/cookies.txt
cookiefile="/tmp/cookies.txt"
#domain should contain "domain_id:record_id"
domain_id=$(echo $domain | tr ":" "\n" | sed -n "1p")
record_id=$(echo $domain | tr ":" "\n" | sed -n "2p")
sudo grep vm.max_map_count /etc/sysctl.conf
"vm.max_map_count=262144"
To apply the setting on a live system type:
sudo sysctl -w vm.max_map_count=262144
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
sed 's_\(\/mnt\/\)\([a-z]\)_\2:_'
@Haruki
Haruki / wsl .hyper.js
Created April 30, 2018 15:23
hyper config for wsl with zsh/powerlevel9k/awesomefonts
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
export TERM="xterm-256color"
export ZSH=/home/pimpelkram/.oh-my-zsh
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
POWERLEVEL9K_MODE='awesome-patched'
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir rbenv vcs)
[core]
autocrlf = true
[user]
email = borsutzky@hansaluftbild.de
name = Harald Borsutzky
[push]
default = simple
[apply]
whitespace = nowarn
[diff]
@Haruki
Haruki / .hyper.js
Last active October 12, 2017 12:33
hyper.js with Msys2 configuration
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 18,
// font family with optional fallbacks
fontFamily: 'Hack, Consolas, monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
To do this from powershell open a powershell window and paste in the following:
echo y | & 'C:\Program Files (x86)\GitExtensions\PuTTY\plink.exe' -ssh git@github.com
echo y | & 'C:\Program Files (x86)\GitExtensions\PuTTY\plink.exe' -ssh git@gist.github.com
echo y | & 'C:\Program Files (x86)\GitExtensions\PuTTY\plink.exe' -ssh git@bitbucket.org
%AppData%\Microsoft\Windows\Start Menu\Programs\