Skip to content

Instantly share code, notes, and snippets.

View BodhiHu's full-sized avatar
🌴
bodhicitta

Bodhi BodhiHu

🌴
bodhicitta
  • AMD, SAP
  • Shanghai
View GitHub Profile
@BodhiHu
BodhiHu / answerfile
Last active April 17, 2024 13:56 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@BodhiHu
BodhiHu / npm-using-https-for-git.sh
Created July 30, 2021 06:11 — forked from taoyuan/npm-using-https-for-git.sh
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@BodhiHu
BodhiHu / simple_args_parsing.sh
Created April 26, 2019 07:47 — forked from jehiah/simple_args_parsing.sh
a simple way to parse shell script arguments
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"
@BodhiHu
BodhiHu / js-crypto-libraries.md
Created November 28, 2018 10:29 — forked from jo/js-crypto-libraries.md
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

I start with a list and plan to create a comparison table.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.

@BodhiHu
BodhiHu / Stop Jenkins on Mac
Created November 22, 2017 05:47 — forked from ShankarSumanth/Stop Jenkins on Mac
Command to stop Jenkins on OSX/Mac
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
@BodhiHu
BodhiHu / Diamond Sutra.md
Created July 15, 2016 08:58
Diamond Sutra - 南怀瑾


   

金剛經說什麼 1/3

  南懷瑾  講述

 

# add the email package
meteor add email
@BodhiHu
BodhiHu / clone.js
Last active January 3, 2016 05:08
Deep clone an JS object: non recursive way. This originally is a fix of the famous.utilities.Utility.clone method (https://github.com/SeanOceanHu/famous/blob/develop/src/utilities/Utility.js#L115), which could easily cause call stack overflow)
/*
* Trampoline to avoid recursion in JS, see:
* http://www.integralist.co.uk/posts/js-recursion.html
*/
function trampoline() {
var func = arguments[0];
var args = [];
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
@BodhiHu
BodhiHu / .md
Last active October 4, 2015 09:52
Grunt de Mys