Skip to content

Instantly share code, notes, and snippets.

View marinakr's full-sized avatar

Maryna Shabalina marinakr

View GitHub Profile
@marinakr
marinakr / redis_import_csv.txt
Created September 12, 2019 11:46 — forked from arsperger/redis_import_csv.txt
import csv file into redis with a single command
cat data.csv | awk -F',' '{print " SET \""$1"\" \""$2"\" \n"}' | redis-cli --pipe
@marinakr
marinakr / redis_import_csv.txt
Created September 12, 2019 11:45 — forked from arsperger/redis_import_csv.txt
import csv file into redis with a single command
cat data.csv | awk -F',' '{print " SET \""$1"\" \""$2"\" \n"}' | redis-cli --pipe
@marinakr
marinakr / split-pem.sh
Last active June 4, 2019 15:00 — forked from gnanet/split-pem.sh
Split combined PEM file the smart way (tested on debian, requires openssl)
#!/bin/bash
CERT_NAME=cert_
META=.meta
#openssl pkcs7 -in ~/Downloads/PB2019.p7b -inform DER -print_certs -out chain.pem
if [ $1 ]
then
if [ -f $1 ]
then
@marinakr
marinakr / phoenix_to_umbrella
Last active January 25, 2019 21:11 — forked from emilsoman/phoenix_to_umbrella
How to move an existing phoenix app under an umbrella app
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