#Git Commands I Love
##Reset & Clean
git reset HEAD --hard
A hard reset may leave files behind which are now untracked because of a removal.
To check whether anything needs cleaning up do a trial clean like so:
async function postData(url = '', data = {}) { | |
const response = await fetch(url, { | |
method: 'POST', // *GET, POST, PUT, DELETE, etc. | |
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached | |
credentials: 'include', // include, *same-origin, omit | |
redirect: 'follow', // manual, *follow, error | |
referrerPolicy: 'no-referrer', // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url | |
body: JSON.stringify(data) // body data type must match "Content-Type" header | |
}); | |
return response.json(); // parses JSON response into native JavaScript objects |
#!/bin/bash | |
echo "hi" |
#!/bin/bash | |
# USAGE: ytm3 https://www.youtube.com/watch\?v\=rQLBitV69Cc | |
# DESCRIPION: Download Audio from YouTube videos, Convert to split MP3s (5 Min) | |
# PURPOSE: Studying w/ iPod shuffle | |
# PRE-REQS: Node.js, YTDL, FFMPEG | |
# Author: F1LT3R.io | |
for URL in $@ | |
do |
const hash = { | |
a: 1, | |
b: 1, | |
c: 1, | |
d: 1, | |
e: 1, | |
g: 1, | |
h: 1, | |
j: 1, | |
k: 1, |
* { | |
font-family: SauceCodePro Nerd Font!important; | |
/*-webkit-font-smoothing : none!important;*/ | |
} | |
.c9-menu-btn, .c9menu > .menu_item { | |
font-size: 15px; | |
padding-top: 6px; | |
-webkit-font-smoothing : none; | |
-webkit-font-smoothing : none!important; |
#Git Commands I Love
##Reset & Clean
git reset HEAD --hard
A hard reset may leave files behind which are now untracked because of a removal.
To check whether anything needs cleaning up do a trial clean like so:
var wait = (ms) => | |
new Promise((resolve, reject) => { | |
if (Math.random() > 0.5) { | |
return reject('NOPE!'); | |
} | |
setTimeout(() => { | |
resolve('Done!'); | |
}, ms); | |
}); |
/** | |
* Once this is running open your browser and hit http://localhost | |
* You'll see that the request hits the proxy and you get the HTML back | |
*/ | |
'use strict'; | |
const net = require('net'); | |
const http = require('http'); |
--no-group | |
--color | |
--ignore-directory=is:node_modules | |
--ignore-file=is:Markserv.log | |
--ignore-file=is:npm.debug.* | |
--type-set=css:ext:less | |
--type-set=css:ext:scss |