Advice and wisdom from Brendan Baker, formerly of Greylock.
(He used to have pitchpatterns.com, which listed all of these, but that domain has since lapsed.)
1. list all remote tags | |
git ls-remote --tags | |
2. delete local tag | |
git tag -d v1.0.1 | |
3. push tag deletion to remote | |
git push origin :refs/tags/v1.0.1 | |
4. tag local branch again |
// create a bookmark and use this code as the URL, you can now toggle the css on/off | |
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
javascript: (function() { | |
var elements = document.body.getElementsByTagName('*'); | |
var items = []; | |
for (var i = 0; i < elements.length; i++) { | |
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { | |
items.push(elements[i]); | |
} | |
} |
Advice and wisdom from Brendan Baker, formerly of Greylock.
(He used to have pitchpatterns.com, which listed all of these, but that domain has since lapsed.)
const { Response, Headers, Request } = require('whatwg-fetch'); | |
global.Response = Response; | |
global.Headers = Headers; | |
global.Request = Request; | |
global.console = { | |
log: () => {}, | |
warn: () => {}, | |
}; | |
global.fetch = require('jest-fetch-mock'); |
function trimSvgWhitespace() { | |
// get all SVG objects in the DOM | |
var svgs = document.getElementsByTagName("svg"); | |
// go through each one and add a viewbox that ensures all children are visible | |
for (var i=0, l=svgs.length; i<l; i++) { | |
var svg = svgs[i], | |
box = svg.getBBox(), // <- get the visual boundary required to view all children |
import ftplib | |
import os | |
import re | |
""" | |
MIT license: 2017 - Jwely | |
Example usage: | |
``` python | |
import ftplib |
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |
global | |
daemon | |
nbproc 1 | |
user haproxy | |
group haproxy | |
log 127.0.0.1:514 local0 | |
pidfile /var/run/haproxy.pid | |
stats socket /var/run/haproxy.stat mode 777 | |
spread-checks 5 | |
ssl-default-bind-options no-sslv3 no-tls-tickets force-tlsv12 |