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:

@adisbladis
adisbladis / icloud-download.py
Last active March 5, 2022 15:38
Download all photos from an iCloud account
#!/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
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
@adisbladis
adisbladis / elemental_ircd_decloaker.c
Created August 10, 2017 14:47
An elemental ircd decloaker
/*
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>
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