This file contains 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
#!/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 |
This file contains 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
#!/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 |
This file contains 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
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 |
This file contains 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
#!/bin/bash | |
VERSION="0.2" | |
TOKEN="945865147:AAFBT_GKRgIYvWrRorYbnUSXZsIRvK354C8" | |
CHATS=680273290 | |
DEBUG=true | |
DRY_RUN=false | |
IMAGE_FILE="" | |
DOCUMENT_FILE="" |
This file contains 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
TELEGRAM_TOKEN="945865147:AAFBT_GKRgIYvWrRorYbnUSXZsIRvK354C8" | |
TELEGRAM_CHAT="680273290" |
This file contains 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
#!/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 |
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.
This file contains 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
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. |
This file contains 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
#!/bin/bash | |
curl -k -X POST https://notify-api.line.me/api/notify -H 'Authorization: Bearer utzkj23PG1gUGlaea3BWWk4g1bPZz3fWMATf3HJFuUU' -F "message=$1" -F "imageFile=@$2" |
NewerOlder