Skip to content

Instantly share code, notes, and snippets.

View derozic's full-sized avatar
🎯

Scott de Rozic derozic

🎯
View GitHub Profile
@derozic
derozic / pedantically_commented_playbook.yml
Created May 26, 2016 00:20 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@derozic
derozic / 0_reuse_code.js
Created June 15, 2016 17:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@derozic
derozic / extensions.json
Last active February 8, 2018 17:58
VSCode's Settings - Syncing
[
{
"name": "node-debug2",
"publisher": "ms-vscode",
"version": "1.18.5",
"id": "ms-vscode.node-debug2"
},
{
"name": "gc-excelviewer",
"publisher": "GrapeCity",
@derozic
derozic / gist:e72d26239414402b11549ae895e9fdf9
Last active April 3, 2018 23:49
rm -rf equivalent in PowerShell
rm -force .\billygdepr\
@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 / .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 / 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 / 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 / gist:e04b4263126e3fcde81f0a2d63ae6d7c
Created February 6, 2018 06:27
Power Shell: Unzip on Windows 10
Expand-Archive "<PathToZIPFile>" "<FolderWhereToExtract>"
@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