-
After installing mitmproxy run it (just type
mitmproxy) in a terminal session and quit. This will create the necessaries certificates files at~/.mitmproxy. -
Extract the certificate to
.crtformat:
openssl x509 -in ~/.mitmproxy/mitmproxy-ca.pem -inform PEM -out ca.crt -
Trust the certificate into CA:
sudo trust anchor ca.crt -
Run the
mitmproxyagain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var defaultColors = [ '#000', '#D00', '#00CF12', '#C2CB00', '#3100CA', | |
| '#E100C6', '#00CBCB', '#C7C7C7', '#686868', '#FF5959', '#00FF6B', | |
| '#FAFF5C', '#775AFF', '#FF47FE', '#0FF', '#FFF' ]; | |
| function term2html(text, options) { | |
| options = options || {}; | |
| var colors = options.colors || defaultColors; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| each css class name is basically a color: #53533 coding | |
| /** | |
| * parse the tajweed text | |
| * @param quranBy | |
| * @param object verseObject {surah: 2, ayah: 4, verse: 'verse text here..'} | |
| * @returns {String} | |
| */ |
While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.
Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.
lib/is intended for code that can run as-issrc/is intended for code that needs to be manipulated before it can be used
See how a minor change to your commit message style can make a difference. Examples
<type>(<optional scope>): <subject>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var crypto = require("crypto"); | |
| function encrypt(key, str) { | |
| var hmac = crypto.createHmac("sha512", key); | |
| var signed = hmac.update(new Buffer(str, 'utf-8')).digest("base64"); | |
| return signed | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ wget \ | |
| --recursive \ | |
| --no-clobber \ | |
| --page-requisites \ | |
| --html-extension \ | |
| --convert-links \ | |
| --domains website.org \ | |
| --no-parent \ | |
| www.website.org/tutorials/html/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case @obat | |
| when "sering sakit" | |
| "puasa sunnah" | |
| when "wajah terlihat murung tidak bercahaya" | |
| "shalat malam tahajud" | |
| when "hati sempit" | |
| "baca Al-Quran dan maknanya" | |
| when "tidak bahagia" | |
| "shalat diawal waktu" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
NewerOlder