Skip to content

Instantly share code, notes, and snippets.

tasks_ = task.application.instance_variable_get(:@tasks)
tasks_['db:rails_migrate'] = tasks_['db:migrate']
tasks_.delete('db:migrate')
task.application.instance_variable_set(:@tasks, tasks_)
namespace :db do
desc 'This task sends out notifcations, needs to run at least hourly to work.'
task migrate: :environment do
byebug
@KoRMaK
KoRMaK / dockly install.md
Created March 22, 2019 15:05
Install Dockly
insalling dockly

curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt-get install -y nodejs
sudo apt install npm
sudo npm install -g dockly
dockly
[global_config]
[keybindings]
[profiles]
[[default]]
use_custom_command = True
login_shell = True
custom_command = cd ~/path/to/default/folder; /bin/bash -l;
[layouts]
[[default]]
[[[child0]]]
require 'rspec/autorun'
# Resources:
# http://literacy.kent.edu/Minigrants/Cinci/romanchart.htm
# https://en.wikipedia.org/wiki/Roman_numerals#Roman_numeric_system
# https://coderpad.io/ Remote Pairing/recording of interview
describe 'Numeral' do
[
[ 1, 'I' ],
@KoRMaK
KoRMaK / curl.md
Created October 13, 2017 20:59 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@KoRMaK
KoRMaK / github_without_symbols.js
Created October 4, 2017 19:22 — forked from crookedneighbor/github_without_symbols.js
Remove Minus and Plus Signs from Github PR Files Tab
// Open up a chrome console while viewing the files of a Github PR and paste this:
var deleted_nodes = document.querySelectorAll(".blob-code.blob-code-deletion .blob-code-inner");
var added_nodes = document.querySelectorAll(".blob-code.blob-code-addition .blob-code-inner");
var neutral_nodes = document.querySelectorAll(".blob-code.blob-code-context .blob-code-inner");
var removeNodes = function(nodes) {
for(var i=0; i < nodes.length; i++) {
nodes[i].removeChild(nodes[i].childNodes[0]);
}
@KoRMaK
KoRMaK / sublime_settings.txt
Last active July 21, 2016 00:20
Sublime settings
{
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"file_exclude_patterns":
[
"*.log"
],
"font_size": 10,
"tab_size": 2,
"word_wrap": false
}
@KoRMaK
KoRMaK / jira_card_colorizer.user.js
Last active November 10, 2022 18:17
A script to colorize jira cards based on their priority
// ==UserScript==
// @name JIRA Card colorizer
// @namespace liquid-software.com
// @version 0.9.3
// @description A script to colorize jira cards based on their priority. Works on the backlog and sprint view with any cards of priority other than "Minor" "Major" or "Trivial".
// @author Corey Fleming
// @match https://*.atlassian.net/secure/RapidBoard.jspa*
// @updateURL https://gist.github.com/KoRMaK/7f864cdfd0769eba508b44cc4a796ab2/raw/jira_card_colorizer.user.js
// @downloadURL https://gist.github.com/KoRMaK/7f864cdfd0769eba508b44cc4a796ab2/raw/jira_card_colorizer.user.js
// @grant none
@KoRMaK
KoRMaK / youtube_playlist_automation.user.js
Last active March 28, 2016 12:38
Allows you to run a playlist and override it with some automation
// ==UserScript==
// @name Youtube Playlist Automation
// @namespace liquid-software.com
// @version 0.01
// @description Allows you to run a playlist and override it with some automation
// @author You
// @match https://www.youtube.com/*list=PLL2432vvJ7x-nG555LeuvpJ47eBnceLQt*
// ==/UserScript==
var big_data_hash = {}; //the override for the videos
@KoRMaK
KoRMaK / Goontube playlist scraper.js
Last active September 27, 2015 00:44
A script to copy and paste into your browser console to grab all the titles and links that make up the current playlist
//wirtten by kormak DO NOT STEAL distrubted free as in free speach, not free burgs heuheuh
// https://gist.github.com/KoRMaK/2df0841fe53c80a2c312
//runs through the playlist and grabs all the urls and stash them in an array. also outputs
//their address to the console for easy copy and paste
playlist_urls = []
//cool oneliner. thanks spacecheif, thpeif
$.each(pl, function(i, v) {playlist_urls.push( (v.video_provider == "vm" ? "http://www.vimeo.com/" : "http://www.youtube.com/watch/") + v.video_id + " : " + v.title );})
console.log(playlist_urls.join("\n")); //throw them all to the console