Skip to content

Instantly share code, notes, and snippets.

View shellscape's full-sized avatar
🌴

Andrew Powell shellscape

🌴
View GitHub Profile
.closed.octicon.octicon-issue-closed {
color: var(--color-danger-fg) !important;
}
.gh-header-meta .State--merged, .State--merged[title="Status: Closed"] {
background-color: var(--color-danger-fg) !important;
}
.TimelineItem-badge.color-bg-done-emphasis {
background-color: var(--color-danger-fg) !important;
@shellscape
shellscape / README.md
Created September 4, 2021 01:18
knex-stringcase TypeScript Definition

This defintion is from work by @eioo on this pull request Kequc/knex-stringcase#14 which the maintainer decided to decline only after making the contributor go through several revisions. I have no desire to maintain a @types package, but please feel free to copy and use as needed.

@shellscape
shellscape / github-graph.js
Last active June 28, 2021 00:28
Embedding the Github Contribution Calendar
var proxy = 'https://urlreq.appspot.com/req?method=GET&url=',
url = proxy + 'https://github.com/{{ site.github }}',
colors = {
'eeeeee': 'github-graph-none',
'd6e685': 'github-graph-litte',
'8cc665': 'github-graph-some',
'44a340': 'github-graph-more',
'1e6823': 'github-graph-most'
};
const path = require('path'),
webpack = require('webpack'),
ExtractTextPlugin = require('extract-text-webpack-plugin'),
CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
output: {
path: path.join(__dirname, 'dist'),
publicPath: '/',
filename: '/assets/js/build.js'
#!/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 April 5, 2019 01:28
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;
}
@shellscape
shellscape / RSV1.js
Last active December 11, 2018 15:13
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 August 11, 2018 15:11 — forked from robinsloan/langoliers.rb
Tweet delete script
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 August 11, 2018 15:11 — forked from robinsloan/unfave.rb
Unfave script, because why not??
#!/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 July 9, 2018 11:02
Remove a Compiler instance from a Webpack instance
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'),