Skip to content

Instantly share code, notes, and snippets.

Avatar

Gokhan Sari th0th

View GitHub Profile
View default_profile.xml
<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>
View style.css
header {
display: none;
}
@th0th
th0th / AdvancedWindowSnap.ahk
Created Aug 14, 2019 — forked from park-brian/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
View AdvancedWindowSnap.ahk
/**
* 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
View domain regex.txt
^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?$
@th0th
th0th / create-swap.sh
Created Nov 22, 2017
Create swap file (2 GB) and activate
View create-swap.sh
#!/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
View papertrail-remove-all-systems.sh
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 {}'