Skip to content

Instantly share code, notes, and snippets.

View hatf0's full-sized avatar
💠

Harrison hatf0

💠
View GitHub Profile
call plug#begin('~/.local/share/nvim/plugged')
Plug 'airblade/vim-gitgutter'
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
Plug 'junegunn/vim-emoji'
Plug 'itchyny/lightline.vim'
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
Plug 'mattn/emmet-vim'
Plug 'scrooloose/nerdtree'
import idaapi
import idc
import random
import string
def get_random_letters(length):
return ''.join(random.choice(string.ascii_letters) for i in range(length))
class fixup_structs_t(idaapi.plugin_t):
flags = idaapi.PLUGIN_UNL
class BTree(Type, KeyType, int MinDegree = 5) {
enum MaxKeys = (2 * MinDegree - 1);
enum MaxChildren = (2 * MinDegree);
private {
Nullable!BTreeNode search(KeyType key) {
if (root !is null) {
return root.search(key);
}
return typeof(return).init;
<key>PciRoot(0x0)/Pci(0x2,0x0)</key>
<dict>
<key>AAPL,ig-platform-id</key>
<data>BQAcWQ==</data>
<key>AAPL,slot-name</key>
<string>Internal</string>
<key>AAPL00,override-no-connect</key>
<data>AP///////wAoiSpCAAAAAAAbAQSQHRR4A95Qo1RMmSYPUFQAAAABAQEBAQEBAQEBAQEBAQEBt5i4oLDQPnAIIAgMJcQQAAAat5i4oLDQQXIIIAgMJcQQAAAaAAAA/gBKREkgICAgICAgICAgAAAA/gBMUE0xMzlNNDIyQSAgAE4=</data>
<key>device-id</key>
<data>HFkAAA==</data>
@tim aple eple  aple tim cok
```
shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.7;
shadow-red = 0.0;
shadow-green = 0.0;
shadow-blue = 0.0;
shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'" ];
shadow-ignore-shaped = false;
shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.7;
shadow-red = 0.0;
shadow-green = 0.0;
shadow-blue = 0.0;
shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'" ];
shadow-ignore-shaped = false;
@hatf0
hatf0 / app.d
Last active June 24, 2020 00:28
import std.stdio;
import automem;
import stdx.allocator : theAllocator, make, dispose;
import std.experimental.allocator.mallocator: Mallocator;
import stdx.allocator : theAllocator, allocatorObject;
interface MemoryLeakTest {
void hello();
string test();
}
#!/bin/bash
# Screenshot wrapper
# Uses shotty (which uses maim (which uses slop))
# "Friendship ended with maim. Now shotty is my best friend."
SCREENSHOTS_DIR=~/screenshots
TIMESTAMP="$(date +%Y.%m.%d-%H.%M.%S)"
#TIMESTAMP="$(date +%Y.%m.%d--%s)"
FILENAME=$SCREENSHOTS_DIR/$TIMESTAMP.screenshot.png
PHOTO_ICON_PATH=~/.icons/oomox-only_icons/categories/scalable/applications-photography.svg
module shotty.uploaders;
import asdf;
import std.traits;
import std.conv : to;
static foreach(member; EnumMembers!ShottyUploaders) {
mixin("public import shotty.uploaders." ~ to!string(member) ~ ";");
}
enum ShottyUploaders {