Skip to content

Instantly share code, notes, and snippets.

View agungf's full-sized avatar

Agung Firdaus agungf

  • Jakarta, Indonesia
View GitHub Profile
@agungf
agungf / gist:8803512
Created February 4, 2014 13:25
Remove passphrase (password) from private RSA key
Should also work for:
[v] any OpenSSH installation
Given, your key is in id_rsa
1
Passphrase is needed?
Try some host which has your public key (id_rsa.pub)
@agungf
agungf / gist:8803505
Created February 4, 2014 13:25
installing from npm fails registry url error
npm config set registry http://registry.npmjs.org/
Generating CSR
==============
openssl genrsa -des3 -out server.key 2048
openssl rsa -in server.key -out server.key.insecure
mv server.key server.key.secure
mv server.key.insecure server.key
openssl req -new -key server.key -out server.csr
install on apache
================
@agungf
agungf / strongloop re-install
Created December 16, 2013 09:20
unistalling strongloop deb package from rackspace server and installing the new version
1. removing the deb package: apt-get remove strongloop-suite
2. installing the new one:
add-apt-repository ppa:chris-lea/node.js
apt-get update
apt-get install nodejs
npm install -g strong-cli
@agungf
agungf / cara akses pakai jquery
Created January 21, 2012 06:55
indonesia operators regex
var phoneNumber = '08111111'; //nomor yang akan di test
$.each(operators, function(service, operator) {
//console.log("%o : %o ", service, operator);
if (operator["pattern"].test(phoneNumber)) {
//do some thing with here or simple alert (for testing)
alert("%s iku cocok karo: $s -> jeneng produk'e: $s soko operator %s", phoneNumber, operator["pattern"], service, operator["name"]);
else
console.log("%s iku gak cocok: $o", phoneNumber, operator);
}
[{"name":"speak","phrase":"Thanks for calling!"},
{"name":"playback","filename":"lots-o-monkeys"}]