Skip to content

Instantly share code, notes, and snippets.

View beacrea's full-sized avatar

Coty Beasley beacrea

View GitHub Profile
@firatkucuk
firatkucuk / delete-slack-messages.js
Last active November 5, 2024 13:15
Deletes slack public/private channel messages, private chat messages and channel thread replies.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'SLACK TOKEN';
// Legacy tokens are no more supported.
// Please create an app or use an existing Slack App
@beacrea
beacrea / destingyLFGCharUpdate.js
Last active January 6, 2016 14:51
A console command to continually update a character
// For http://www.destinylfg.com
// Execute to trigger update button every 3 seconds
// Refresh page to stop
setInterval(function(){ $('#updateMeForm').click(); }, 3000);
@AndrewRademacher
AndrewRademacher / WhenToDropIt.hs
Last active August 29, 2015 14:05
A purely functional lookup to help you determine what to do when it's hot, based on your sitch. Based on esteemed work from Coty Beasley and Chad Elliot.
module WhenToDropIt
( Sitch (..)
, whatDoIDo
) where
data Sitch = Pigs | Pimps | NgAttitude
suffix :: String
suffix = " like it's hot." ++
"\nI got the rolly on my arm and I'm puring Chandon."
@THEtheChad
THEtheChad / stop.js
Created August 7, 2014 18:09
Not sure what to do? "Stop!" can help you!
function stop(){
var idx = Math.floor(Math.random() * 3);
alert(stop.MAP[idx]);
}
stop.MAP = [
'You should collaborate and listen.',
'It\'s Hammertime!',
'In the name of love.'
];
@THEtheChad
THEtheChad / whenToDropIt.js
Last active August 29, 2015 14:05 — forked from beacrea/whenToDropIt.js
A functional lookup to help you determine what to do when it's hot, based on your sitch. Original by Sir Coty Beasley.
function mySitch(situation){
var holla = 'I got the rolly on my arm and I\'m pouring Chandon.';
if(mySitch.LOOKUP.hasOwnProperty(situation)){
holla = [mySitch.LOOKUP[situation], mySitch.SUFFIX].join(' ');
}
alert(holla);
}
@kyledrake
kyledrake / ferengi-plan.txt
Last active October 3, 2024 15:12
How to throttle the FCC to dial up modem speeds on your website using Nginx
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
@beacrea
beacrea / appIcon-metaSnippet.html
Created February 14, 2014 18:46
AppIcon META Markup
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-57x57-precomposed.png">
<link rel="shortcut icon" sizes="196x196" href="touch-icon-196x196.png">
<link rel="shortcut icon" href="apple-touch-icon.png”>
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="apple-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#1f81c1">
@beacrea
beacrea / .bash_profile
Last active January 21, 2017 20:07
My current bash profile.
# Exports
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export PS1="\e[1;34;40m[\u@\h \W]\$ \e[m "
# Aliases
alias nserver="node ~/node/server.js"
alias ll="ls -al"
alias colors="python colors -t"
alias h5bp="git clone https://github.com/h5bp/html5-boilerplate.git"
@hofmannsven
hofmannsven / README.md
Last active November 10, 2024 13:48
Git CLI Cheatsheet
@bdalziel
bdalziel / gist:3005518
Created June 27, 2012 17:22
Simple horizontal scroll with native feel and no flicker following transitions
#issues {
width: 100%;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
overflow-x: scroll;
-webkit-overflow-scrolling:touch;
ul, li {