Skip to content

Instantly share code, notes, and snippets.

:shipit:
^ This guy

adisbladis

:shipit:
^ This guy
Block or report user

Report or block adisbladis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View __fish_save_commandline.fish
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
View x98pro_mirek190_v5.0_flasher_v2.1.bash
#!/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 Oct 20, 2016
adisbladis emacs config
View adis_emacs.org

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:

@adisbladis
adisbladis / icloud-download.py
Last active Oct 28, 2016
Download all photos from an iCloud account
View icloud-download.py
#!/usr/bin/env python
'''Download all iCloud albums in parallel
Should work on python 2.7/3.x with the following installed:
https://pypi.python.org/pypi/pyicloud/
https://pypi.python.org/pypi/pycurl/
https://pypi.python.org/pypi/futures/ (included in Python 3)
'''
from concurrent.futures import ThreadPoolExecutor
from getpass import getpass
View 0001-define-PyString_FromStringAndSize-PyUnicode_FromStri.patch
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(+)
View _
0xf4e07bb590a1297cc72a7d8516c28df3996d9d5d
@adisbladis
adisbladis / elemental_ircd_decloaker.c
Created Aug 10, 2017
An elemental ircd decloaker
View elemental_ircd_decloaker.c
/*
Made by Adam Hose <adis@blad.is>
Licensed under the GNU General Public License v2.0
Most code is straight up copied from elemental ircd
*/
#include <stdio.h>
#include <stdlib.h>
View geth-segmentation-fault
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]:
View geth-segmentation-fault-dtrace
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
View geth-segmentation-fault-dtrace-master
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
You can’t perform that action at this time.