Skip to content

Instantly share code, notes, and snippets.

Avatar

Anthony Heddings anthonyheddings

View GitHub Profile
View update_dns.sh
#!/bin/bash
#Variable Declaration - Change These
HOSTED_ZONE_ID="XXXXXXXX"
NAME="example.com."
TYPE="A"
TTL=60
#get current IP address
IP=$(curl http://checkip.amazonaws.com/)
View OfficeKeyFix.cpp
#include <windows.h>
#include <stdio.h>
#include <thread>
#include <chrono>
#include <iostream>
int main(int argc, wchar_t* argv[])
{
//Build Array Of Keys To Unregister
//These map to W, T, Y, O, P, D, L, X, N, and Space, respectively.
View OfficeKeyFix.cpp
#include <windows.h>
#include <stdio.h>
int wmain(int argc, wchar_t* argv[])
{
//Kill Explorer
system("taskkill /IM explorer.exe /F");
//Register hotkey
if (RegisterHotKey(NULL, 1, 0x1 + 0x2 + 0x4 + 0x8| MOD_NOREPEAT, 0x4F))
View index.js
var AWS = require('aws-sdk');
var s3 = new AWS.S3({
apiVersion: '2012–09–25'
});
var eltr = new AWS.ElasticTranscoder({
apiVersion: '2012–09–25',
region: 'us-east-1'
});