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 September 27, 2023 09:30
zeon util alias / shell func
# curl -L https://bit.ly/2Zc29Bd >> ~/.bashrc
# copy this to windows git bash ~/.bashrc file
# for iterm2
# curl -L https://bit.ly/2Zc29Bd >> ~/.zshrc
alias szp='test -f ~/.zeon_profile.sh && . ~/.zeon_profile.sh'
urc() {
# updateZeonProfile
profile_url="https://gist.githubusercontent.com/scplay/5e2b68133f2a0486596f25fa45fc4c18/raw/.zeon_profile.sh?t=$(date +%s)"
@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;
};