Install software-properties-common
sudo apt-get install software-properties-common
Add Repo
sudo add-apt-repository ppa:olipo186/git-auto-deploy
/* userChrome.css can change the Firefox UI. | |
For details, see https://www.userchrome.org/ | |
Instructions | |
------------ | |
Save it to your Firefox 'Profile Folder'. To find that folder: | |
enter about:support in the Firefox address bar and look for it in the list. | |
Save this file to that folder. Then tell Firefox to load it: | |
enter about:config in the address bar, and search for userprof | |
and if that setting exists, set the following value to true: |
const { execSync } = require('child_process') | |
const { createHash } = require('crypto') | |
const invertColor = require('invert-color') | |
const branchName = execSync('git rev-parse --abbrev-ref HEAD') | |
const hash = createHash('sha256') | |
hash.update(branchName) | |
const color = '#' + hash.digest().toString('hex').substring(0, 6) | |
const invertedColor = invertColor(color, true) |
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
Install software-properties-common
sudo apt-get install software-properties-common
Add Repo
sudo add-apt-repository ppa:olipo186/git-auto-deploy
<script type="text/javascript"> | |
var iframe = document.createElement("iframe"); | |
iframe.height = "1px"; | |
iframe.width = "1px"; | |
iframe.id = "ads-text-iframe"; | |
iframe.src = "/adframe.js"; | |
document.body.appendChild(iframe); | |
var a = [ | |
"In a world free from ads, one font reigns supreme. COMIC SANS!", |
.partial {
@include border-radius(3px);
@include cursor-hover();
background-color: #FFF;
@echo off | |
SET st2Path=C:\Program Files (x86)\Brackets\Brackets.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets" /t REG_SZ /v "" /d "Open with Brackets" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Brackets" /t REG_SZ /v "" /d "Open with Brackets" /f |
#!/bin/sh | |
# Redirect output to stderr. | |
exec 1>&2 | |
# enable user input | |
exec < /dev/tty | |
consoleregexp='console.log' | |
# CHECK | |
if test $(git diff --cached | grep $consoleregexp | wc -l) != 0 | |
then |
$.fn.stripClass = function (partialMatch, endOrBegin) { | |
/// <summary> | |
/// The way removeClass should have been implemented -- accepts a partialMatch (like "btn-") to search on and remove | |
/// </summary> | |
/// <param name="partialMatch">the class partial to match against, like "btn-" to match "btn-danger btn-active" but not "btn"</param> | |
/// <param name="endOrBegin">omit for beginning match; provide a 'truthy' value to only find classes ending with match</param> | |
/// <returns type=""></returns> | |
var x = new RegExp((!endOrBegin ? "\\b" : "\\S+") + partialMatch + "\\S*", 'g'); | |
// http://stackoverflow.com/a/2644364/1037948 |