Skip to content

Instantly share code, notes, and snippets.

View codeadict's full-sized avatar
🕸️
λ: f(f(state)) = f(state)

Dairon M. codeadict

🕸️
λ: f(f(state)) = f(state)
View GitHub Profile
@evnu
evnu / funcs.escript
Last active November 9, 2023 01:45
Find all documented Erlang NIF functions and when they were introduced
#!/usr/bin/escript
%%%
%%% Output NIF functions and since when they are supported
%%%
%%% Usage:
%%%
%%% Run `funcs.escript` without any arguments to output all NIF functions.
%%% To filter NIFs by a specific version of OTP, use `funcs.escript <version>`,
%%% where matching versions must have the same prefix as the one supplied on
%%% the command line.
@gburd
gburd / sysctl.conf
Created January 5, 2019 02:43 — forked from voluntas/sysctl.conf
Sysctl configuration for high performance
### KERNEL TUNING ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
defmodule Mix.Tasks.PrintCode do
@shortdoc "Prints decompiled Erlang source for a module"
@moduledoc """
Pretty-prints the *Erlang-equivalent* source code of an *Elixir*
module. This is useful for understanding how particular Elixir
features (e.g. macros, protocols) operate under the covers.
*Erlang modules are not yet supported.*
@codeadict
codeadict / cookiecutter_requirements.txt
Last active December 29, 2017 21:42
Common packages needed for Cookecutter with Hooks
python-jenkins==0.4.15
PyGithub==1.35
cookiecutter==1.6.0
@t4sk
t4sk / a-usage.md
Last active August 9, 2025 16:01
gen_tcp and GenServer example in Elixir (1.5.2)

gen_tcp and GenServer example in Elixir (1.5.2)

Usage

server.ex

Server.start
@voluntas
voluntas / webrtc_meshi_en.rst
Created November 19, 2017 15:25
Is it Possible to Run a Business with WebRTC Product?

Is it Possible to Run a Business with WebRTC Product?

Update:2017-11-20
Author: @voluntas
Author's site:https://voluntas.github.io/
Version: 0.5.0
Session Date and Time:2017-11-20 21:35-21:45
Session location:TECH PLAY SHIBUYA
@avocade
avocade / erl-observe.sh
Created February 22, 2017 12:34
Connect to remote erlang node with remote iex session (eg over k8s port-forwarding), and start observer on it
#!/bin/bash
# This script provides easy way to debug remote Erlang nodes that is running in a kubernetes cluster.
# Usage: ./erl-observe.sh -l app=my_all -n default -c erlang_cookie
#
# Don't forget to include `:runtime_tools` in your mix.exs application dependencies.
set -e
# Trap exit so we can try to kill proxies that has stuck in background
function cleanup {
echo " - Stopping kubectl proxy."
@wpietri
wpietri / rover.py
Created December 7, 2015 17:11
Rover kata example for hiring
class Rover:
pass
@joepie91
joepie91 / vpn.md
Last active July 2, 2026 18:38
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.