Skip to content

Instantly share code, notes, and snippets.

View JayBeavers's full-sized avatar

Jay Beavers JayBeavers

View GitHub Profile
@JayBeavers
JayBeavers / SSHA512_gen.py
Created April 26, 2020 02:08
Create a salted SHA512 password hash for use with Dovecot, updated for python 3
#!/usr/bin/python
import os
import hashlib
import getpass
import base64
password1 = None
password2 = None
<?xml version="1.0" encoding="utf-8"?>
<KeyboardLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" FontSize="40">
<Row>
<Action Caption="esc" Action="Esc_Button_Click" />
<Gap KeyWidth="0.5"/>
<Action Caption="" Action="Backspace_Button_Click" />
<Gap KeyWidth="0.5"/>
<Group>
<Conditional>
<Char Caption="1" ShiftCaption="!" />
@JayBeavers
JayBeavers / icebucketcontroller.ino
Created August 20, 2015 04:54
The Internet of Ice Buclet
#define BRAKEVCC 0
#define CW 1
#define CCW 2
#define BRAKEGND 3
#define CS_THRESHOLD 100
/* VNH2SP30 pin definitions
xxx[0] controls '1' outputs
xxx[1] controls '2' outputs */
int inApin[2] = {7, 4}; // INA: Clockwise input
@JayBeavers
JayBeavers / azure site log tail
Last active August 29, 2015 14:07
azure site tail log of a nodejs deployment with a custom build script in which 'node server.js' seems to be launched before the build process is called
info: Executing command site log tail
2014-10-13T21:21:37 Welcome, you are now connected to log-streaming service.
2014-10-13T21:21:38 Updating submodules.
2014-10-13T21:21:38 Preparing deployment for commit id 'a3c1ec6cd5'.
2014-10-13T21:21:38 Running custom deployment command...
2014-10-13T21:21:38 Running deployment command...
2014-10-13T21:21:38 Command: deploy.cmd
2014-10-13T21:21:39 Handling node.js deployment.
2014-10-13T21:21:39 KuduSync.NET from: 'D:\home\site\repository' to: 'D:\home\site\wwwroot'
2014-10-13T21:21:39 Copying file: 'IISNode.yml'
@JayBeavers
JayBeavers / binding.gyp
Created September 3, 2012 16:08
Simple example of exercising ngx-queue.h
// See node-gyp for documentation on using this file to build
{
"targets": [
{
"target_name": "helloqueue",
"sources": [
"helloqueue.c"
]
}
@JayBeavers
JayBeavers / gist:3553827
Created August 31, 2012 14:41
Contents removed, pull request submitted in place of this prototype
We couldn’t find that file to show.