Skip to content

Instantly share code, notes, and snippets.

View nondanee's full-sized avatar
💪

Nzix nondanee

💪
  • Hangzhou, China
View GitHub Profile
@nondanee
nondanee / helper.py
Last active May 4, 2023 09:14
script for vscode ffmpeg lib replacement
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
@author: Nzix
"""
import os, shutil, platform, subprocess
import re, zipfile, json
import ssl
@nondanee
nondanee / start.sh
Last active February 26, 2019 10:59
android netease cloud music developer mode
adb shell su -c am start -n com.netease.cloudmusic/com.netease.cloudmusic.activity.DeveloperActivity
@nondanee
nondanee / patch.js
Last active February 16, 2019 09:20
[VSC] Beijing Third District Transportation Committee
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 = [
[
@nondanee
nondanee / conda.bat
Last active March 2, 2019 13:07
windows environment
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
@nondanee
nondanee / ttyd.service
Created March 3, 2019 10:04
systemctl configuration file for ttyd
[Unit]
Description=Terminal over HTTP
[Service]
User=root
ExecStart=/usr/local/bin/ttyd -p 9000 login
Restart=on-abort
[Install]
WantedBy=multi-user.target
@nondanee
nondanee / hadoop.install.sh
Last active April 3, 2019 11:24
hadoop installation on Ubuntu 16.04
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/
@nondanee
nondanee / purify.sh
Created March 6, 2019 07:08
Ubuntu 16 desktop purify
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
@nondanee
nondanee / spark.install.sh
Last active April 16, 2019 10:59
spark installation on Ubuntu 16.04
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
@nondanee
nondanee / eat.js
Created April 29, 2019 15:51
Auto.js script for Jike south&north fighting
"auto";
setScreenMetrics(1080, 1920);
var point = [
[157, 1647],
[378, 1561],
[689, 1489],
[957, 1674]
]
@nondanee
nondanee / main.js
Created May 29, 2019 11:19
Remote control test with mpg123 for Windows
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')