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
mixin windows-tile(image, color) | |
// Windows 8 tile icon | |
meta(name='msapplication-TileImage', content=image) | |
meta(name='msapplication-TileColor', content=color) | |
mixin fallback | |
<!--[if lt IE 7]><html class='no-js lt-ie9 lt-ie8 lt-ie7'> <![endif]--> | |
<!--[if IE 7]><html class='no-js lt-ie9 lt-ie8'> <![endif]--> | |
<!--[if IE 8]><html class='no-js lt-ie9'> <![endif]--> |
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
<script type="x-shader/x-vertex" id="vertexshader"> | |
// switch on high precision floats | |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
varying vec2 texcoord; | |
void main() | |
{ |
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 | |
sudo dislocker -V /dev/sdb1 -u /media/bitlocker/ | |
sudo mount -rw -o loop /media/bitlocker/dislocker-file /media/mount/ | |
sudo chmod +w /media/mount | |
nautilus /media/mount |
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
// libs import | |
#include <Adafruit_NeoPixel.h> | |
#include <Servo.h> | |
#define DEBOUNCE_COUNT 5 | |
#define DURATION 650 | |
#define PAUSE 150 | |
#define SPEAKER_PIN 6 |
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
yubioath show Evernote | grep -oE "[0-9]{6}" | xclip -selection c |
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
# ~/.bash_aliases | |
# Kill all running containers. | |
alias dockerkillall='docker kill $(docker ps -q)' | |
# Delete all stopped containers. | |
alias dockercleanc='printf "\n>>> Deleting stopped containers\n\n" && docker rm $(docker ps -a -q)' | |
# Delete all untagged images. | |
alias dockercleani='printf "\n>>> Deleting untagged images\n\n" && docker rmi $(docker images -q -f dangling=true)' |
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
# imports the settings from the config files | |
import json | |
""" | |
EXAMPLE: | |
.json | |
postgres { | |
database : .. | |
} |
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
version: '2' | |
services: | |
db: | |
image: postgres | |
environment: | |
POSTGRES_PASSWORD: password | |
volumes: | |
- ./dbdata:/var/lib/postgresql/data |
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 | |
# this folder needs to exist | |
mkdir ~/certs | |
# authenticate yourself (requires that nothing runs on ports 443 and 80) | |
docker run --rm -it -v ~/certs:/etc/letsencrypt -p 443:443 certbot/certbot certonly --authenticator standalone | |
# renewal | |
docker run --rm -it -v ~/certs:/etc/letsencrypt certbot/certbot renew |
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
_updated3 : function (canvas, data) { | |
// JOIN data to canvas and provide selection object | |
const circlesSelection = canvas.selectAll("circle").data(data); | |
// get circles which have to be added and subtracted | |
const circlesToAdd = circlesSelection.enter(); | |
const circlesToRemove = circlesSelection.exit(); | |
// create and delete svg object | |
const newCricles = circlesToAdd.append(d3.creator("circle")); |
OlderNewer