Skip to content

Instantly share code, notes, and snippets.

View beevelop's full-sized avatar
🐝

Maik Hummel beevelop

🐝
View GitHub Profile
@beevelop
beevelop / ie-tap-highlight.html
Created October 29, 2014 08:15
Internet Explorer: Remove gray squares around links (Windows Phone)
<meta name="msapplication-tap-highlight" content="no" />
<meta http-equiv="refresh" content="5; url=https://example.com/download.php">
header("refresh:7;url=https://example.com/download.php");
// optionally print a hint here (You will be redirected in about 7 seconds. If not, click here.)
@beevelop
beevelop / tcpdf-pagebreak.html
Created April 18, 2015 07:41
explicit page break with TCPDF
<br pagebreak="true" />
@beevelop
beevelop / dompdf-pagebreak.html
Created April 18, 2015 07:48
explicit page break with dompdf
<div style="page-break-after: always;"></div>

Docker-Clean

  • Removes all exited containers
  • Deletes unused images

Docker-Reset

  • Stops all running containers
  • Removes all containers
  • Deletes all images

Docker-Kill

# SSH Login Notification for Pushover
# Add to end of /etc/profile
if [ -n "$SSH_CLIENT" ]; then
TITLE="${USER}@$(hostname -f)"
TEXT="$(date): SSH login to ${USER}@$(hostname -f)"
TEXT="$TEXT from $(echo $SSH_CLIENT|awk '{print $1}')"
curl -s \
-F "token=API-TOKEN" \
@beevelop
beevelop / getMostRecent.js
Created July 1, 2015 13:47
Get the most recently changed file in NodeJS
var path = require('path');
var fs = require('fs');
var getMostRecent = function (dir, cb) {
var dir = path.resolve(dir);
var files = fs.readdir(dir, function (err, files) {
var sorted = files.map(function(v) {
var filepath = path.resolve(dir, v);
return {
name:v,
@beevelop
beevelop / corci-compose.yml
Created September 9, 2015 12:58
docker-compose example for CorCI
duke:
image: "beevelop/corci-server:latest"
ports:
- "8080:8080"
larry:
image: "beevelop/corci-android:latest"
links:
- "duke:corci"
@beevelop
beevelop / osx_b64_clipboard.sh
Created September 15, 2015 15:28
OS X: Base64 from command line to clipboard
cat file.png | openssl base64 | tr -d '\n' | pbcopy