Skip to content

Instantly share code, notes, and snippets.

View Yennick's full-sized avatar

Yennick Yennick

  • Drogisterij.net
View GitHub Profile
@Yennick
Yennick / sds011
Created February 26, 2021 18:09 — forked from kadamski/sds011
SDS011 dust sensor reading
#!/usr/bin/python
# coding=utf-8
# "DATASHEET": http://cl.ly/ekot
from __future__ import print_function
import serial, struct, sys, time
DEBUG = 1
CMD_MODE = 2
CMD_QUERY_DATA = 4
CMD_DEVICE_ID = 5
@Yennick
Yennick / generate_docker_cert.sh
Created May 13, 2020 20:09 — forked from bradrydzewski/generate_docker_cert.sh
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@Yennick
Yennick / tmux-cheatsheet.markdown
Created September 1, 2019 19:08 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Yennick
Yennick / brightnessControl.sh
Created August 27, 2019 10:02 — forked from Blaradox/brightnessControl.sh
Notifications for brightness and volume, using dunstify
#!/usr/bin/env bash
# You can call this script like this:
# $ ./brightnessControl.sh up
# $ ./brightnessControl.sh down
# Script inspired by these wonderful people:
# https://github.com/dastorm/volume-notification-dunst/blob/master/volume.sh
# https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a
@Yennick
Yennick / windowTracker.lua
Created June 19, 2016 20:16 — forked from tmandry/windowTracker.lua
Track all window open, close, move, and resize events using Hammerspoon
local events = hs.uielement.watcher
watchers = {}
function init()
appsWatcher = hs.application.watcher.new(handleGlobalAppEvent)
appsWatcher:start()
-- Watch any apps that already exist
local apps = hs.application.runningApplications()
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
colors="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="./tests/bootstrap.php"
>
<php>
<ini name="memory_limit" value="-1"/>
@Yennick
Yennick / phpunit.xml
Created February 22, 2016 15:18 — forked from lilbro1062000/phpunit.xml
cakephp phpunit.xml
<phpunit>
<filter>
<!-- Exclude directories for coverrage. -->
<blacklist>
<directory suffix=".php">bin</directory>
<directory suffix=".php">cakephp</directory>
<directory suffix=".php">*/Config/Migration</directory>
<directory suffix=".php">*/Config/Schema</directory>
<directory suffix=".php">*/Console/Templates</directory>
<directory suffix=".php">*/Lib</directory>
@Yennick
Yennick / build.xml
Created February 19, 2016 15:43 — forked from guywarner/build.xml
build.xml to run PHPUnit for CakePHP using DBTest by CakeDC
<?xml version="1.0" encoding="UTF-8"?>
<project name="name-of-project" default="build">
<target name="build"
depends="prepare,dbtest,cake,lint,phpcs-ci,phploc,pdepend,phpmd-ci,phpcpd"/>
<target name="build-parallel"
depends="prepare,dbtest,cake,lint,tools-parallel"/>
<target name="tools-parallel" description="Run tools in parallel">
@Yennick
Yennick / gist:e1fce69dbba1930ab18a
Created October 16, 2015 12:29 — forked from jordelver/gist:3073101
Set the Mac OS X SOCKS proxy on the command line

Set the Mac OS X SOCKS proxy on the command line

a.k.a. what to do when your ISP starts blocking sites :(

Set the SOCKS proxy to local SSH tunnel

networksetup -setsocksfirewallproxy "Ethernet" localhost 8080

To clear the domain and port

Keybase proof

I hereby claim:

  • I am yennick on github.
  • I am yennick (https://keybase.io/yennick) on keybase.
  • I have a public key ASA5ZBM8HC_sWBku-_IB0fn6LLC6ma5SyxddjNYifrlIzgo

To claim this, I am signing this object: