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/python | |
# -*- coding: utf-8 -*- | |
""" | |
@author: Nzix | |
""" | |
import os, shutil, platform, subprocess | |
import re, zipfile, json | |
import ssl |
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
adb shell su -c am start -n com.netease.cloudmusic/com.netease.cloudmusic.activity.DeveloperActivity |
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
const fs = require('fs') | |
const path = require('path') | |
const appDir = 'C:\\Program Files\\Microsoft VS Code\\resources\\app\\out' | |
const fsOptions = {encoding: 'utf8'} | |
const fileName = 'vs/workbench/workbench.main.js' | |
const filePath = path.join(appDir, fileName) | |
const patches = [ | |
[ |
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
conda install pyqt=4 | |
pip install cython | |
pip install cmake | |
pip install dlib | |
pip install opencv-contrib-python | |
pip install numpy scipy matplotlib scikit-learn |
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
[Unit] | |
Description=Terminal over HTTP | |
[Service] | |
User=root | |
ExecStart=/usr/local/bin/ttyd -p 9000 login | |
Restart=on-abort | |
[Install] | |
WantedBy=multi-user.target |
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
sudo add-apt-repository ppa:webupd8team/java -y | |
sudo apt update | |
sudo apt install oracle-java8-installer | |
sudo nano /etc/environment | |
#JAVA_HOME="/usr/lib/jvm/java-8-oracle | |
wget http://apache.01link.hk/hadoop/common/hadoop-2.8.5/hadoop-2.8.5.tar.gz # http://apache.osuosl.org/hadoop/common/hadoop-2.8.5/hadoop-2.8.5.tar.gz | |
sudo tar -zxf hadoop-2.8.5.tar.gz -C /usr/local/ | |
sudo mv /usr/local/hadoop-2.8.5/ /usr/local/hadoop/ |
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
sudo apt purge libreoffice-common unity-webapps-common thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot gnome-mines cheese gnome-sudoku transmission-common gnome-orca webbrowser-app landscape-client-ui-install deja-dup |
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
sudo apt-get install default-jdk -y | |
curl https://www.apache.org/dyn/closer.lua/spark/spark-2.4.1/spark-2.4.1-bin-hadoop2.7.tgz | |
wget http://ftp.naz.com/apache/spark/spark-2.4.1/spark-2.4.1-bin-hadoop2.7.tgz | |
tar xzvf spark-2.4.1-bin-hadoop2.7.tgz | |
mv spark-2.4.1-bin-hadoop2.7 spark | |
sudo mv spark/ /usr/lib/ | |
sudo nano /etc/profile | |
# export JAVA_HOME=/usr/lib/jvm/default-java/jre |
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
"auto"; | |
setScreenMetrics(1080, 1920); | |
var point = [ | |
[157, 1647], | |
[378, 1561], | |
[689, 1489], | |
[957, 1674] | |
] |
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
const net = require('net') | |
const spawn = require('child_process').spawn | |
const mpg123 = spawn('mpg123.exe', ['-R', '--fifo', '\\\\.\\pipe\\mpg123'], {shell: true}) | |
const remote = net.connect('\\\\.\\pipe\\mpg123') | |
remote.write('LOAD test.mp3\n') |