Skip to content

Instantly share code, notes, and snippets.

View b-rucel's full-sized avatar
💭
:(){ :|:& };:

Bruce Lim b-rucel

💭
:(){ :|:& };:
  • Los Angeles
View GitHub Profile
@b-rucel
b-rucel / pivx-cli
Created August 5, 2022 17:08
pivx-cli
PIVX Core RPC client version v5.4.0
Usage: pivx-cli [options] <command> [params] Send command to PIVX Core
or: pivx-cli [options] -named <command> [name=value]... Send command to PIVX Core (with named arguments)
or: pivx-cli [options] help List commands
or: pivx-cli [options] help <command> Get help for a command
Options:
-?
@b-rucel
b-rucel / digimoneyd
Created August 5, 2022 17:05
digimoneyd
Digimoney version v1.0.0.3-60010-dgm1
Usage:
digimoneyd [options]
digimoneyd [options] <command> [params] Send command to -server or digimoneyd
digimoneyd [options] help List commands
digimoneyd [options] help <command> Get help for a command
#### Options:
@b-rucel
b-rucel / pivxd
Created August 5, 2022 17:04
pivxd
PIVX Core Daemon version v5.4.0
Usage: pivxd [options] Start PIVX Core Daemon
#### Options:
-?
This help message
- version
@b-rucel
b-rucel / bitcoin-cli
Last active August 6, 2022 06:06
bitcoin-cli
Bitcoin Core RPC client version v23.0.0
Usage: bitcoin-cli [options] <command> [params] Send command to Bitcoin Core
or: bitcoin-cli [options] -named <command> [name=value]... Send command to Bitcoin Core (with named arguments)
or: bitcoin-cli [options] help List commands
or: bitcoin-cli [options] help <command> Get help for a command
Options:
-?
@b-rucel
b-rucel / bitcoind
Last active August 6, 2022 06:05
bitcoind
Bitcoin Core version v23.0.0
Usage: bitcoind [options] Start Bitcoin Core
Options:
-?
Print this help message and exit
-alertnotify=<cmd>
@b-rucel
b-rucel / README.md
Created September 12, 2018 06:59 — forked from genomics-geek/README.md
Setting up a Dockerized web application with Django REST APIs, ReactJS with Redux pattern, and Webpack Hot Reloading! Mouthful.

Guide on how to create and set up a Dockerized web app using Django REST APIs and ReactJS

Hopefully this will answer "How do I setup or start a Django project using REST Framework and ReactJS?"

This is a guide to show you step by step how this can be setup. If you just want to get started, use the cookiecuter I set up cookiecutter-django-reactjs. It basically is a fork of pydanny's cookiecutter, just added the front-end stuff :).

I created this because it was SUCH a pain in the ass setting up a project using all the latest technologies. After some research, I figured it out and have it working. The repo that implements this is located here. Feel free to use it as a boilerplate ;)

Main features:

  • Django REST APIs
@b-rucel
b-rucel / CertificateGeneration.sh
Created April 3, 2018 02:17 — forked from sandfox/CertificateGeneration.sh
TLS certificate inspection example (using nodejs)
###
#Step 1 - Generate server certificates etc... (most of this code is horribly ripped off from nodejs docs currently -> http://nodejs.org/docs/latest/api/tls.html)
###
#Assuming your starting from a clean directory
mkdir server
cd server
#generate private key
@b-rucel
b-rucel / zIndex-bookmarklet.js
Last active August 13, 2018 18:15 — forked from paulirish/zIndex-bookmarklet.js
find all elements with a z-index and indicate what they are.
// find all elements with a z-index and indicate what they are.
// uses css outline which is not supported in IE <8
function contrast(color){ return '#' +
(Number('0x'+color.substr(1)).toString(10) > 0xffffff/2 ? '000000' : 'ffffff');
}
jQuery('*')
.filter(function(){ return $(this).css('zIndex') !== 'auto'; })
.each(function(){
@b-rucel
b-rucel / 0_reuse_code.js
Created August 14, 2017 19:31
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
@b-rucel
b-rucel / random_number_increment
Last active February 3, 2017 08:18
javascript random number with min/max range and incremental number set
function random_number_increment( min, max, inc ) {
let min = min || 0;
let inc = inc || 1;
if ( !max ) {
return new Error( 'Need to define max' );
}
return Math.floor( Math.random() * ( max - min ) / inc ) * inc + min;
}