Skip to content

Instantly share code, notes, and snippets.

HerrH atomtigerzoo

Block or report user

Report or block atomtigerzoo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
atomtigerzoo / functions.php
Created Jul 3, 2019
Wordpress: responsive oembeds - youtube, vimeo, images, etc
View functions.php
Creates a container around embeds
function responsive_embed_wrapper($content) {
return '<figure class="oembed-wrap">' . $content . '</figure>';
add_filter('embed_oembed_html', 'responsive_embed_wrapper', 10, 3);
atomtigerzoo / .bashrc
Last active Nov 25, 2018
A nice and colored bashrc
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
atomtigerzoo /
Created Jul 11, 2018
Simple bash script to check if a mount point has been mounted, and if not, re-mount it or notify someone via email
if cat /proc/mounts | grep ${MOUNTPOINT} > /dev/null; then
echo "${MOUNTPOINT} already mounted."
exit 0
atomtigerzoo /
Last active Feb 4, 2018
Block IP with fail2ban from command line

A quick block for clients that bother you somehow or do malicious stuff.

List your jails

 sudo fail2ban-client status

Choose the jail you want to block the IP from/add it to.

Block the IP

atomtigerzoo / break-long-words-with-hypens.css
Created Dec 29, 2017
CSS: break long words with auto-hyphens
View break-long-words-with-hypens.css
hyphens: auto;
overflow-wrap: break-word;
atomtigerzoo /
Created Aug 29, 2017 — forked from cobyism/
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).


Keybase proof

I hereby claim:

  • I am atomtigerzoo on github.
  • I am atomtigerzoo ( on keybase.
  • I have a public key ASCf1duP-wmkXpvYF6F8-Rf-bn4U49uhsNiT65ynL9Benwo

To claim this, I am signing this object:



alt + shift + up/down Copy selected above/below current position


ctrl + shift + e Show files

ctrl + shift + f Search

atomtigerzoo / .eslintrc.json
Created Sep 27, 2016
ESlint config for common projects
View .eslintrc.json
"env": {
"browser": true,
"es6": true,
"node": true,
"jquery": true
"extends": "airbnb",
"parserOptions": {
"sourceType": "module"
View auto-hotkeys.ahk
; Useful hotkeys
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; !=ALT, +=Shift, ^=STRG, #=WINDOWS-Key
You can’t perform that action at this time.