參考 這篇 分享的 curl 上傳方法編寫的指令碼,目的是簡化 token 獲取到上傳檔案的流程。
個人用在定時檔案備份中。
#!/bin/bash
# 檢查引數數量
if [ $# -ne 6 ]; then
echo "Usage: $0 --username <username> --password <password> <local-file> <alist-url>"參考 這篇 分享的 curl 上傳方法編寫的指令碼,目的是簡化 token 獲取到上傳檔案的流程。
個人用在定時檔案備份中。
#!/bin/bash
# 檢查引數數量
if [ $# -ne 6 ]; then
echo "Usage: $0 --username <username> --password <password> <local-file> <alist-url>"The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.
With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.
These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.
| #!/bin/bash | |
| DEFAULT_URL=http://updates.jenkins-ci.org/current/latest/jenkins.war | |
| TMP_PATH=/tmp/jenkins.war | |
| APP_PATH=/Applications/Jenkins/jenkins.war | |
| PLIST_PATH=/Library/LaunchDaemons/org.jenkins-ci.plist | |
| url=${1-$DEFAULT_URL} | |
| echo 'Downloading WAR package...' |
| #!/usr/bin/php -d open_basedir=/usr/syno/bin/ddns | |
| <?php | |
| /* | |
| Usage Instructions ( Obviously your domain has to be hosted on Namecheap ) | |
| 1) Copy this file to /usr/syno/bin/ddns/namecheap.php | |
| 2) Add the following entry in /etc.defaults/ddns_provider.conf | |
| [Custom - Namecheap] | |
| modulepath=/usr/syno/bin/ddns/namecheap.php |
| #!/usr/bin/env python | |
| """ | |
| Very simple HTTP server in python. | |
| Usage:: | |
| ./dummy-web-server.py [<port>] | |
| Send a GET request:: | |
| curl http://localhost |
| #!/bin/bash | |
| function getUDID { | |
| udid=($(system_profiler SPUSBDataType | grep -A 11 -w "iPad\|iPhone\|iPad" | grep "Serial Number" | awk '{ print $3 }')) | |
| if [ -z $udid ]; then | |
| echo "No device detected. Please ensure an iOS device is plugged in." | |
| exit 1 | |
| else | |
| for i in "${udid[@]}"; do | |
| echo -n $i | pbcopy |
| #!/bin/bash | |
| ############################################################################################################## | |
| ### 1. Name your profiles with the convention of ProjectName_TargetName_ConfigurationName.mobileprovision ### | |
| ### 2. Create a directory called CodeSign in your project directory ### | |
| ### 3. Move all your project's provisioning profiles into the CodeSign directory ### | |
| ### ### | |
| ### Running this script will update your project file to point to the correct UUIDs of each corresponding ### | |
| ### profile in your CodeSign directory. ### | |
| ############################################################################################################## |
| import android.text.TextUtils; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.mockito.invocation.InvocationOnMock; | |
| import org.mockito.stubbing.Answer; | |
| import org.powermock.core.classloader.annotations.PrepareForTest; | |
| import org.powermock.modules.junit4.PowerMockRunner; |
| 請將下列語法 "取代" <body> | |
| <body ONDRAGSTART="window.event.returnValue=false" onSelectStart="event.returnValue=false" ONCONTEXTMENU="window.event.returnValue=false" > | |
| ================================= | |
| 鎖滑鼠右鍵及防highlight | |
| <body onselectstart="return false;" ondragstart="return false;" oncontextmenu="return false;"> | |
| ====================== |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) | |
| Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip) | |
| Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip) |