Treat git log as a book, exec git next or git prev to checkout the next or the previous commit.
Please check hutusi/git-paging for updates.
| #!/bin/bash | |
| # updating repositories | |
| sudo apt update | |
| # installing build tools and python | |
| sudo apt install build-essential python | |
| # installing nodejs | |
| curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - |
Treat git log as a book, exec git next or git prev to checkout the next or the previous commit.
Please check hutusi/git-paging for updates.
| # Adapted from example in "Web Scraping with Python, 2nd Edition" by Ran Mitchell. | |
| import csv | |
| from urllib.request import urlopen | |
| from bs4 import BeautifulSoup | |
| html = urlopen("http://en.wikipedia.org/wiki/" | |
| "Comparison_of_text_editors") | |
| soup = BeautifulSoup(html, "html.parser") | |
| table = soup.findAll("table", {"class":"wikitable"})[0] |
| #!/bin/sh | |
| APK_URL="" ###### UPDATE THIS WITH THE URL TO THE ARCHIVED LAST SUCCESSFUL BUILD ARTIFACT ON JENKINS FOR EXAMPLE | |
| FILEPATH="" | |
| ## MAKE SURE ADB IS RUNNING ## | |
| adb version |
| # For Android JellyBean and newer device | |
| adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="window_animation_scale"' | |
| adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="transition_animation_scale"' | |
| adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="animator_duration_scale"' | |
| # For Android ICS and older device | |
| adb shell "echo \"update system set value=0.0 where name='window_animation_scale';\" | sqlite3 /data/data/com.android.providers.settings/databases/settings.db" | |
| adb shell "echo \"update system set value=0.0 where name='transition_animation_scale';\" | sqlite3 /data/data/com.android.providers.settings/databases/settings.db" |
| #!/bin/bash | |
| apk_file=$1 | |
| if [ -z $apk_file ]; then | |
| apk_file_num=`ls *.apk | wc -l | tr -d ' '` | |
| if [ $apk_file_num -gt 1 ]; then | |
| echo "Ambiguous apk_files. Please enter one APK to inspect." | |
| exit -1 | |
| fi | |
| apk_file=`ls *.apk` |
| oldActvity="" | |
| displayName="" | |
| currentActivity=`adb shell dumpsys window windows | grep -E 'mCurrentFocus'` | |
| while true | |
| do | |
| if [[ $oldActvity != $currentActivity && $currentActivity != *"=null"* ]]; then | |
| displayName=${currentActivity##* } | |
| displayName=${displayName%%\}*} | |
| echo $displayName | |
| oldActvity=$currentActivity |
| #!/bin/bash | |
| # Script adb+ | |
| # Run any command adb provides on all your currently connected devices, | |
| # Or prompt to select one device | |
| showHelp() { | |
| echo "Usage: adb+ [-a] <command>" | |
| echo " -h: show help" | |
| echo " -a: run command on all device" | |
| echo " command: normal adb commands" |
| # -*- coding: utf-8 -*- | |
| """网易云自动签到""" | |
| import requests | |
| __author__ = 'abrasumente' |
| # -*- coding: utf-8 -*- | |
| import requests | |
| from pyquery import PyQuery as pq | |
| login_url = "https://passport.jd.com/new/login.aspx" | |
| login_post_url = "http://passport.jd.com/uc/loginService" | |
| # 用户名和密码 | |
| username = "your_name" | |
| password = "your_password" |