Publishing artifacts with AWS Codeartifact and GitHub Packages
- Blog Post: Publishing artifacts with AWS Codeartifact and GitHub Packages
- GitHub repository with full code details: reach-now/codeartifact-packages-publishing
aws cli
| # $XDG_CONFIG_HOME/k9s/plugins.yaml | |
| plugins: | |
| jqlogs: | |
| shortCut: Ctrl-J | |
| confirm: false | |
| description: "Logs (jq)" | |
| scopes: | |
| - pod | |
| command: sh | |
| background: false |
| import jenkins.model.* | |
| import hudson.model.ModelObject | |
| import com.cloudbees.plugins.credentials.* | |
| import com.cloudbees.plugins.credentials.impl.* | |
| import com.cloudbees.plugins.credentials.domains.* | |
| import com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey | |
| import com.cloudbees.jenkins.plugins.awscredentials.AWSCredentialsImpl | |
| import org.jenkinsci.plugins.plaincredentials.StringCredentials | |
| import org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl | |
| import com.cloudbees.hudson.plugins.folder.Folder |
| #!/usr/bin/env bash | |
| #=========================================================================== | |
| # Works only with the official image available in the Mac App Store. | |
| # Make sure you download the official installer before running this script. | |
| #=========================================================================== | |
| # Change this at your desire. Sometimes this works out of the box, sometimes not. | |
| # Default size: ~13.5 GB | |
| DISK_SIZE="13000m" |
aws cli
make fifo: mkfifo -m 600 /path/to/fifo
/etc/nginx/sites-enabled/site
[CUT]
ssl_certificate /path/to/cert;
ssl_password_file /path/to/fifo;
ssl_certificate_key /path/to/key;
[CUT]
brew install gnupg, pinentry-mac (this includes gpg-agent and pinentry)
Generate a key: $ gpg --gen-key
Take the defaults. Whatevs
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
| #!/usr/bin/env python | |
| ''' | |
| Playing around with CoreWLAN to return information about the wi-fi connection | |
| Documentation: | |
| https://developer.apple.com/library/mac/documentation/CoreWLAN/Reference/CWInterface_reference/translated_content/CWInterface.html | |
| ''' | |
| import objc |
| import urllib,hmac,time,hashlib,base64,httplib,sys,json,urlparse | |
| ## This is just a simple example that is self contained. | |
| ## You will need to modified it to make it work | |
| ## | |
| ## creds - need to be filled out | |
| ## blognmae - needs to be defined | |
| ## | |
| ## reads in image files from the command line and posts to your blog | |
| ## |
| #!/bin/sh | |
| PROG=$0 | |
| RSYNC="/usr/bin/rsync" | |
| SRC="/" | |
| DST="/Volumes/Backup/" | |
| # rsync options | |
| # -v increase verbosity | |
| # -a turns on archive mode (recursive copy + retain attributes) |