Skip to content

Instantly share code, notes, and snippets.

View tdvgit's full-sized avatar
👨‍💻

Dmitry tdvgit

👨‍💻
View GitHub Profile
@tdvgit
tdvgit / wanway_tracker_unlocking.md
Created January 28, 2026 19:06 — forked from zayigo/wanway_tracker_unlocking.md
How to unlock the WanWay S20 GPS Tracker

Unlocking the WanWay S20 GPS Tracker

Tip

The contents of this guide are still valid, but for more detailed instructions, you should also check out this repo.

Important

If you can't change the server address on newer devices, you can try downgrading your firmware by following the instructions here.

@tdvgit
tdvgit / mount.sh
Created November 22, 2021 08:57 — forked from gtato/mount.sh
Mounting and unmounting raw disk images which have one partition
#/dev/loop0 and /dev/loop1 are assumed to be free, otherwise use 'losetup -f' and store the result
losetup /dev/loop0 disk.img
kpartx -as /dev/loop0
losetup /dev/loop1 /dev/mapper/loop0p1
mkdir disk
mount /dev/loop1 disk
@tdvgit
tdvgit / compile_php_5.2.17_Ubuntu_14.04.sh
Created September 25, 2019 08:23 — forked from deanet/compile_php_5.2.17_Ubuntu_14.04.sh
Install NGINX AND PHP 5.2.17 WITH PATCH FPM 0.5.14
apt-get update
apt-get install -y gcc make build-essential \
libxml2-dev libcurl4-openssl-dev libpcre3-dev libbz2-dev libjpeg-dev \
libpng12-dev libfreetype6-dev libt1-dev libmcrypt-dev libmhash-dev \
freetds-dev libmysqlclient-dev unixodbc-dev \
libxslt1-dev
mkdir -pv /usr/include/freetype2/freetype
ln -sf /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h
wget -c -t 3 -O ./php-5.2.17.tar.gz http://museum.php.net/php5/php-5.2.17.tar.gz
@tdvgit
tdvgit / upload.php
Created August 2, 2019 16:33 — forked from gayanhewa/upload.php
PHP Script to upload files via FTP
<?php
// Ref : http://php.net/manual/en/function.ftp-put.php
$name = "test.txt";
$filename = "/home/mine/Desktop/test.txt";
//-- Code to Transfer File on Server Dt: 06-03-2008 by Aditya Bhatt --//
//-- Connection Settings
$ftp_server = "server_url_here"; // Address of FTP server.
$ftp_user_name = "username_here"; // Username

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
@tdvgit
tdvgit / etchosts.bash
Last active August 29, 2015 14:26 — forked from mikeflynn/etchosts.sh
An /etc/hosts manager bash script (v1.1.1) -- Added help output by default
#!/bin/bash
HOSTSFILE="/etc/hosts"
BAKFILE="$HOSTSFILE.bak"
DOMAINREGEX="^[a-zA-Z0-9]{1}[a-zA-Z0-9\.\-]+$"
IPREGEX="^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$"
URLREGEX="^https?:\/\/[a-zA-Z0-9]{1}[a-zA-Z0-9\/\.\-]+$"
backup()
{