type | description | release type |
---|
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
#!/usr/bin/python | |
# A Wake on LAN program that allows you to send magic packets over the Internet | |
import socket, struct | |
class Waker(): | |
def makeMagicPacket(self, macAddress): | |
# Take the entered MAC address and format it to be sent via socket | |
splitMac = str.split(macAddress,':') | |
# Pack together the sections of the MAC address as binary hex |
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
<!-- vim: set ts=2 et sw=2 sts=2: --> | |
<configuration> | |
<system.web> | |
<customErrors mode="off" /> | |
</system.web> | |
<system.webServer> | |
<httpErrors existingResponse="PassThrough" /> |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#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
# Google Distance Matrix Python Demo | |
# ================================== | |
# | |
# How to set up (Local part) | |
# -------------------------- | |
# | |
# Must have Python (>= 3.4) installed with 'requests' library. On Windows, maybe try | |
# Anaconda Python? It has a 'conda' package manager, make sure 'requests' is installed. | |
# | |
# How to set up (Internet part) |
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
- Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
- Create or import a key -- see below for https://keybase.io
- Run
gpg --list-secret-keys
and look forsec
, use the key ID for the next step - Configure
git
to use GPG -- replace the key with the one fromgpg --list-secret-keys