Skip to content

Instantly share code, notes, and snippets.


Mikhail S. Pabalavets styx

View GitHub Profile
styx /
Created Sep 2, 2017 — forked from Madrigal/
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 ( or free Kindle mail (
# 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
guycalledseven /
Last active Aug 21, 2022
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/
helderco / db-open
Created Oct 6, 2015
Script to open a mysql database in Sequel Pro from a service in docker-compose.
View db-open
set -e
show_help() {
cat << EOF
Usage: ${0##*/} [-u USER] [-p PASS] [-P PORT] [-H HOST] [DATABASE]
${0##*/} -h
Open a standard connection in Sequel PRO.
Rottweiler / gist:44fe4461a4552acf303a
Last active Apr 25, 2022
Heavily obfuscated UnConfuserEx tool
View gist:44fe4461a4552acf303a
I'm not responsible for what you do with these -- they may very well be backdoored
Dr-Nikson /
Last active Jan 4, 2022
Auth example (react + redux + react-router)

Reduce boilerplate in Redux

  • Create actions similar to Flummox.
  • Generate action ids.
  • Supports actions with decorators, promises, and therefore ES7 async.
brianhempel / bench_rails_memory_usage.rb
Last active Feb 3, 2022
A script to test the memory usage of your Rails application over time. It will run 30 requests against the specified action and report the final RSS. Choose the URL to hit on line 45 and then run with `ruby bench_rails_memory_usage.rb`.
View bench_rails_memory_usage.rb
require "net/http"
def start_server
# Remove the X to enable the parameters for tuning.
# These are the default values as of Ruby 2.2.0.
@child = spawn(<<-EOC.split.join(" "))
tonymtz / gist:714e73ccb79e21c4fc9c
Created Nov 15, 2014
Uninstall from OSX Yosemite
View gist:714e73ccb79e21c4fc9c
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/ /etc/*paths.d/*XQuartz
sudo pkgutil --forget org.macosforge.xquartz.pkg
# Log out and log in
View gist:4737bb75d3983d2c6512
defmodule Curried do
defmacro defc({name, _, args}, [do: body]) do
curried_args =, fn({_, index}) ->
Enum.take(args, index + 1)
for a <- curried_args do
if a ==, Enum.count(curried_args) - 1) do
quote do
def unquote(name)(unquote_splicing(a)) do
davidalber /
Created May 1, 2014
Steps to successfully install Python cryptography package on Mac OS X 10.8.5.

Prior to setting the PKG_CONFIG_PATH, as below, pip install cryptography failed with Symbol not found: _ffi_type_double on my machine running Mac OS X 10.8.5. I am not sure how commonly the error occurs for other users.

brew install libffi

# Note the version-specific path below.
PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/ pip install cryptography