This file contains hidden or 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/bash | |
# Get API Token from http://fir.im/apps | |
API_TOKEN="your API token" | |
PACKAGE_PATH="demo-release.apk" | |
# ios or android | |
TYPE="android" | |
# App 的 bundleId | |
BUNDLE_ID="com.demo.app" |
This file contains hidden or 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/bash | |
ADB_PATH="/Users/lee/Library/Android/sdk/platform-tools" | |
PACKAGE_NAME="com.yourcompany.app" | |
DB_NAME="default.realm" | |
DESTINATION_PATH="/Users/lee/Downloads/${DB_NAME}" | |
NOT_PRESENT="List of devices attached" | |
ADB_FOUND=`${ADB_PATH}/adb devices | tail -2 | head -1 | cut -f 1 | sed 's/ *$//g'` | |
if [[ ${ADB_FOUND} == ${NOT_PRESENT} ]]; then | |
echo "Make sure a device is connected" | |
else |
This file contains hidden or 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
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<mirrors> | |
<mirror> | |
<id>aliyunmaven</id> | |
<mirrorOf>*,!jeecg,!jeecg-snapshots,!getui-nexus</mirrorOf> | |
<name>阿里云公共仓库</name> | |
<url>https://maven.aliyun.com/repository/public</url> | |
</mirror> | |
</mirrors> |
This file contains hidden or 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/bash | |
function get_filename_from_url() { | |
download_url=$1 | |
file_with_query_params=$(echo "${download_url##*/}") | |
file=$(echo "${file_with_query_params%%\?*}") | |
echo ${file} | |
} | |
php_download_url='http://xx.com/php-7.3.7.tgz' |
This file contains hidden or 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/bash | |
local_archive_path=$1 | |
function get_filename_from_url() { | |
download_url=$1 | |
file_with_query_params=$(echo "${download_url##*/}") | |
file=$(echo "${file_with_query_params%%\?*}") | |
echo ${file} | |
} |
This file contains hidden or 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
#!/usr/bin/env bash | |
function install_base() { | |
general_user='admin' | |
cat /etc/passwd | grep ${general_user} > /dev/null 2>&1 | |
if [[ $? -eq 0 ]]; then | |
echo "User ${general_user} Exists" | |
else | |
sudo useradd -u 2000 -s /sbin/nologin ${general_user} | |
fi |
This file contains hidden or 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/bash | |
# 自动创建组和仓库,自动上传仓库 | |
# 配置选项 | |
gitlab_access_token='your personal access token' | |
gitlab_base_url='http://gitlab.demo.com/api/v4' | |
repositorys=( | |
"xxxx" | |
"xxxx" | |
) |
This file contains hidden or 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
"不兼容vi | |
set nocompatible | |
"让删除键更好用 | |
set backspace=2 | |
"不创建撤销文件 | |
set noundofile | |
"取消自动备份 | |
set nobackup | |
"自动缩进 | |
set autoindent |
This file contains hidden or 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
<?php | |
/** | |
* 生成mysql数据字典 | |
*/ | |
header("Content-type: text/html; charset=utf-8"); | |
// 配置数据库 | |
$dbserver = "localhost"; | |
$dbusername = "mysql用户名"; | |
$dbpassword = "mysql密码"; |
This file contains hidden or 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
package com.xmeise.mm; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Matrix; | |
import android.support.annotation.NonNull; | |
import android.util.AttributeSet; | |
import android.view.GestureDetector; | |
import android.view.MotionEvent; | |
import android.view.ScaleGestureDetector; |
NewerOlder