Skip to content

Instantly share code, notes, and snippets.

@eproxus
eproxus / virus.erl
Created March 4, 2011 09:26
A small module that jumps between connected nodes
%% @doc A small module that jumps between connected nodes.
%% @author Gianfranco Alongi <gianfranco.alongi@gmail.com>
%% @author Adam Lindberg <hello@alind.io>
-module(virus).
-export([start/0]).
-export([start/1]).
start() -> spawn_process(code:get_object_code(?MODULE)).
start(Beam) -> spawn_process(Beam).
@eproxus
eproxus / test_helper.rb
Created March 20, 2013 11:09
Colorized, formatted output for assert_equal
# Colorized, formatted output for assert_equal
module Test
module Unit
module Assertions
alias_method :assert_equal_original, :assert_equal
def assert_equal(expected, actual, msg = "")
unless expected == actual
require 'ap'
expected_str = pretty_format_object("Expected:".green, expected)
@eproxus
eproxus / SVN_colors.md
Last active December 18, 2015 15:19
Colored SVN status and log output, page long commands.

SVN Colors

Colored SVN status and log output, page long commands.

Dependencies

Keybase proof

I hereby claim:

  • I am eproxus on github.
  • I am alind (https://keybase.io/alind) on keybase.
  • I have a public key whose fingerprint is 8AD7 0971 4595 17CC 053F CF4A F5D0 7BFC 4099 037B

To claim this, I am signing this object:

@eproxus
eproxus / chrome-user-agents.txt
Last active September 18, 2015 17:43
OS X User-Agent String Lists for uMatrix
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) App
@eproxus
eproxus / Default (OSX).sublime-keymap
Created May 26, 2015 08:16
Vintageous: Disable arrow keys in insert mode
// Vintageous: disable arrow keys in insert mode
{"keys": ["left"], "command": "unbound", "args": {"mode": "mode_insert"},
"context": [
{"key": "vi_insert_mode_aware"},
{"key": "auto_complete_visible", "operand": false},
]},
{"keys": ["right"], "command": "unbound", "args": {"mode": "mode_insert"},
"context": [
{"key": "vi_insert_mode_aware"},
{"key": "auto_complete_visible", "operand": false},
@eproxus
eproxus / dict.py
Last active May 15, 2018 09:18
Ansible dict map helper
"""Ansible dict filters."""
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.errors import AnsibleError
@eproxus
eproxus / rel.ex
Created October 27, 2016 11:23
mix_rel
defmodule Mix.Tasks.Rel do
@moduledoc """
Creates a release from a Relx configuration file.
mix rel RELEASE_NAME
Finished releases end up in the `_rel` folder, both as folders and as
tarballs.
# Command line options
@eproxus
eproxus / README.md
Last active May 30, 2023 08:19 — forked from raysegantii/README.md
Use Bootstrap 4 SASS with Phoenix

Versions

  • Bootstrap 4 Alpha 6
  • Phoenix 1.2.1

Instructions

  1. Install npm packages

npm install --save-dev sass-brunch

@eproxus
eproxus / sVimcss.css
Last active November 25, 2018 16:57
sVim Settings with Vimium Hint Styles
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {