This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tim aple eple aple tim cok | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
NewerOlder