Skip to content

Instantly share code, notes, and snippets.

View wojtekmach's full-sized avatar

Wojtek Mach wojtekmach

View GitHub Profile
@wojtekmach
wojtekmach / inetrc
Created October 8, 2020 20:03 — forked from nirev/inetrc
Configuring Erlang inet
%% -- ERLANG INET CONFIGURATION FILE --
%% https://erlang.org/doc/apps/erts/inet_cfg.html
%% use it by setting the following envvar:
%% export ERL_INETRC="/path/to/this-file"
%%
%% read and monitor nameserver config from here
{resolv_conf, "/etc/resolv.conf"}.
%% increase cache size
{cache_size, 2000}.
%% specify lookup method
diff --git a/modules-v1.2.txt b/modules-v1.3.txt
index e88c992ca..89357d0c1 100644
--- a/modules-v1.2.txt
+++ b/modules-v1.3.txt
@@ -1,6 +1,12 @@
+Access.all/0
+Access.at/1
+Access.elem/1
Access.fetch/2
Access.get/3
import_if_available Ext.DateTime
ericmj [10:24 PM]
the repo includes the registry
[10:24]
the repo is registry + actual packages
[10:24]
the registry is the files that describe the packages in the repo
[10:25]

Keybase proof

I hereby claim:

  • I am wojtekmach on github.
  • I am wojtekmach (https://keybase.io/wojtekmach) on keybase.
  • I have a public key whose fingerprint is 3791 D11E 23DA 56C6 5187 DB6C C4FA 361F 78AD 78E5

To claim this, I am signing this object:

#!/bin/bash
# This scripts re-runs all migrations in test DB
# and reports (along with exist status 1) any
# not commited changes to schema.rb.
#
# It's best to run this script on CI and fail the build
# because it means there's a discrepancy between migrations
# and schema.rb. (e.g. someone changed migration inline
# but forgot to redo the migration and update schema.rb.)
require 'factory_girl'
class Article < Struct.new :headline
end
FactoryGirl.define do
factory :article do
headline "my headline"
end
end
while true
do
if curl --silent "http://iphone-check.herokuapp.com/?zip=10001&color=grey&provider=unlocked" | grep yup
then
terminal-notifier -message "found"
fi
sleep 60
done
quicksort :: (Ord a) => [a] -> [a]
quicksort [] = []
quicksort (x:xs) =
let smaller = quicksort $ filter (<=x) xs
bigger = quicksort $ filter (>x) xs
in smaller ++ [x] ++ bigger
main = do
putStrLn $ show $ quicksort [1, 4, 2, 3]
## Docker file of shingara/chruby container
FROM base
MAINTAINER Cyril Mougel "cyril.mougel@gmail.com"
RUN apt-get update
RUN apt-get install -q -y wget
RUN apt-get install -q -y ca-certificates
RUN apt-get install -q -y make