Skip to content

Instantly share code, notes, and snippets.

View styx's full-sized avatar
🌴
¯\_(ツ)_/¯

Mikhail S. Pabalavets styx

🌴
¯\_(ツ)_/¯
View GitHub Profile
@styx
styx / tc-tango.ini
Created September 29, 2019 19:13 — forked from bamanzi/tc-tango.ini
Tango theme for Total Commander
[COLORS]
BackColor=3421230
ForeColor=12500670
MarkColor=9125192
CursorColor=5237247
BackColor2=1973790
InverseCursor=0
CursorText=-1
InverseSelection=1
@styx
styx / tc-tango.ini
Created September 29, 2019 19:13 — forked from bamanzi/tc-tango.ini
Tango theme for Total Commander
[COLORS]
BackColor=3421230
ForeColor=12500670
MarkColor=9125192
CursorColor=5237247
BackColor2=1973790
InverseCursor=0
CursorText=-1
InverseSelection=1
@styx
styx / manual-uninstall-paragon-ntfs.sh
Created March 12, 2018 08:35 — forked from guycalledseven/manual-uninstall-paragon-ntfs.sh
Manually remove Paragon NTFS v15 leftovers MacOS
# after appcleaner does his magic, do this
sudo rm -rf "/Library/Application Support/Paragon Software/"
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/
@styx
styx / deobfuscation.py
Created October 8, 2017 19:01 — forked from thngkaiyuan/deobfuscation.py
IDA script for deobfuscation of Nymaim malware
import idaapi
idaapi.CompileLine('static deobfuscate() { RunPythonStatement("deobfuscate()"); }')
AddHotkey("Alt-N", "deobfuscate")
repl_pairs = {
"e8 3a 00 00 00" : "b8 01 00 00 00", # mov eax, 1
}
def chunk(string, length):
@styx
styx / kindle.sh
Created September 2, 2017 17:06 — forked from Madrigal/kindle.sh
Send files to your Amazon Kindle via the Command Line Interface.
# Command line utility to send attachments to your kindle
# It supports sending a PDF in both regular form and with the convert option
# and sending to the regular (@kindle.com) or free Kindle mail (@free.kindle.com)
# The only argument it has is the name of the file to send. It will detect if
# it is a pdf and treat it accordingly.
## Preferences
# If true, send one version with pdf as-is, another with 'convert' subject
# else, just send the pdf version
@styx
styx / preprocessor_fun.h
Created August 26, 2017 05:44 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@styx
styx / README.md
Created February 28, 2017 12:22 — forked from Dr-Nikson/README.md
Auth example (react + redux + react-router)
@styx
styx / README.md
Created February 28, 2017 10:04 — forked from Dr-Nikson/README.md

Reduce boilerplate in Redux

  • Create actions similar to Flummox.
  • Generate action ids.
  • Supports actions with decorators, promises, and therefore ES7 async.
@styx
styx / Links.txt
Created April 18, 2016 11:56 — forked from iBublik/Links.txt
Useful links
@styx
styx / gist:31e2403a70a3b1153bb0
Created February 7, 2016 07:31 — forked from joho/gist:3735740
PostgreSQL 9.2 upgrade steps
Steps to install and run PostgreSQL 9.2 using Homebrew (Mac OS X)
(if you aren't using version 9.1.5, change line 6 with the correct version)
1. launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
2. mv /usr/local/var/postgres /usr/local/var/postgres91
3. brew update
4. brew upgrade postgresql
5. initdb /usr/local/var/postgres -E utf8
6. pg_upgrade -b /usr/local/Cellar/postgresql/9.1.5/bin -B /usr/local/Cellar/postgresql/9.2.0/bin -d /usr/local/var/postgres91 -D /usr/local/var/postgres
7. cp /usr/local/Cellar/postgresql/9.2.0/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/