Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash | |
# cd into the directory | |
cd ~/gitsync/github-wordpress-sync/; | |
# Make sure we are not already running | |
if [ -f .sync-running ];then | |
if test ! `find ".sync-running" -mmin +10`;then | |
# Currently running, but not stuck | |
exit 1; | |
fi | |
fi; |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
param( | |
$inputPath, | |
$outputPath | |
) | |
$xlCSV=6 | |
$inputPath = (Resolve-path $inputPath).Path | |
$outputpath = (Resolve-path $outputpath).Path | |
get-childitem $inputPath -File | foreach { | |
write-host "processing $_ " |
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
# Add the following to your shell init to set up gpg-agent automatically for every shell | |
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
source ~/.gnupg/.gpg-agent-info | |
export GPG_AGENT_INFO | |
else |
// Jenkins Pipeline DSL to demonstrate git merge before build | |
node { | |
String path = '/tmp/jenkins/upstream-repo' | |
sh "rm -rf ${path}" | |
ws(path) { | |
sh 'git --version' | |
sh 'git init' | |
sh 'touch README.md; git add README.md; git commit -m "init"' | |
sh 'git checkout -b pull-requests/1/from' | |
sh 'touch file.txt; git add file.txt; git commit -m "Add file"' |
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
def label = "mypod-${UUID.randomUUID().toString()}" | |
podTemplate(label: label, yaml: """ | |
spec: | |
containers: | |
- name: mvn | |
image: maven:3.3.9-jdk-8 |
# Pass the URL for an Organization into the query | |
# to get a list of members in a specific Organization. | |
# Example: { "url": "https://github.com/:organization" } | |
query getResource($url: URI!) { | |
resource(url: $url) { | |
... on Organization { | |
samlIdentityProvider { | |
externalIdentities(first:10) { | |
nodes { | |
scimIdentity { |
#!/bin/bash | |
# must install JQ | |
# https://stedolan.github.io/jq/download/ | |
# on OSX brew install jq | |
# must set Github Personal Access Token with full repo access only | |
### Set named arguments -t | |
while getopts ":t:" opt; do |
This is easily done with GraphiQL installed as an application on your laptop but any tool that allows HTTP headers to be easily configured will work.
GitHub provides no mechanism (at the time of writing) to remove packages as such, but removing all of the versions of a package has the equivalent effect. You may have to repeat the delete package version operation many times but in the end, the package will be gone and consume no more of your package space allocation.