Skip to content

Instantly share code, notes, and snippets.

View moesoha's full-sized avatar
🧐
Busy working

Soha Jin moesoha

🧐
Busy working
View GitHub Profile
@moesoha
moesoha / login_lte.sh
Last active May 1, 2021 19:24
Keep MF910's cellular data connected
#!/bin/sh
LOCKFILE="/tmp/login_lte.pid"
TMP=$(mktemp -u)
WEBADDR="192.168.0.1"
PASSWORD="cGFzc3dvcmQ=" # in base64
# GENERAL FUNCTIONS
operation_prepare() {
touch ${TMP}
curl 'http://'${WEBADDR}'/goform/goform_set_cmd_process' -q -c ${TMP} -b ${TMP} -H 'Referer: http://'${WEBADDR}'/index.html' --data 'isTest=false&goformId=LOGIN&password='${PASSWORD}
@moesoha
moesoha / vConsoleLoader.js
Last active April 4, 2018 07:41
Load vConsole when `console` appears in `document.location.search` with one-line snippet
window.document.location.search.substr(1).split('&').forEach(function (v){
if(v.split('=')[0] == 'console'){
if(!window.VConsole){
var s = document.createElement('script');
s.src = 'https://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.0.0/vconsole.min.js';
window.document.body.appendChild(s);
}
var c=setInterval(function (){
if(window.VConsole){
clearInterval(c);
@moesoha
moesoha / baseline-css
Created December 19, 2017 01:17 — forked from rachelbaker/baseline-css
Baseline CSS: Graph paper like background for easier alignment of elements
html {
font-size: 93.8%;
background-color: #f1f2f3;
background-image:
-webkit-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em),
-webkit-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em);
background-image:
-moz-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em),
-moz-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em);
background-image:

Keybase proof

I hereby claim:

  • I am moesoha on github.
  • I am soha (https://keybase.io/soha) on keybase.
  • I have a public key whose fingerprint is C0C8 8AEB 0CF8 BA40 2DA5 B831 27DB 133C D5EB D3BE

To claim this, I am signing this object: