Skip to content

Instantly share code, notes, and snippets.

View Qijiang60's full-sized avatar

Qi Jiang Qijiang60

  • Nanchang, Jiangxi
View GitHub Profile
@Qijiang60
Qijiang60 / oauth_10a_curl.sh
Created July 19, 2017 11:06 — forked from joslynesser/oauth_10a_curl.sh
OAuth 1.0a Curl Request
# Replace oauth_consumer_key with your consumer key
# Replace oauth_token with your access token
# Replace oauth_signature with "your_consumer_secret%26your_access_token_secret"
# Note that the oauth_nonce must change and be unique for every request
curl -X GET 'https://yoursite.desk.com/api/v1/account/verify_credentials.json' -H 'Authorization: OAuth oauth_version="1.0",oauth_timestamp=1321473112,oauth_nonce=937459123,oauth_signature_method="PLAINTEXT",oauth_consumer_key="nMu4u9pLRfDrxhPVK5yn",oauth_token="ivouGxpsJbyIU5viPKOO",oauth_signature="vLr9MjzowzVwbvREpWhIVQMJQI0G7Pin6KHCoXak%26igQY0L2bcbwonZTC4kG5ulZxTMTDW0K0zIyceSuF"'
@Qijiang60
Qijiang60 / README.md
Created December 10, 2018 17:17 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@Qijiang60
Qijiang60 / create-proxy-repository.groovy
Created March 28, 2019 11:23 — forked from nblair/create-proxy-repository.groovy
Nexus Repository Manager 3 script for creating a proxy repository of an upstream that requires HTTP authentication.
def configuration = new org.sonatype.nexus.repository.config.Configuration()
configuration.setAttributes(
'maven': [
'versionPolicy': 'RELEASE',
'layoutPolicy': 'STRICT'
],
'proxy': [
'remoteUrl': 'http://localhost:8000',
'contentMaxAge': -1,
'metadataMaxAge': 1440