Skip to content

Instantly share code, notes, and snippets.

View adisbladis's full-sized avatar
:shipit:
^ This guy

adisbladis

:shipit:
^ This guy
View GitHub Profile
function __fish_save_commandline --description 'Save commandline to a buffer, if commandline is empty paste buffer'
if test (commandline)
set -g __fish_commandline_pos (commandline -C)
set -g __fish_commandline_str (commandline)
commandline ''
else
commandline $__fish_commandline_str
commandline -C $__fish_commandline_pos
end
end
@adisbladis
adisbladis / x98pro_mirek190_v5.0_flasher_v2.1.bash
Created April 8, 2016 11:43
Mirek190 ROM Android 5.0 flasher
#!/bin/bash
# Mirek190 ROM Android 5.0 flasher
# See http://techtablets.com/forum/topic/x98_pro_android_5-1_mirek190_v1-0-rom/
#
# Flasher converted from Windows batch script by Adam Hose
# Licensed under WTFPL
function fastboot {
sleep 2
@adisbladis
adisbladis / adis_emacs.org
Created October 20, 2016 13:35
adisbladis emacs config

Adisbladis emacs configuration

Bootstrap this configuration

This configuration is designed to follow the XDG guidelines. This means that I configure locations for files of quite a lot of things.

To use this configuration of Emacs, save this file in ~/.config/emacs/config.org. You can download the file here.

This is a minimal bootstrap which should live in ~/.emacs:

From b12c0807b45ab77273323eabe5ca1ee37c9672a9 Mon Sep 17 00:00:00 2001
From: adisbladis <adis@blad.is>
Date: Sun, 14 May 2017 12:31:41 +0800
Subject: [PATCH] #define PyString_FromStringAndSize ->
PyUnicode_FromStringAndSize on Python 3.
---
netfilterqueue.c | 1 +
1 file changed, 1 insertion(+)
0xf4e07bb590a1297cc72a7d8516c28df3996d9d5d
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7fffa33ac069]
runtime stack:
runtime.throw(0x4af6403, 0x2a)
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/signal_unix.go:274 +0x2db
goroutine 1 [syscall, locked to thread]:
dtrace: system integrity protection is on, some features will not be available
SYSCALL(args) = return
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7fffa33ac069]
runtime stack:
runtime.throw(0x4af5403, 0x2a)
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/signal_unix.go:274 +0x2db
dtrace: system integrity protection is on, some features will not be available
SYSCALL(args) = return
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7fffae596069]
runtime stack:
runtime.throw(0x4ba4f23, 0x2a)
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/panic.go:596 +0x95
runtime.sigpanic()
/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-go-1.8.3/share/go/src/runtime/signal_unix.go:274 +0x2db
{
"049231c1ba77dc29ec62188ae766c8455f7efb98b1ec7711d6f3333c2d8938970c301f79fab770c570014c3aaa2ec2b40fcfb03520fc503a6f6ed44f8da7e93770": {
"rpURL": "http://rp-url",
"clientId": "example",
"clientSecret": "example"
}
}
Put this in ~/.ssh/config
Host *
ControlMaster auto
ControlPath ~/.ssh/sock-%r@%h-%p
ControlPersist 600