Skip to content

Instantly share code, notes, and snippets.

View Fastidious's full-sized avatar
🐵
Just another one.

Fastidious Fastidious

🐵
Just another one.
View GitHub Profile
@Fastidious
Fastidious / .bash_profile
Last active March 7, 2017 22:09 — forked from fieg/.bash_profile
.bash_profile for OSX including autocomplete for ssh hosts
_complete_ssh_hosts ()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
grep -v ^# | \
uniq | \
grep -v "\[" ;
@Fastidious
Fastidious / github_gpg_key.md
Last active September 28, 2020 01:07 — forked from ankurk91/github_gpg_key.md
[Signing commits using GPG (Ubuntu/Mac)] To use on GitHub, or any other git repository.

Signing commits using GPG (Ubuntu/Mac)

  • Do you have an Github account? If not create one.
  • Install required tool.
  • Latest Git Client.
  • gpg tools.
# Ubuntu
sudo apt-get install gpa seahorse
#!/usr/bin/env bash
usage() {
cat <<HERE
usage: git make-remote <project-name>
or: git make-remote <path/to/project-name>
HERE
}
GIT_SERVER="git.zikes.me"
@Fastidious
Fastidious / border-glow.css
Created February 16, 2017 11:35 — forked from mystix/border-glow.css
CSS Glow Effect
a:hover {
/* border glow effect on hover */
box-shadow: 0px 0px 20px #000;
filter:progid:DXImageTransform.Microsoft.Glow(Color=black,Strength=20);
}
To generate it (from current date/time):
`date +%s`
Under macOS/BSD, to generate it based a given date:
`date -j -f "%d-%M-%Y" 20-12-2016 +%s`
And on Linux:
@Fastidious
Fastidious / linux.md
Last active March 8, 2018 12:26 — forked from boredzo/linux.txt
The Linux Cheatsheet I published 12 and a half years ago (and almost 15 years after the original Linux Cheatsheet).

About the Linux Cheatsheet

maintained by Mac-arena the Bored Zo, [email address that no longer works] copyright 2003 Mac-arena the Bored Zo available from [URL no longer works] HTML/PHP version at [URL works but no longer has a mirror] MIRRORS WELCOME! please email me if you want to mirror. some commands submitted by Steve Leopardi [email address deleted], frost, and rajnchaos Linux Cheatsheet IS NOT PUBLISHED BY IDG BOOKS and anyone who says it is is

@Fastidious
Fastidious / colorman.zsh
Created August 16, 2016 11:56 — forked from boredzo/colorman.zsh
Color Terminal for bash/zsh etc..
man() {
env \
LESS_TERMCAP_md=$'\e[1;36m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[1;40;92m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[1;32m' \
man "$@"
}
@Fastidious
Fastidious / appify
Created June 8, 2016 13:57 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@Fastidious
Fastidious / keybase.md
Last active October 4, 2017 11:35
Keybase proof

Keybase proof

I hereby claim:

  • I am fastidious on github.
  • I am davidcollantesus (https://keybase.io/davidcollantesus) on keybase.
  • I have a public key whose fingerprint is 12C7 FC2F 3D24 3C26 26F3 3909 4C9B 7B46 B9B6 7D02

To claim this, I am signing this object:

@Fastidious
Fastidious / nginx-userdirectory.md
Last active October 4, 2017 11:35
Tilde style user directory on nginx

This will allow tilde style user directory on nginx:

location ~ ^/~(.+?)(/.*)?$ {
    alias /home/$1/www$2;
    autoindex on;
}