Skip to content

Instantly share code, notes, and snippets.

@joech4n
joech4n / WebhookTutorial.md
Created April 27, 2017 15:39 — forked from jagrosh/WebhookTutorial.md
Simple Webhook Tutorial (Twitter -> Discord)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel

Step 1 - Register on Zapier

  1. Go to https://zapier.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets
@joech4n
joech4n / lake-s3-object-take-ownership.js
Created March 2, 2017 06:58 — forked from williamtsoi1/lake-s3-object-take-ownership.js
a lambda function to automatically take ownership of any objects written into an s3 bucket. Inspired by https://gist.github.com/joech4n/953c1cd6a36698c5d120
console.log('Loading event');
var aws = require('aws-sdk');
var s3 = new aws.S3({apiVersion: '2006-03-01'});
exports.handler = function(event, context) {
// uses s3.listBuckets to fetch the canonical ID of the AWS account
s3.listBuckets(function(err,data) {
if (err) {
console.log(err, err.stack);
} else {
@joech4n
joech4n / cli.md
Last active December 14, 2015 21:47 — forked from phrawzty/2serv.py
simple http server to dump request headers
$ curl -s -H "X-Something: yeah" localhost:8000 > /dev/null
$ python serv.py
ERROR:root:User-Agent: curl/7.37.1
Host: localhost:8000
Accept: */*
X-Something: yeah
@joech4n
joech4n / README.md
Last active February 5, 2022 00:30 — forked from nickbudi/README.md
Joe's Counter-Strike: Global Offensive config

Joe's CS:GO Config

This is my constantly updated CS:GO autoexec config.

Put the files autoexec.cfg and video.txt in ...\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg or take what you want from it and add to your autoexec config!

Launch Options

-novid -high -tickrate 128 -nojoy -nod3d9ex +violence_hblood 0 +exec autoexec.cfg
@joech4n
joech4n / Configure Postfix for Gmail SMTP in Mac OSX.md
Last active May 13, 2023 10:34 — forked from larrybotha/readme.markdown
Configure Postfix for Gmail SMTP in Mac OSX
@joech4n
joech4n / textexpander_gen_from_atext.rb
Last active December 22, 2015 18:03 — forked from ttscoff/textexpander_gen.rb
Background: http://brettterpstra.com/2013/01/04/mass-creating-textexpander-snippets/ Forked from Brett's script to handle exported .csv from aText
#!/usr/bin/ruby
require 'csv'
require 'erb'
require 'cgi'
if ARGV.length == 2
input_csv = ARGV[0]
output_te = ARGV[1]
unless output_te =~ /\.textexpander$/
puts "Second argument must have a '.textexpander' extension."
@joech4n
joech4n / argconfigparse.py
Last active August 29, 2015 14:12 — forked from von/p.py
From http://blog.vwelch.com/2011/04/combining-configparser-and-argparse.html | Default config file is ~/.<SCRIPT FILE NAME>
#!/usr/bin/env python
import argparse
import ConfigParser
parser = argparse.ArgumentParser()
parser.add_argument("-c", "--conf_file",
help="Specify config file", metavar="FILE", default=os.path.expanduser('~') + '/.' + os.path.basename(__file__)))
args, remaining_argv = parser.parse_known_args()
defaults = {
"option1" : "some default",