create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#!/usr/bin/env bash | |
# should install jq first, for mac:brew install jq | |
# Documentation | |
# https://docs.gitlab.com/ce/api/projects.html#list-projects | |
NAMESPACE="<Your NAMESPACE Name>" | |
BASE_PATH="https://xxx.xxx.cn" | |
PROJECT_SEARCH_PARAM="" |
import java.security.InvalidKeyException | |
import java.security.NoSuchAlgorithmException | |
import java.security.SignatureException | |
import java.util.* | |
import javax.crypto.Mac | |
import javax.crypto.spec.SecretKeySpec | |
object HmacSha1Signature { | |
private val HMAC_SHA1_ALGORITHM = "HmacSHA1" |
package me.lj.qiniu.ai; | |
import com.qiniu.common.QiniuException; | |
import com.qiniu.common.Zone; | |
import com.qiniu.http.Client; | |
import com.qiniu.http.Response; | |
import com.qiniu.storage.Configuration; | |
import com.qiniu.util.Auth; | |
import com.qiniu.util.StringMap; | |
import me.lj.qiniu.config.Config; |
version: '3' | |
services: | |
elasticsearch: | |
image: elasticsearch:6.6.1 | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" |
#! /bin/bash | |
jobs=(12 13 14 15 16 17 18 19 20) | |
for job in ${jobs[@]} | |
do | |
echo "$job"; | |
done; |
/** | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { | |
return _.transform(object, function(result, value, key) { | |
if (!_.isEqual(value, base[key])) { |
function import_lodash() { | |
var jq = document.createElement('script'); | |
jq.src = "https://lodash.com/vendor/cdn.jsdelivr.net/lodash/4.17.4/lodash.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
jQuery.noConflict(); | |
} | |
import_lodash(); |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#! /bin/bash | |
find . -name "*.js" -type f -exec sh -c 'for i do declare match_file=$i; if [ -f $i.map ]; then rm -rf $match_file.map; rm -rf $match_file; echo $match_file.map;fi;done' sh {} + |
npm install -g get-urls-cli | |
get-urls sqlResult_1183013.csv >> urls.txt | |
awk {'print $1'} new_urls.txt | xargs wget -P bcms |