Skip to content

Instantly share code, notes, and snippets.

View beevelop's full-sized avatar
🐝

Maik Hummel beevelop

🐝
View GitHub Profile
@beevelop
beevelop / clearcache.sh
Created December 7, 2015 20:33
Bash scripts
sync; echo 3 > /proc/sys/vm/drop_caches
@beevelop
beevelop / README.md
Last active April 17, 2020 03:35
Taiga Docker-Compose
1. Install and run the docker-compose.yml
git clone https://gist.github.com/1975674c22ce8948c895.git taiga
cd taiga
# Update docker-compose.yml
# - Replace Hostname of taigaback and taigafront
# - Update or disable Email settings
docker-compose up -d
@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
@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 / 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,
# 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" \

Docker-Clean

  • Removes all exited containers
  • Deletes unused images

Docker-Reset

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

Docker-Kill

@beevelop
beevelop / dompdf-pagebreak.html
Created April 18, 2015 07:48
explicit page break with dompdf
<div style="page-break-after: always;"></div>
@beevelop
beevelop / tcpdf-pagebreak.html
Created April 18, 2015 07:41
explicit page break with TCPDF
<br pagebreak="true" />
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.)