I hereby claim:
- I am fpietka on github.
- I am fpietka (https://keybase.io/fpietka) on keybase.
- I have a public key ASC58_VWQjcimGxLsE8kiz-XN4yfw4l0h9NEEWxLKCcSdAo
To claim this, I am signing this object:
#!/bin/sh | |
DEV_CONFIG_FILE=config.php-dev | |
CONFIG_FILE=config.php | |
MODIFIED_FILES=$(git diff --name-only HEAD@{1} HEAD) | |
for MODIFIED_FILE in $MODIFIED_FILES; do | |
if [ $DEV_CONFIG_FILE = $MODIFIED_FILE ]; then | |
echo | |
echo "-------------------------------------" | |
echo "Config file modified, need to update!" |
#!/bin/bash | |
while read oldrev newrev refname | |
do | |
forced=$(git rev-list $oldrev ^$newrev 2>/dev/null) | |
if [[ $refname = "refs/heads/master" ]] && [[ ! -z $forced ]]; then | |
echo >&2 "Forced push not allowed on master branch!" | |
exit 1 | |
fi | |
done |
#!/bin/bash | |
if [ -z $1 ] | |
then | |
exit 0 | |
fi | |
[[ `amixer -D pulse get Master | egrep 'Playback.*?\[o' | egrep -o '\[o.+\]'` == *"off"* ]] && MUTED=true || MUTED=false | |
if [ $1 == "mute" ] |
#!/bin/bash | |
# Renames subtitles files according to tv shows names found in a directory | |
# Acceped syntaxes for season/episode are: 304, s3e04, s03e04, 3x04 (case insensitive) | |
# | |
# Usage: | |
# Put this gist somewhere in your $PATH, like /usr/local/bin/subtitles-renamer | |
# Chmod +x it | |
# cd ~/YourHolidaysTvShowsWithSubtitles | |
# subtitles-renamer |
I hereby claim:
To claim this, I am signing this object:
CREATE OR REPLACE FUNCTION public.json_append(data json, insert_data json) | |
RETURNS json | |
IMMUTABLE | |
LANGUAGE sql | |
AS $$ | |
SELECT ('{'||string_agg(to_json(key)||':'||value, ',')||'}')::json | |
FROM ( | |
SELECT * FROM json_each(data) | |
UNION ALL | |
SELECT * FROM json_each(insert_data) |
The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.
I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.