This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat data.csv | awk -F',' '{print " SET \""$1"\" \""$2"\" \n"}' | redis-cli --pipe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule PublicKey do | |
def verify_fun(_, {:extension, _}, state) do | |
IO.puts "verify_fun -- extension" | |
{:unknown, state} | |
end | |
def verify_fun(_, {:revoked, _}, state) do | |
IO.puts "verify_fun -- revoked" | |
{:fail, state} | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to convert existing phoenix app to an umbrella app. | |
https://elixir-lang.slack.com/archives/phoenix/p1472921051000134 | |
chrismccord [10:14 PM] | |
@alanpeabody yes, it's straightforward | |
[10:14] | |
1) mix new my_umbrella --umbrella |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $1 ] | |
then | |
if [ -f $1 ] | |
then | |
pemfile=$1 | |
fi | |
else | |
echo "Usage: split-pem.sh COMBINED-PEMFILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(partial). | |
-export([partial/2]). | |
-export([test/0]). | |
-spec partial(function(), [term()]) -> function(). | |
partial(Fun, Args) when is_function(Fun), is_list(Args) -> | |
lists:foldl(fun partial1/2, Fun, Args). |