Skip to content

Instantly share code, notes, and snippets.

@ayosec
ayosec / greek.vim
Created November 3, 2011 00:55
Plugin to append greek letters in VIM
" Copy this in ~/.vim/plugins
" In normal mode, type “,gaalpha” to append α, or “,gibeta” to insert β
function DefineGreekLetter(name, letter)
exec "nmap ,gi" . a:name . " i". a:letter
exec "nmap ,ga" . a:name . " a". a:letter
endf
call DefineGreekLetter("alpha", "α")
call DefineGreekLetter("Alpha", "Α")
@dwyerk
dwyerk / concave_hulls.ipynb
Created April 12, 2014 23:20
concave hulls using shapely and scipy
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dedy-purwanto
dedy-purwanto / gist:11312110
Created April 26, 2014 05:00
Bulk remove iTerm2 color schemes.
# There was a day where I have too many color schemes in iTerm2 and I want to remove them all.
# iTerm2 doesn't have "bulk remove" and it was literally painful to delete them one-by-one.
# iTerm2 save it's preference in ~/Library/Preferences/com.googlecode.iterm2.plist in a binary format
# What you need to do is basically copy that somewhere, convert to xml and remove color schemes in the xml files.
$ cd /tmp/
$ cp ~/Library/Preferences/com.googlecode.iterm2.plist .
$ plutil -convert xml1 com.googlecode.iterm2.plist
$ vi com.googlecode.iterm2.plist
@andrey-str
andrey-str / ufw plexmediaserver app profile.md
Last active December 18, 2020 22:57
Plex Media Server UFW rule
[plexmediaserver]
title=Plex Media Server
description=The Plex Media Server is smart software that makes playing Movies, TV Shows and other media on your computer simple
ports=32400/tcp|1900/udp|32469/udp|5353/udp

Once you have defined your application file, put it in /etc/ufw/applications.d, then tell ufw to reload the application definitions with

ufw app update plexmediaserver
ufw app info plexmediaserver
@paulhauner
paulhauner / Poloniex First Trades
Created November 14, 2016 05:11
Poloniex First Trade Times
# first_trades is a dict of the date of the first trade of each market on Poloniex.
# Values are specified as unix timestamps in whatever timezone the Poloniex API assumes.
# If you run into timezone issues, my system is GMT+10 (with daylight saving) when creating this.
#
# This data is very useful if you're attempting to pull the history of Poloniex's trades.
first_trades = dict(
BTC_BCN=1400591380.0,
USDT_NXT=1424337662.0,
BTC_RBY=1404410437.0,
@xnuk
xnuk / hyeong.md
Last active February 11, 2024 15:10
난해한 혀엉.... 언어

이 문서가 여기저기 알려짐에 따라, 이곳에 여러가지 댓글이 달리고 있습니다. 개인적으로는 댓글창을 없애버리고 싶지만 그럴 수 없는 터라, 댓글을 달기 전에 한번씩만 더 생각해주셨으면 합니다.

  • 개인적인 감상은 이곳이 아닌 다른 곳에 적어주세요.
  • 동성애 혐오적인 댓글을 달지 마세요.
  • 기타 "난해한 혀엉... 언어"와 관련없는 댓글을 달지 말아주세요.

위 사항들을 포함해 제 마음에 안 드는 댓글들은 임의로 삭제하고 있습니다. 양해 부탁드립니다.


@jamestwebber
jamestwebber / pyro_logistic_regression.ipynb
Created October 23, 2018 23:41
A iPython notebook showing how to use SVI for logistic regression in Pyro
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.