Skip to content

Instantly share code, notes, and snippets.

View pongstr's full-sized avatar
:octocat:

pongstr pongstr

:octocat:
View GitHub Profile
@pongstr
pongstr / Globe4gLTE.md
Last active September 26, 2024 06:52
Access to Globe Broadband's Azatech DSL5001EN Router

Globe 4G LTE (Internet Only)

Noob access to administer your local area network and wifi access:

http://192.168.254.254

username: user
password: @l03e1t3
@pongstr
pongstr / _install_.sh
Last active January 17, 2024 20:28
Debian Stuff
#!/bin/bash
# Set sources
echo '
## deb cdrom:[Debian GNU/Linux bullseye-DI-rc2 _Bullseye_ - Official Snapshot amd64 NETINST 20210607-15:56]/ bullseye main
## deb cdrom:[Debian GNU/Linux bullseye-DI-rc2 _Bullseye_ - Official Snapshot amd64 NETINST 20210607-15:56]/ focal main restricted
deb https://deb.debian.org/debian/ bullseye main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye main contrib non-free
@pongstr
pongstr / _readme.md
Created February 12, 2017 08:23
ExpressJS: Nested Routing
@pongstr
pongstr / _readme.md
Last active October 26, 2023 05:57
HTTP/2 Recipe: Nginx + Node.js

Imgur

Recipe

Install homebrew/services, this will be helpful, you'll see later. :D

$ brew tap homebrew/services 
@pongstr
pongstr / create-ssl.md
Last active July 18, 2023 20:57
Create a Self-signed certificate and add it to macOS Keychain

How to use

## Download the create-ssl.sh file
curl -L -o create-ssl.sh https://gist.githubusercontent.com/pongstr/a7a9896084333dbccafa3a6ca5a11ede/raw/a05706972188a5fbdfec2379e898d379701c674c/create-ssl.sh

## make it executable 
chmod +x ./create-ssl.sh

## and run it. follow the prompts and it will generate the ssl certificate
@pongstr
pongstr / bash.md
Last active September 26, 2022 11:44
Bash useful commands :D

dirs

# display the directory stack vertically, prefixing each
# entry with its index in the stack.
$ dirs -v

# cd and push the path to the directory stack.
$ pushd /path/to/directory
@pongstr
pongstr / shorthand-javascript-techniques.md
Last active June 22, 2022 20:09
Shorthand Coding Techniques. Original post by @samdeering http://www.sitepoint.com/shorthand-javascript-techniques/

Javascript Shorthand Coding Techniques

My (@pongstr) opinion about shorthand coding techniques

Shorthand code is not really a replacement for normal coding but it is very handy and useful in some cases. There are tons of opinions and debates around this but, again it all comes down what is necessary for your codebase and using it responsibly.

{
"name": "DZ60RGB ANSI V2",
"vendorProductId": 1146753569,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_GESC",
"KC_1",
"KC_2",
"KC_3",
@pongstr
pongstr / tm.sh
Last active February 7, 2022 21:08
un-throttle TimeMachine Backups
#!/bin/zsh
## Unthrottle timemachine backup, if backups are important
## why throttle the speed? apple.
sudo sysctl debug.lowpri_throttle_enabled=0
#!/bin/bash
echo "Updating Aptitude Source...."
sudo cat > /etc/apt/source.list << EOF
# deb cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26]/ buster contrib main
# deb cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26]/ buster contrib main
deb http://deb.debian.org/debian/ buster main contrib non-free
deb-src http://deb.debian.org/debian/ buster main contrib non-free