Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
# Copyright (c) Marcus Post, <marcus@marcuspost.com>
# # # #
$_=q,my(@f|@c|x$_=q.my(@f|@c|x$_=q.my(@f|@c|x$_=q.m(@f||@c|x$_=q.m(@f||@c|xx
@w);@a=@f=<DAT%@w);@a=@f=<DAT%@w);@a=@f=<DAT%@w;@a=@f=<DAAT%@w;@a=@f=<DAAT%%
A>;seek(DATA|0!A>;seek(DAA|0!!A>;seek(DAA|0!A>;seek(DAA|0!!A>;seek(DAA|0!!AA
|0);@c=<DATA>;Y|0);@c<DATA>;Y||0);@c<DATA>Y||0);@c<DATA>Y|||0);@c<DATA>Y||||
until(($_=pop(zutil(($_==pp(zuttil(($_==p(zuttil(($_==p(zutttil(($_==p(zuttt
@c))=~/^_/){};Qc))=~/^_/){};Qc)))=~/^_/{};Qc)))=~/^_/{};Qc))))=~/^_/{};Qc)))
unshift(@a|$_)xnshift(@a|$_)xnshhift(a|$_)xnshhift(a|$_)xnshhiift(a|$_)xnshh
@vindir
vindir / parse_dotenv.bash
Created November 24, 2020 07:06 — forked from judy2k/parse_dotenv.bash
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
@vindir
vindir / devops_best_practices.md
Created September 7, 2020 07:59 — forked from jpswade/devops_best_practices.md
Devops Best Practices Checklist

Find the original here article here: Devops Best Practices

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud

@vindir
vindir / devops_best_practices.md
Created September 7, 2020 07:59 — forked from jpswade/devops_best_practices.md
Devops Best Practices Checklist

Find the original here article here: Devops Best Practices

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud

@vindir
vindir / s3_client.py
Created January 22, 2020 17:39 — forked from tamouse/s3_client.py
Example: An S3 proxy client written in Python
"""
The server application uses AWS S3 in various places.
This utility provides a common place for interacting
with S3 and handles the authentication in a unified manner.
"""
import os.path
import logging
Double q is best canned salmon. Others are ok too. U can pick out bone or leave in. If leave in mix into meat really good.
1 can salmon. 1egg. Cornmeal or crushed saltines. About 1/2 to 3/4 cup. Add little at a time so mix doesn't get too dry. Add just enough to form a Pattie.
Add salt pepper. Dried fill or old Bay to taste. You can also add finely chopped onion. Dill pickle or a little mustard.
Basic is the salmon carnmeal and egg.
Form into patties. Fry in a little oil.
You can make with fresh salmon. Remove the bone. Chop into small pieces or use food processor. Pulse function. Don't run continuous or it'll heat the meat. Then follow recipe
Actually like with canned salmon better
You can also make with canned tuna
@vindir
vindir / Makefile
Created April 4, 2018 18:25 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)

Humpty Numpty sat at the mall.

Humpty Numpty was at the mess hall.

All Burger King's PR and Burger King's men,

Couldn't feed Humpty a Burger again.

@vindir
vindir / merge_git_repos.md
Created January 29, 2018 18:26 — forked from bxt/merge_git_repos.md
Git: Merge other repository into subfolder

Copy the child repo to your /tmp (Or into another ramdisk, should be faster)

cd into the new repo.

Now lets rewirte stuff.

Move into subdirectory (here called "report"):

git filter-branch --index-filter \

'git ls-files -s | sed "s-$(printf '''\t''')"*-&report/-" |

@vindir
vindir / gist:f97db58a91773866babecf528bc81510
Created December 13, 2017 15:41
A Short History of env vs printenv Raw
Are there any historical reasons for there being two commands instead of one?
There was just history manner.
Bill Joy wrote the first version of printenv command in 1979 for BSD.
UNIX System III introduced env command in 1980.
GNU followed UNIX System's env in 1986.
BSD followed GNU/UNIX System's env in 1988.
MINIX followed BSD's printenv in 1988.
GNU followed MINX/BSD's printenv in 1989.