Skip to content

Instantly share code, notes, and snippets.

View affix's full-sized avatar
:shipit:
Code never lies, Comments might though

Keiran Smith affix

:shipit:
Code never lies, Comments might though
View GitHub Profile
@jloehel
jloehel / main.yml
Created July 9, 2020 02:57
Ansible - Logstash - Role
---
- block:
- name: Install apt-transport-https
apt:
name: apt-transport-https
state: present
- name: Adding Adoptopenjdk's Signing Key
apt_key:
url: https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
@robphoenix
robphoenix / spacemacs-cheshe.md
Last active February 6, 2024 23:11
[DEPRECATED] Spacemacs Cheat Sheet - Visit https://github.com/Ben-PH/spacemacs-cheatsheet

This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
#include <TimerOne.h>
const byte PWMDAC1pin = 9; // PWM DAC, only pins 9 and 10 are allowed
const byte PWMDAC2pin = 10; // example using second DAC
const byte period = 32; // for 8 bit DAC
byte commandByte;
byte noteByte;
@affix
affix / dumpit.py
Last active December 30, 2015 23:59
dumpit.py a python alternative to mysqldump. I wrote this after an innodb corruption and mysqdump kept crashing for me. This seemed to export all the data correctly although a little slower. It seems to be more fault tollerant.
#!/usr/bin/env python
#
# dumpit.py
# An Alternative to mysqldump written in Python
# Requires MySQLdb Python Module.
#
# Author : Keiran 'Affix' Smith
# Email : affix@affix.me
# Web : http://affix.me
# Copyright 2013 Keiran Smith