Provide different images for an <img>
tag to target different screen densities.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following lines were added by compinstall | |
# zstyle ':completion:*:descriptions' format '%B%d%b' | |
# zstyle ':completion:*:messages' format '%d' | |
# zstyle ':completion:*:warnings' format 'No matches for: %d' | |
# zstyle ':completion:*' group-name '' | |
# zstyle ':completion:*' group-name '' | |
# zstyle ':completion:*' ignore-parents parent pwd .. directory | |
# zstyle ':completion:*' insert-unambiguous true | |
# zstyle ':completion:*' list-colors '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# 00-header - create the header of the MOTD | |
# Copyright (c) 2013 Nick Charlton | |
# Copyright (c) 2009-2010 Canonical Ltd. | |
# | |
# Authors: Francois Best <[email protected]> | |
# Nick Charlton <[email protected]> | |
# Dustin Kirkland <[email protected]> | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <inttypes.h> | |
#include <cstring> | |
#define _STRINGIFY(LitteralString) #LitteralString | |
#define STRINGIFY(LitteralString) _STRINGIFY(LitteralString) | |
#define ASSERT(expr) \ | |
{ \ | |
if (!(expr)) \ | |
{ \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This simple line lists your environment variables, | |
# hashes them into a SHA-1 and uses that to query a "unique" | |
# robotic avatar from robohash.org. | |
# | |
# This lets you see quickly if something is out of place in | |
# a server configuration, as any slight change of the config | |
# will result in a totally different image, which is easier | |
# to catch at a glimpse than remembering checksums. |
I hereby claim:
- I am franky47 on github.
- I am franky47 (https://keybase.io/franky47) on keybase.
- I have a public key whose fingerprint is 4A13 03D1 C816 DF95 5713 661E ED1B 3C13 7048 076B
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Block Facebook IPv4 | |
0.0.0.0 www.facebook.com | |
0.0.0.0 facebook.com | |
0.0.0.0 login.facebook.com | |
0.0.0.0 www.login.facebook.com | |
0.0.0.0 fbcdn.net | |
0.0.0.0 www.fbcdn.net | |
0.0.0.0 fbcdn.com | |
0.0.0.0 www.fbcdn.com | |
0.0.0.0 static.ak.fbcdn.net |
This is a curated list of awesome
-like lists on various topics.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inspiration: https://www.raspberrypi.org/forums/viewtopic.php?t=23440 | |
let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)" | |
let secs=$((${upSeconds}%60)) | |
let mins=$((${upSeconds}/60%60)) | |
let hours=$((${upSeconds}/3600%24)) | |
let days=$((${upSeconds}/86400)) | |
UPTIME=`printf "%d days, %dh %dm %ds" "$days" "$hours" "$mins" "$secs"` | |
# get the load averages |
OlderNewer