Skip to content

Instantly share code, notes, and snippets.

View scplay's full-sized avatar
🏠
Working from home

ZeonWang scplay

🏠
Working from home
View GitHub Profile
#!/bin/bash
dir=`pwd`
proName(){
productName=`dmidecode | grep Product|sed 's/^[ \t]*//g'`
echo -e "\033[32;49;1m [服务器型号] \033[39;49;0m"
echo -e "$productName"
}
@scplay
scplay / i.js
Created June 19, 2021 10:05
dev debug
alert('inject gist');
@scplay
scplay / .bash_profile
Last active October 31, 2024 01:18
zeon util alias / shell func
# 1 for Linux
# curl -L https://gist.githubusercontent.com/scplay/5e2b68133f2a0486596f25fa45fc4c18/raw/4aa4247f593c7d0987ff6a531be11b7d9dadbfd1/.bash_profile >> ~/.bashrc
# 1 for Win
# copy this file to windows git bash ~/.bashrc file
# 1 for Mac iterm2
# curl -L https://gist.githubusercontent.com/scplay/5e2b68133f2a0486596f25fa45fc4c18/raw/4aa4247f593c7d0987ff6a531be11b7d9dadbfd1/.bash_profile >> ~/.zshrc
# 2 open new terminal
@scplay
scplay / translate_voice.js
Created March 19, 2017 16:20
Google 语音果然不好搞啊
var Jp = "413871.1941337652"; // 这个到底是什么卵??
function getToken(a) {
var b;
if (null !== Jp)
b = Jp;
else {
b = Hp(String.fromCharCode(84));
var c = Hp(String.fromCharCode(75));
b = [b(), b()];
@scplay
scplay / arr_obj_assign.js
Last active June 12, 2018 07:06
JSExam
var arr = [0, 1, 2];
function doSomeThing(arr) {
arr[0] = 10;
arr[1] = 10;
arr[2] = 10;
return arr;
};