Skip to content

Instantly share code, notes, and snippets.

<yandex>
<profiles>
<default>
<max_server_memory_usage>536870912</max_server_memory_usage>
<output_format_json_quote_64bit_integers>0</output_format_json_quote_64bit_integers>
</default>
</profiles>
</yandex>
@th0th
th0th / style.css
Last active December 6, 2019 15:44
tlk.io
header {
display: none;
}
@th0th
th0th / AdvancedWindowSnap.ahk
Created August 14, 2019 11:14 — forked from park-brian/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
/**
* Advanced Window Snap
* Snaps the Active Window to one of nine different window positions.
*
* @author Andrew Moore <andrew+github@awmoore.com>
* @version 1.1
*/
/**
* Resizes and moves the active window to a given position on a grid
@th0th
th0th / domain regex.txt
Created August 25, 2018 01:01
domain regex
^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?$
@th0th
th0th / create-swap.sh
Created November 22, 2017 20:40
Create swap file (2 GB) and activate
#!/bin/sh
dd if=/dev/zero of=/swapfile bs=1M count=2048
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile none swap defaults 0 0" >> /etc/fstab
@th0th
th0th / papertrail-remove-all-systems.sh
Created October 31, 2017 13:24 — forked from jameshy/papertrail-remove-all-systems.sh
Remove all systems from papertrail
curl -s -H "X-Papertrail-Token: API-TOKEN-HERE" https://papertrailapp.com/api/v1/systems.json | jq '.[] .name' | xargs -I {} -d '\n' sh -c 'papertrail-remove-system -s {}; echo deleted {}'