Skip to content

Instantly share code, notes, and snippets.

@subz0
subz0 / anydesk-enable-remote-access.md
Created April 14, 2022 17:09 — forked from imami/anydesk-enable-remote-access.md
AnyDesk - How Enable Remote Access from ubuntu/debian terminal

###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.

Note:

Here are the commands might be usefull in this purpose:

  • anydesk --get-status : To get current status of anydesk, which might be offlien,online or nothing.
  • anydesk --get-id : To get the ID that your system can be accessed by.
  • anydesk --service : To start anydesk service if not already running (for Linux).
  • anydesk --restart-service : To restart anydesk service
  • anydesk --stop-service : To stop anydesk service
@subz0
subz0 / huawei-fw-list.txt
Created January 21, 2020 05:08 — forked from ValdikSS/huawei-fw-list.txt
Huawei firmware files found on update server
==========================================================================
DO NOT WRITE ANY QUESTIONS IN COMMENTS
==========================================================================
This is not appropriate place for discussions. Keep this list FW-only.
I do NOT have any firmware files apart from published here or on 4pda. Please do not contact me for firmware files requests.
This is a list of files found on Huawei update server by brute-forcing URL parameters.
Some firmware files have changelogs. Just change file name to "changelog.xml" in the end of the URL.
@subz0
subz0 / gist:0e306b5c99c3d00820bc9b219194a7ab
Created March 5, 2018 15:14 — forked from nghuuphuoc/gist:7398312
Install npm, nodejs on Centos 6
# Enable Fedora Extra Packages for Enterprise Linux (EPEL) repos
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# Install npm from the epel repos
$ sudo yum install npm --enablerepo=epel
@subz0
subz0 / verify-google-recaptcha-with-php
Created February 2, 2018 06:36 — forked from jonathanstark/verify-google-recaptcha-with-php
Verify Google reCAPTCHA with PHP
#
# Verify captcha
$post_data = http_build_query(
array(
'secret' => CAPTCHA_SECRET,
'response' => $_POST['g-recaptcha-response'],
'remoteip' => $_SERVER['REMOTE_ADDR']
)
);
$opts = array('http' =>
@subz0
subz0 / gist:4d8b0416d87d7121f82edb06a33c2603
Created October 6, 2017 01:18
Install nginx with pagespeed (Centos 6.+)
wget -c https://www.openssl.org/source/openssl-1.0.2k.tar.gz
tar xf openssl-1.0.2k.tar.gz -C /usr/local/
cd /usr/local/openssl-1.0.2k
./config
make depend
make
make test
make install
mv /usr/bin/openssl /usr/bin/openssl_1.0.1e
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
@subz0
subz0 / gist:6c81d6a101fc1525554eaee450e78fe6
Created October 6, 2017 01:18
Install shadowsock server
sudo -i
yum -y install python-setuptools
easy_install pip
yum -y install wget
wget –no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log
https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/
@subz0
subz0 / gist:cb7a99f56db9dbb1bf60d36d11e9146a
Created September 17, 2017 13:32
command to optimize all database. Change username accordingly
mysqlcheck -u username -p -o --all-databases
@subz0
subz0 / gist:6174f7da4595672e8dc461e3e193c904
Last active September 17, 2017 07:18
Convert myisam to Innodb. Change DBUSER, DBPWD, DBNAME accordingly
DBUSER=root
DBPWD="dbpass";
DBNAME="dbname";
mysql -u "$DBUSER" -p"$DBPWD" "$DBNAME" -e \
"SHOW TABLE STATUS WHERE Engine='MyISAM';" | \
awk 'NR>1 {print "ALTER TABLE "$1" ENGINE = InnoDB;"}' | \
mysql -u "$DBUSER" -p"$DBPWD" "$DBNAME"