This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell am | |
usage: am [subcommand] [options] | |
usage: am start [-D] [-W] [-P <FILE>] [--start-profiler <FILE>] | |
[--R COUNT] [-S] [--opengl-trace] <INTENT> | |
am startservice <INTENT> | |
am force-stop <PACKAGE> | |
am kill <PACKAGE> | |
am kill-all | |
am broadcast <INTENT> | |
am instrument [-r] [-e <NAME> <VALUE>] [-p <FILE>] [-w] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netsh advfirewall firewall add rule name=httpd dir=in action=allow program='C:\cygwin64\usr\sbin\sshd.exe' enable=yes description=cygwin_sshd | |
netsh advfirewall firewall add rule name=httpd dir=out action=allow program='C:\cygwin64\usr\sbin\sshd.exe' enable=yes description=cygwin_sshd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# root@pve2:/etc/apt/sources.list.d# lspci | grep -i real | |
# 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8125 (rev 05) | |
# boot up with "DEBUG" mode | |
# ctrl-d for the first prompt | |
# connect another thethering network ... | |
ip addr show | |
ip link set enp12s0f3u3 up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# place setup-x86_64.exe under the cygwin root directory | |
#apt-cyg | |
/setup-x86_64.exe -q -P wget,tar,qawk,bzip2,subversion,vim | |
wget 'http://rawgit.com/transcode-open/apt-cyg/master/apt-cyg' | |
chmod a+x apt-cyg | |
mv apt-cyg /bin/ | |
#/etc/profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bin/date -D "%s" -d $(( $(/bin/date +%s ) - 86400 )) +%Y-%m-%d | |
#https://forum.synology.com/enu/viewtopic.php?t=50992 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected static Uri getRandomExternalImageContent(Context c) { | |
ContentResolver resolver = c.getContentResolver(); | |
if (resolver == null) | |
return null; | |
String [] proj = { MediaStore.Images.Media.DATA }; | |
Cursor cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, proj, null, null, null); | |
int count = cursor.getCount(); | |
int position = (int) (Math.random() * count); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install expect | |
wget https://hadler.me/files/forticlient-sslvpn_4.4.2333-1_amd64.deb | |
sudo dpkg -i forticlient-sslvpn_4.4.2333-1_amd64.deb | |
/opt/forticlient-sslvpn/64bit/helper/setup | |
cat > sslvpn << EOF | |
#!/usr/bin/expect -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install ubuntu in virtual machine | |
# https://ubuntuforums.org/showthread.php?t=1481300 | |
# Get arch type of ubuntu | |
# i686 = 32 bit | |
# x86_64 = 64 bit | |
uname -m | |
# download forticlient | |
https://hadler.me/linux/forticlient-sslvpn-deb-packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nct6779-isa-0290 | |
Adapter: ISA adapter | |
Vcore: 512.00 mV (min = +0.00 V, max = +1.74 V) | |
AVCC: 3.31 V (min = +2.98 V, max = +3.63 V) | |
+3.3V: 3.31 V (min = +2.98 V, max = +3.63 V) | |
3VSB: 3.44 V (min = +2.98 V, max = +3.63 V) | |
Vbat: 3.26 V (min = +2.70 V, max = +3.63 V) | |
in9: 0.00 V (min = +0.00 V, max = +0.00 V) | |
fan1: 940 RPM (min = 0 RPM) | |
fan2: 1433 RPM (min = 0 RPM) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function create_clientlist_listview() { | |
all_list = []; | |
wired_list = []; | |
wl1_list = []; | |
wl2_list = []; | |
wl3_list = []; | |
if (document.getElementById("clientlist_viewlist_block") != null) { | |
removeElement(document.getElementById("clientlist_viewlist_block")); | |
} | |
var divObj = document.createElement("div"); |
NewerOlder