Skip to content

Instantly share code, notes, and snippets.

View jpalala's full-sized avatar
🎯
Focusing

Jose Palala jpalala

🎯
Focusing
View GitHub Profile
@jpalala
jpalala / build.js
Created August 15, 2021 14:53
node - create html from markdown file (using showdowns)
const showdown = require('showdown'),
converter = new showdown.Converter();
const fs = require('fs');
const cwd= __dirname;
try {
// 1. Update the path to the markdown file
var text = fs.readFileSync('path/to/MARKDOWN_FILE.md', 'utf8');
var html = converter.makeHtml(text.toString());
// 2. change this title
@jpalala
jpalala / brownie-currency.md
Last active July 4, 2021 15:30
[RFC] Brownie Points as a currency

brownie points as a currency

Brownie points in modern usage are an imaginary social currency, which can be acquired by doing good deeds or earning favor in the eyes of another, often one's spouse.

What can you buy with brownie points?

You can trade these brownie points with other similar help needed.

How many brownie points is given to a person for every help?

@jpalala
jpalala / Powerline.md
Created January 21, 2021 17:20 — forked from wm/Powerline.md
Installing powerline on Mac OSX. The following was done in version Version 10.8.2

Install dependencies

brew install cmake
brew install python
sudo easy_install pip

Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line

PATH="/usr/local/share/python/:$PATH"

Reinstall MacVim with brew

make a noise
social media. what do you do.
# Skills
prioritize and highlight your skills through:
- portfolio. a page to contact you and for people to know what you do.
@jpalala
jpalala / bobp-python.md
Created November 25, 2020 03:43 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@jpalala
jpalala / phpahaha.md
Created November 20, 2020 07:00
php vulnerabilities
  1. enabled allow_url_fopen https://stackoverflow.com/questions/24049534/is-allow-url-fopen-safe

  2. Source Code Revelation http://www.phpfreaks.com/tutorial/php-security

  3. Session Hijacking.

If someone steals a session key, is that bad? And the answer is: if you aren’t doing anything important in that session then the answer is no. But if you are using that session to authenticate a user, then it would allow some vile person to sign on and get into things. This is particularly bad if the user is important and has a lot of authority. Session IDs can also be vulnerable server-side if you’re using shared hosting services which store session information in globally accessible directories, like /tmp

Cookies are on browser. Prevention is to make sure there's no script on user input.

@jpalala
jpalala / jsecho
Created November 10, 2020 03:37
jsecho
https://joshwcomeau.com/operator-lookup/
@jpalala
jpalala / .pa11y.js
Last active November 13, 2020 06:31
angular a11y test
//https://gist.github.com/markblandford/2e49eccddebc05b86a40d4e39a2d6874
/*
This config isn't an exact match to that expected by Pa11y, `generatePa11yConfig` will parse this config to what Pa11y is expecting.
* non-standard properties used by the parser:
* `id`: (string, required) A unique identifier for the test / URL.
* `journeyId`: (string, required) JourneyId. A name for the application / journey. Only used for the name of the screenshot.
* `queryParams`: Key-value pair object, optional) Object of query parameters to include in the URL under test.
* `extendActions`: (string, optional) The `id` of another test / URL to use the actions from. This helps eliminate the need to duplicate actions across tests / URLs.
* `screenCapture`: (string, optional) Overwrites the Pa11y property. If given, then a screenshot will be taken of that URL. The text provided will be appended to the filename of the screenshot when saved to `reports/pa11y/`.
@jpalala
jpalala / keybase.md
Created October 7, 2020 14:53
keybase.md

Keybase proof

I hereby claim:

  • I am jpalala on github.
  • I am joepalala (https://keybase.io/joepalala) on keybase.
  • I have a public key whose fingerprint is CECE 002B E4D0 0253 073B 018A B2EB 07A3 DFFA F288

To claim this, I am signing this object: