Skip to content

Instantly share code, notes, and snippets.

View yingshaoxo's full-sized avatar
🧠
Work in a health way.

yingshaoxo yingshaoxo

🧠
Work in a health way.
View GitHub Profile
@yingshaoxo
yingshaoxo / Use Chrome on Kali System.md
Last active April 20, 2025 08:21
How to run chrome in Kali System with root access.

Forget about those tutorials, just follow me.

1. download chrome deb file from whatever place

2. install chrome

@yingshaoxo
yingshaoxo / install jedi-vim.md
Created January 11, 2018 09:37
How to install and use jedi-vim in Kali System
1. Remove old Vim first

apt purge vim*

2. Install essential python relyings

apt install python3 python3-dev

3. Pull jedi-vim to local

mkdir ~/.vim
cd ~/.vim
@yingshaoxo
yingshaoxo / emulator with hardware in Kali.md
Created January 17, 2018 09:18
Fail to run emulator in Android Studio and Kali System(rolling) with hardware graphics?
cd Android/Sdk/emulator/lib64/libstdc++
mv libstdc++.so.6 libstdc++.so.6.bak
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6
@yingshaoxo
yingshaoxo / 记如何给小米4刷Lineage OS.md
Last active January 23, 2018 14:30
记如何给小米4刷Lineage OS
@yingshaoxo
yingshaoxo / How to set global variable in Kotlin.md
Created January 24, 2018 15:54
How to set global variable in Kotlin
  1. put this on top:
object GlobalVariable {
    var mp = MediaPlayer()
}
  1. use it everywhere GlobalVariable.mp
@yingshaoxo
yingshaoxo / Apache virtualhost setting for web-sockets.md
Last active February 11, 2018 04:28
Apache virtualhost setting for web-sockets
Environment
  1. A records in DNS manager | Type | Name | Value | | A | blog | your_server_ip | | A | math | your_server_ip |
  2. Set up apache2 with this https://certbot.eff.org/
  3. Add necessary module
a2enmod proxy proxy_http proxy_wstunnel proxy_balancer lbmethod_byrequests
systemctl restart apache2
@yingshaoxo
yingshaoxo / Simplest multiple variable keras example.py
Created August 11, 2018 15:17
Keras simplest multiple variable regression example
from keras.models import Sequential
from keras.layers import Dense
model = Sequential()
model.add(Dense(units=3, input_dim=3)) #`input_dim`
model.add(Dense(units=1)) #`last layer's units
model.compile(loss='mean_squared_error',
optimizer='sgd',
metrics=['accuracy'])

what is Javascript?

For most of the people, they may think JavaScript is nothing but a browser language, yes, but furthermore, it can be a common purpose programming language too.

So how do you use it?

1. run it at a browser

open your browser like firefox or chrome, press F12, you shell see a debug window. Click Console, you will see a terminal-like layout, yes, that's it, you can run basic Javascript codes in it.

@yingshaoxo
yingshaoxo / export_neteast_music.md
Created December 16, 2018 03:05
export android neteast music to computer
adb pull /sdcard/netease/cloudmusic/Music /home/yingshaoxo/Music/neteast
@yingshaoxo
yingshaoxo / demo.md
Last active February 9, 2019 15:45
百度语音转文字 (Python)

感觉很久没写中文技术文章了。说实话,学东西都是基于英文,或者 别人从英文翻译成中文 我们再捡二手货学习。所以用中文写技术文章怎么都感觉是在骗人,怎么都觉得很别扭

但是这一次的主角是百度。

虽然认真来讲,所有编程语言、框架、核心技术都是外国人写的(开源),但似乎你拼凑一下,仍可以贴上国产的标签(这个就相当于零件不是我做的,但我用它拼出了一件产品,产品是我的)。

而且又加上这个 API 是免费的,所以我可以介绍一下。(最近几年百度为了拿钱换名气,在海外还是做了不少工作,比如建立了 Twitter、Github 账户,成立了 AI研究室,开源了一些项目)

我这个人不喜欢讲废话: