Skip to content

Instantly share code, notes, and snippets.


Joe Chan joech4n

View GitHub Profile
joech4n /
Last active Sep 10, 2020 — forked from nickbudi/
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 / ^
Last active Jul 15, 2020
CoffeeScript in Greasemonkey
View ^
joech4n / Configure Postfix for Gmail SMTP in Mac
Last active Apr 29, 2020 — forked from larrybotha/readme.markdown
Configure Postfix for Gmail SMTP in Mac OSX
View Configure Postfix for Gmail SMTP in Mac
joech4n / tamper-coffee.user.js
Last active Apr 23, 2020
Template from Tampermonkey
View tamper-coffee.user.js
// ==UserScript==
// @name New Coffee-Userscript
// @namespace
// @version 0.1
// @description shows how to use coffeescript compiler
// @author You
// @require
// @match
// ==/UserScript==
/* jshint ignore:start */
View gist:dbea35b926e46ec3fcb3e67956c092dc
### Keybase proof
I hereby claim:
* I am joech4n on github.
* I am joechan ( on keybase.
* I have a public key ASByxl1laMCvQmpDbDkk-sjvofKPvwV7hMHk7hQzuPL4bAo
To claim this, I am signing this object:
joech4n /
Last active Nov 28, 2018
Get bucket size and object count by first level prefix (i.e. bucket/prefix1, bucket/prefix2)
BUCKETNAME=mybucketname; REGION=us-east-1; for prefix in $(aws s3api list-objects --bucket $BUCKETNAME --delimiter '/' --output text --region $REGION |grep COMMONPREFIX |tail -n+2| awk '{print $2}'); do echo "Totals for $prefix"; aws s3 ls --summarize --human-readable --recursive s3://$BUCKETNAME/$prefix --region $REGION ; done |grep Total
joech4n /
Last active Feb 11, 2018
AWS Lambda Function to change ownership on each object created to the bucket owner. It accomplishes this by overwriting the key with itself. This is to be triggered by an S3 ObjectCreated (All) Event.
joech4n /
Last active Sep 22, 2017
Dungeon Crawl Stone Soup (DCSS) Auto-Login tmux Script
#!/usr/bin/env bash
source ~/.crawl.secret # Get $USERNAME and $PASSWORD
# Example
# $ cat .crawl.secret
# USERNAME=myusername
# PASSWORD=mypassword
# name of tmux session
export SESSION="crawl"
joech4n /
Created Apr 27, 2017 — forked from jagrosh/
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 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 / lake-s3-object-take-ownership.js
Created Mar 2, 2017 — 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
View lake-s3-object-take-ownership.js
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 {
You can’t perform that action at this time.