Skip to content

Instantly share code, notes, and snippets.

View earljon's full-sized avatar

Earljon Hidalgo earljon

View GitHub Profile
@earljon
earljon / pldt_fiber_default_passwords.txt
Last active September 2, 2024 08:16
Default Admin Passwords for PLDT Fiber, Ultera and myDSL
PLDT myDSL, Fiber Home, ULTERA Username and Admin
Router: Fiberhome AN5506-04-FA PLDDTHOMEFibr modem
(debug switch)
(step1)
IP Address: 192.168.1.1/fh
Username: fiberhomesuperadmin
Password: sfuhgu
@earljon
earljon / rpi-ip.sh
Created September 16, 2018 14:07
Find your Raspberry Pi IP Address in your network
#!/bin/bash
# rpi-ip.sh
PI=raspberrypi.local
IPADDR=$(
/sbin/ping -c 1 $PI |
sed -En '1s/^PING [^ ]+ \(([0-9.]+)\): [0-9]+ data bytes$/\1/p'
)
echo "Your Raspberry Pi has an IP Address of $IPADDR"
echo
@earljon
earljon / format-sdcard-and-load-raspbian-osx-for-raspberry.md
Last active August 27, 2023 17:29
Formatting SD Card and load a Raspbian OS in Mac OSX for Raspberry PI

Format and Load Raspbian OS to SD Card using MacOS for Raspberry Pi

  1. Unmount the SD Card and DO NOT EJECT.
diskutil unmount /dev/disk2s1
  1. On your terminal, type diskutil list. Find the disk number of your SD Card. For example disk2. Example
@earljon
earljon / show_saved_ssid_password.txt
Created August 12, 2018 07:29
Show Saved WiFi Password for OSX and Windows
On Windows:
--------------
1. Open netsh in Command Prompt (Admin)
2. Show all Available WiFi or SSID: netsh> wlan show profile
3. Based on chosen SSID, show its password: netsh> wlan show profile <SSID_NAME_HERE> key=clear
4. The terminal will display your chosen SSID's password in plain text.
Alternatively via GUI, you could just tick the checkbox that says Show Password in Network Connections for each Wireless Networks you're currently connected to.
On OSX:
@earljon
earljon / terminal-osx.txt
Created August 19, 2017 14:54
Match OSX Terminal with Computer's Name and Hostname
# Run these in terminal window
sudo scutil --set ComputerName "ejh-devops-home"
sudo scutil --set LocalHostName "ejh-devops-home"
sudo scutil --set HostName "ejh-devops-home"
# Close all terminal and open
# Clear DNS cache
dscacheutil -flushcache
@earljon
earljon / aws_route53_delete.sh
Created August 15, 2017 08:58
Delete a Route 53 Record Set in AWS CLI
#!/bin/sh
# NOTE:
# Make sure that the value of Name, Type, TTL are the same with your DNS Record Set
HOSTED_ZONE_ID=<YOUR_HOSTED_ZONE_ID>
RESOURCE_VALUE=<YOUR_DNS_RESOURCE_VALUE-ex:IP or dns>
DNS_NAME=<YOUR_DNS_NAME-ex: subdomain.domain.com>
RECORD_TYPE=<DNS_RECORD_TYPE-ex: A, CNAME>
TTL=<TTL_VALUE>
@earljon
earljon / install_textract_osx.sh
Last active August 14, 2017 09:59
Install textract npm in OSX
# Requires:
# - brew
# - NodeJS
# This module is required by xpdf
brew update && brew cask install xquartz
# xpdf is required if you're converting PDF to text file
brew install xpdf