Live demo: http://dashing-map.herokuapp.com/
Created by: @andmcgregor
Uses the Google Maps API to display latitude and longitude coordinates.
Live demo: http://dashing-map.herokuapp.com/
Created by: @andmcgregor
Uses the Google Maps API to display latitude and longitude coordinates.
Downloaded pidgin icon packs can be uploaded (one at a time) to Slack by posting the form. Note that this does not (yet) handle name conflicts with existing emotes. Failures to upload will be printed to the console.
install the requirements
pip install -r requirements.txt
Extract your icon pack into the working directory, under a new folder called "emote_files"
import RPi.GPIO as GPIO | |
import time | |
# Pin definition | |
pwm_pin = 18 # adjust brightness for signal | |
led_pin = 23 # blink when switch pressed | |
clk_pin = 14 # rotary clock | |
but_pin = 24 # button input | |
dat_pin = 25 # rotary data input |
#! /bin/bash | |
#export PORTAINER_PASS=#TODO: add me | |
#export PORTAINER_ENC_PASS=$(docker run --rm httpd:2.4-alpine htpasswd -nbB admin ${PORTAINER_PASS} | cut -d ":" -f 2) | |
#echo $PORTAINER_PASS | docker secret create portainer_password.v1 --label portainer - | |
docker stack deploy --compose-file docker-compose.yml portainer |
So you've added space to a VM but Ubuntu still shows the old size? The partition was created with a certain size, so that new space will just be unallocated until you add it to a partition. You could just add a new partition, but chances are you want the root partition to be bigger, yes?
Before proceeding, realize that there is a very real possibility that you will lose data if you mess this up. Still here? Cool.
function getpw() { | |
if [ $# -lt 1 ]; then | |
echo "Usage: getpw <LPASS_ENTRY>" | |
return 1 | |
fi | |
options=$(lpass ls | egrep -i "$*") | |
count=$(echo "$options" | wc -l | sed 's/ //g') | |
if [ $count -gt 1 ]; then | |
echo "$options" | |
echo "Too many LastPass entries returned. Please pick from one of the above $count items." |
def pluginByName = Jenkins.instance.getPluginManager().getPlugin("artifactory"); | |
println "\nFOUND Plugin ${pluginByName.getShortName()} (${pluginByName.getVersion()})" | |
//println pluginByName.getProperties().toString() | |
def pluginWrapper = pluginByName.plugin | |
//println pluginInstance.getProperties().toString() | |
def myPlugin = this.class.classLoader.loadClass(pluginByName.pluginClass.toString()) | |
println myPlugin.getProperties().toString() |
import jenkins.model.* | |
import org.jfrog.hudson.ArtifactoryBuilder | |
import org.kohsuke.stapler.Stapler | |
import net.sf.json.JSONObject | |
def instance = Jenkins.getInstance() | |
def descriptor = instance.getDescriptor(ArtifactoryBuilder.class); | |
def artifactoryCreds = [ | |
username: "admin", |
{ | |
"pythonlogger": { | |
"title": "Python logger format", | |
"description": "Log format used by python logger class", | |
"url": "", | |
"regex": { | |
"main": { | |
"pattern": "^\\[(?<timestamp>\\d{4}\\-\\d{2}\\-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3})] (?<level>\\w+) (?<module>(\\w(\\.)?)+) \\- (?<body>.*)$" | |
} | |
}, |