Skip to content

Instantly share code, notes, and snippets.

@aeons
aeons / config.exs
Last active July 24, 2024 12:43
Erlang 27 :json module in Phoenix
config :phoenix, :json_library, ErlJson
@aeons
aeons / github-https-to-ssh.py
Created August 9, 2019 10:29
Convert github https remote to corresponding ssh remote
#!/usr/bin/env python3
from collections import namedtuple
import re
import subprocess
import sys
Remote = namedtuple("Remote", ["name", "user", "repo"])
@aeons
aeons / input.txt
Created June 12, 2019 09:22
Save the input file with ISO-8859-1 encoding and then run `curl -X POST -d @input --header "Content-Type: application/xml; charset=ISO-8859-1" http://localhost:3000`
áéíóú
let searchengine dota2 = "http://dota2.gamepedia.com/index.php?title=Special:Search&search=%s"
let completionengines = ['google', 'wikipedia', 'duckduckgo', 'dota2']
let searchalias d = "dota2"
@aeons
aeons / boxstarter.txt
Last active September 4, 2015 12:15
Boxstarter work
Disable-UAC
Enable-MicrosoftUpdate
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtension
Move-LibraryDirectory "{374DE290-123F-4565-9164-39C4925E467B}" "D:\Downloads"
cinst autohotkey.portable
cinst git
cinst poshgit
cinst gitversion
Hi Bjørn Madsen!
Thank you for registering your Cloud9 account.
From now on you can sign in at http://c9.io.
YOUR CLOUD9 USERNAME
For others to find you on Cloud9 we've created the following Cloud9 username for you: aeons1
You can always change your username on the 'Account Settings' section in your dashboard.
@aeons
aeons / PoEDisplay.ahk
Last active March 26, 2016 18:19
Path of Exile item level and DPS calculations, shown in a tooltip. Cleaned up/enchanced version of this script: https://www.pathofexile.com/forum/view-thread/594346
; This script is a cleaned up and enhanced version of the one found here:
; https://www.pathofexile.com/forum/view-thread/594346
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent ; Stay open in background
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
StringCaseSense, On ; Match strings with case.
; Options
; Pixels mouse must move to auto-dismiss tooltip