Skip to content

Instantly share code, notes, and snippets.

@6
6 / slack.tab.renamer.js
Last active November 2, 2021 14:16 — forked from rchernobelskiy/slack.tab.renamer.js
Automatically remove asterisk from the title of the Slack tab (auto renames the tab when asterisk shows up) (install via tampermonkey)
// ==UserScript==
// @name Slack tab title asterisk remover
// @namespace http://roman.chernobelskiy/
// @version 0.1
// @description Permanently keeps the asterisk out of slack's tab title.
// @author Roman Chernobelskiy
// @match https://app.slack.com/*
// @grant none
// ==/UserScript==
@6
6 / keybase.md
Created April 23, 2016 23:07
keybase.md

Keybase proof

I hereby claim:

  • I am 6 on github.
  • I am pag (https://keybase.io/pag) on keybase.
  • I have a public key ASBb8e5CtrE-oSuKulPHBxezCgp9XSkCpu_vUmgU-q-h-Qo

To claim this, I am signing this object:

@6
6 / fix-git
Last active April 19, 2016 17:36
#!/bin/sh
# Converts string such as "git version 2.6.4 (Apple Git-63)" into "264"
function numeric_git_version {
git --version | sed 's/git version //g' | sed 's/ (Apple Git-[0-9]*)//g' | sed 's/\.//g'
}
function fix_git {
echo "Ensuring that /usr/local is writable for homebrew. Please enter your password:"
sudo chown -R $(whoami):admin /usr/local
@6
6 / readme.md
Last active May 28, 2018 07:45
Batch-update Heroku dataclip databases using js console

If you have many dataclips pointing to a database, and upgrade that database to a different plan, those dataclips will continue pointing to the old database. This will show you how to update all of those dataclips to point to the new database.

Step 1. Log in to Heroku

Step 2. Find heroku_resource_id for each databases

@6
6 / LireRequestHandler.java
Created March 5, 2016 17:12
LireSolr tweaked for searching very similar images
/*
* This file is part of the LIRE project: http://www.semanticmetadata.net/lire
* LIRE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* LIRE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@6
6 / index.html
Created April 22, 2015 04:23
modal fix bootstrap
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.css">
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
@6
6 / rAF.js
Created May 10, 2012 01:35 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {