Skip to content

Instantly share code, notes, and snippets.

@cyppst
cyppst / adb-bluetooth-switch
Created November 13, 2021 05:39
connect to remote adb (android tv) to switch bluetooth status. If you have any suggestions for improvement , you can post it in this thread :)
#!/bin/bash
if [ "$#" -eq "0" ]
then
echo -e "\nPlease call '$0 <parameter>' to run this command!\n"
else
if adb get-state 1>/dev/null 2>&1; then
echo "Host already connected."
else
echo "Host disconnected."
adb connect 192.168.0.125:5555
@cyppst
cyppst / deploy-laravel-2.sh
Created June 1, 2020 16:07 — forked from triswan/deploy-laravel-2.sh
Laravel Deployment
#!/bin/sh
#
## store the arguments given to the script
read oldrev newrev refname
## Where to store the log information about the updates
LOGFILE=./post-receive.log
# The deployed directory (the running site)
DEPLOYDIR=/home/swamedia/source/portal-elogistics
@cyppst
cyppst / golang-setup.sh
Created January 12, 2020 14:29
golang-setup.sh
url=`curl https://golang.org/dl/ | grep armv6l | sort --version-sort | tail -1 | grep -o -E https://dl.google.com/go/go[0-9]+\.[0-9]+((\.[0-9]+)?).linux-armv6l.tar.gz`
wget ${url}
sudo tar -C /usr/local -xvf `echo ${url} | cut -d '/' -f5`
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
@cyppst
cyppst / telegram
Created December 23, 2019 10:58
telegram
#!/bin/bash
VERSION="0.2"
TOKEN="945865147:AAFBT_GKRgIYvWrRorYbnUSXZsIRvK354C8"
CHATS=680273290
DEBUG=true
DRY_RUN=false
IMAGE_FILE=""
DOCUMENT_FILE=""
@cyppst
cyppst / .telegram.sh
Last active March 5, 2022 23:54
telegram.sh
TELEGRAM_TOKEN="945865147:AAFBT_GKRgIYvWrRorYbnUSXZsIRvK354C8"
TELEGRAM_CHAT="680273290"
@cyppst
cyppst / telegramcli.sh
Last active September 17, 2019 07:02
Motioneye
#!/usr/bin/env bash
# To install Telegram-CLI, run the command:
# curl -s https://gist.githubusercontent.com/Higgs1/01448cace611ef60c004efa6ac3c1c90/raw | bash /dev/stdin
# Optionally specify an output file, otherwise will default to ./telegram-cli
GIT_REPO='https://github.com/Cojad/tg.git'
LUA='5.2' # LUA Version
PY='3.5' # Python Version
We couldn’t find that file to show.

PLDT HOME FIBR AN5506-04-FA RP2616 Advanced Settings

By default the PLDT HOME FIBR AN5506-04-FA RP2616 comes only with limited settings.

Hidden from the web interface are the rest of the router's capabilities and advanced settings.

We just need to enter the right url for the settings you're looking for.

We need to be logged in before we can do anything else, use your defined password if you already set the admin password.

I don't know if bridge mode works without the help of pldt but here are the steps to revert back to internet wan.
TRY THIS AT YOUR OWN RISK! I WILL NOT BE RESPONSIBLE IF YOU MISCONFIG YOUR ROUTER.
0. enable telnet in fiberhomesuperadmin.
1. go to cmd then type "telnet 192.168.1.1" without the quotes.
2. it will ask you for the login details.
username and password: gepon
3. type ddd then type shell
4. it will ask you to login to port 26
5. close the current telnet window
6. go to cmd again but this time, type "telnet 192.168.1.1 26" without the quotes.
#!/bin/bash
curl -k -X POST https://notify-api.line.me/api/notify -H 'Authorization: Bearer utzkj23PG1gUGlaea3BWWk4g1bPZz3fWMATf3HJFuUU' -F "message=$1" -F "imageFile=@$2"