Skip to content

Instantly share code, notes, and snippets.

/*
-How to use Custom CSS for the Gamepad Viewer-
http://mrmcpowned.com/gamepad
Enabling a custom CSS is as easy as adding &css=[url to css file]
to the end of the url like so:
http://mrmcpowned.com/gamepad?p=1&css=https://gist.github.com/anonymous/526491dc02014099cd14/raw/d7bb0477ba984f794497f3f0f82cb33484dc7889/ps3.css
If you're going to be using custom CSS for the gamepad viewer
to design your own skin, we're assuming you have some sort of
<?php
//////
//// CONFIGURATION
//////
//For Debugging.
$logToFile = true;
//Should you need to check that your messages are coming from the correct topicArn
@adrianvu
adrianvu / slack-delete-channel-messages.js
Created October 19, 2018 02:09
Slack Bulk Delete Messages
#!/usr/bin/env node
// 1. Get Legacy Token: https://api.slack.com/custom-integrations/legacy-tokens
// 2. Get Channel ID from the the browser URL.: https://workspace.slack.com/messages/CHANNEL_ID/details/
// Pass it as a parameter: node ./slack-delete-channel-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'INSERT TOKEN HERE'; // You can get it from: https://api.slack.com/custom-integrations/legacy-tokens
@adrianvu
adrianvu / letsencrypt-wordpress-setup.md
Created January 17, 2018 01:43 — forked from harryfinn/letsencrypt-wordpress-setup.md
Instructions on how to setup a Letsencrypt SSL certificate on a WordPress site

Letsencrypt (for WordPress sites)

Note: This setup assumes you are running Ubuntu 16.04 OS with Apache 2.4.23, older versions of Ubuntu (i.e. 14.04) require minor configuration changes in order for this setup to work.

Setup

Follow the install instructions for certbot (letsencrypt's SSL manager) on https://certbot.eff.org/, making sure to select the correct server OS version.

Note: You only need to complete the Install section, then return to this README in order to setup your SSL