Skip to content

Instantly share code, notes, and snippets.

Andrew Powell shellscape

Block or report user

Report or block shellscape

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View langoliers.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'twitter'
require 'json'
require 'faraday'
# things you must configure
PATH_TO_DROPBOX = "/PATH_TO_YOUR_DROPBOX/tweets/" # you must create this folder
TWITTER_USER = "YOUR_USERNAME"
@shellscape
shellscape / github-fallback.css
Last active Apr 5, 2019
Github Fallback CSS
View github-fallback.css
/* CSS intended to be used with the Chrome Stylus extension that reverts Github to a pre-dark-header appearance */
.watch_started .body a,
.fork .body a { color: #0366d6 !important; font-weight: normal !important; }
.Header {
border-bottom: 1px solid #E5E5E5 !important;
background-color: #F5F5F5 !important;
}
View RSV1.js
const defer = require('p-defer');
const getPort = require('get-port');
const Koa = require('koa');
const router = require('koa-route');
const WebSocket = require('ws');
const socketServer = new WebSocket.Server({ noServer: true });
/* eslint-disable no-param-reassign */
const middleware = async (ctx, next) => {
@shellscape
shellscape / langoliers.rb
Created Aug 11, 2018 — forked from robinsloan/langoliers.rb
Tweet delete script
View langoliers.rb
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from dev.twitter.com
CONSUMER_KEY = "your_consumer_key"
@shellscape
shellscape / unfave.rb
Created Aug 11, 2018 — forked from robinsloan/unfave.rb
Unfave script, because why not??
View unfave.rb
#!/usr/bin/env ruby
require "rubygems"
require "twitter"
require "json"
require "faraday"
# things you must configure
TWITTER_USER = "your_username"
# get these from dev.twitter.com
@shellscape
shellscape / remove-compiler.js
Created Jul 9, 2018
Remove a Compiler instance from a Webpack instance
View remove-compiler.js
const webpack = require('webpack');
const config = require('../fixtures/multi/webpack.config.js');
delete config.serve;
const compiler = webpack(config);
compiler.compilers = [
compiler.compilers.find((comp) => comp.name === 'server'),
@shellscape
shellscape / blue-gmail-icon-be-gone.js
Last active Jan 30, 2018
Restore the Modern, Red Unread Icon in Gmail using ViolentMonkey or TamperMonkey
View blue-gmail-icon-be-gone.js
// ==UserScript==
// @name Gmail Count Red
// @namespace Violentmonkey Scripts
// @match *://mail.google.com/*
// @grant none
// ==/UserScript==
function fix (link) {
const href = link.getAttribute('href');
link.setAttribute('href', href.replace('-b', '_2x'));
@shellscape
shellscape / file-protocol-cookie-support.js
Created Aug 16, 2017
Inject very basic Cookie support for the file:// Protocol
View file-protocol-cookie-support.js
@shellscape
shellscape / signal-debug.js
Created Apr 24, 2017
signal event debugging
View signal-debug.js
(function (root) {
'use strict';
var scope = 'bananas', // whatever your company global variable is
enabled = /(\?|&)debug=true/.test(document.location.search);
if (!root[scope) {
root[scope] = {
signal: {}
};
View provide-multi-plugin.js
/*
* A webpack plugin for specifying multiple dependencies for a single
* variable.
*
* plugins: [
* new ProvideMultiPlugin({
* 'gilt': [ 'internal.gilt_require', 'internal.require' ]
* })
* ]
*
You can’t perform that action at this time.