Skip to content

Instantly share code, notes, and snippets.

View derozic's full-sized avatar
🎯

Scott de Rozic derozic

🎯
View GitHub Profile
shasum -a 256 [path to filename]
@derozic
derozic / gist:3aa893040023c3b34c7625972e7d65b9
Created March 3, 2018 18:49
Windows Command Line: Get your L3 CacheSize
wmic cpu get L2CacheSize, L3CacheSize
@derozic
derozic / gist:344988448f82d3b64389d8b2b2d463b6
Created March 2, 2018 18:38
Solved! Node-gyp error on windows when you have python 2.7 and Visuall C++ build environment
npm config set python python2.7
npm install --global --production windows-build-tools
@derozic
derozic / gist:84ee870b0f5d1b6a9f22818b82568e37
Created February 9, 2018 19:22
For when you need to create an android partition on your mac so that you can do dev
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg
@derozic
derozic / gist:e04b4263126e3fcde81f0a2d63ae6d7c
Created February 6, 2018 06:27
Power Shell: Unzip on Windows 10
Expand-Archive "<PathToZIPFile>" "<FolderWhereToExtract>"
@derozic
derozic / gist:df322b16ae81f10c600574ab254b779e
Created February 4, 2018 06:24
Howto check a file's checksum on Mac
shasum -a256 [drag and drop or type the path to the file you want to confirm]
@derozic
derozic / config.txt
Created February 3, 2018 07:06
Working config.txt file for monero.
/*
* pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
* wallet_address - Your wallet, or pool login.
* pool_password - Can be empty in most cases or "x".
* use_nicehash - Limit the nonce to 3 bytes as required by nicehash.
* use_tls - This option will make us connect using Transport Layer Security.
* tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it.
* pool_weight - Pool weight is a number telling the miner how important the pool is. Miner will mine mostly at the pool
* with the highest weight, unless the pool fails. Weight must be an integer larger than 0.
@derozic
derozic / .jshintrc
Created February 2, 2018 06:02
.jshintrc Example, for react
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
@derozic
derozic / gist:78323b2653282e3259deadfb65431c4d
Created February 1, 2018 21:19
package-lock.json contains different and problematic npm packages that don't live in package.json
rm -f package-lock.json && npm install
@derozic
derozic / gist:e72d26239414402b11549ae895e9fdf9
Last active April 3, 2018 23:49
rm -rf equivalent in PowerShell
rm -force .\billygdepr\