Skip to content

Instantly share code, notes, and snippets.

View mookman288's full-sized avatar

Brandon mookman288

  • Michigan
View GitHub Profile
@srafay
srafay / fix git password prompt - Windows
Created February 15, 2019 13:46
Disable annoying bitbucket or source tree password prompts on windows
$ git config --global --replace-all credential.interactive false
$ git config --global --replace-all credential.modalPrompt false
$ git config --edit --system
# remove line
helper = manager
# To disable openssh password prompt, add these 2 lines
[core]
// Talking console
//
// Support: http://caniuse.com/#search=SpeechSynthesisUtterance
//
// Copy paste the code into dev console or
// use http://mrcoles.com/bookmarklet/ to create a bookmarklet.
/* ✂️ ......................................................................................... */
if(console.log.name !== 'talkLog') {
console.l = console.log;
@stavarotti
stavarotti / setEnv.bash
Last active October 11, 2018 16:32
Set environment variables for node (windows cmder)
$ set KEY_1='1' && set KEY_2='2' && npm start
@rxaviers
rxaviers / gist:7360908
Last active May 18, 2024 09:55
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@6174
6174 / Random-string
Created July 23, 2013 13:36
Generate a random string in JavaScript In a short and fast way!
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
@eusonlito
eusonlito / foldersize.php
Last active July 25, 2023 12:50
PHP function to get the folder size including subfolders
<?php
function folderSize ($dir)
{
$size = 0;
foreach (glob(rtrim($dir, '/').'/*', GLOB_NOSORT) as $each) {
$size += is_file($each) ? filesize($each) : folderSize($each);
}
@mookman288
mookman288 / ajaxify-html5.js
Last active October 13, 2015 14:07 — forked from balupton/README.md
Ajaxify a Website with the HTML5 History API using History.js, jQuery, Possible Sliding, and Bug Fixes!
//http://james.padolsey.com/javascript/detect-ie-in-js-using-conditional-comments/
var ie = (function(){
var undef,
v = 3,
div = document.createElement('div'),
all = div.getElementsByTagName('i');
while (
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',