This file contains hidden or 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
function git_clean_passwords() { | |
if [ -n "$1" ] | |
then | |
java -jar $HOME/bin/bfg.jar --replace-text passwords.txt $1 | |
else | |
java -jar $HOME/bin/bfg.jar | |
fi | |
} |
This file contains hidden or 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 | |
GIT=`which git` | |
for d in $(find -name \.mergify.yml); | |
do ( | |
DIR=${d//.mergify.yml} | |
cd "$DIR" && | |
${GIT} add --all . | |
${GIT} commit -m "fix mergify" | |
${GIT} push |
This file contains hidden or 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
open Belt ; | |
type state = { | |
| LOADING | |
| ERROR | |
| LOADED(id) ; | |
}; | |
type searchType = | |
| zip ; |
This file contains hidden or 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
type state = | |
| LOADING | |
| ERROR | |
| LOADED(string) | |
type searchType = | |
| ZIP | |
| LOCATION |
This file contains hidden or 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
type webData('a) = RemoteData.t('a, 'a, string); | |
type language = { | |
name: option(string), | |
count:int | |
} | |
type repo = { | |
id: int, | |
owner: string, |
This file contains hidden or 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
open Googleplaces | |
open AddressShared | |
module Encode = { | |
let location = (location: location) => | |
Json.Encode.( | |
object_([ | |
("administrative_area_level_1", string(location.administrative_area_level_1)), | |
("country", string(location.country)), | |
("locality", string(location.locality)), |
This file contains hidden or 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
type marshalled_location = {. | |
"administrative_area_level_1": string, | |
"country": string, | |
"locality": string, "postal_code": string, | |
"route": string, | |
"street_number": string | |
} | |
type input = { | |
key: string, |
This file contains hidden or 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
type location = { | |
street_number: string, | |
route: string, | |
locality: string, | |
administrative_area_level_1: string, | |
country: string, | |
postal_code: string | |
} |
This file contains hidden or 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 | |
## place in the app root ie / | |
echo "This will reinit the db, create ssl keys and the main website" | |
PLATFORM_DIRECTORY=$(pwd) | |
PHOENIX_DIRECTORY="apps/api" | |
DB_DIRECTORY="apps/db" |
This file contains hidden or 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
DOMAIN ?= mydomain.com | |
COUNTRY := IT | |
STATE := IT | |
COMPANY := Evil Corp. | |
# credits to: https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309 | |
# usage: |