as root user
apt update| Coverage Badge |
| #!/bin/bash | |
| REGISTRY_BASE_PATH="/var/lib/registry" | |
| REGISTRY_DATA_PATH="${REGISTRY_BASE_PATH}/docker/registry/v2/" | |
| for hashLinkFile in `ls ${REGISTRY_DATA_PATH}/repositories/*/_layers/*/*/link`; do | |
| hashType=`cat $hashLinkFile | cut -d':' -f1` | |
| hashValue=`cat $hashLinkFile | cut -d':' -f2` | |
| blob="store/docker/registry/v2/blobs/${hashType}/${hashValue:0:2}/${hashValue}/data" | |
| if [ ! -f $blob ]; then |
| #!/usr/bin/env bash | |
| fontColor=38 | |
| backgroundColor=48 | |
| colortable() { | |
| base=$1 | |
| count=0 | |
| for colorCode in `seq -w 0 255`; do | |
| count=$(($count + 1)) |
| #!/usr/bin/env bash | |
| fontColor=38 | |
| backgroundColor=48 | |
| colortable() { | |
| base=$1 | |
| count=0 | |
| for colorCode in `seq -w 0 255`; do | |
| count=$(($count + 1)) |
| /* | |
| ESP8266 Blink by Simon Peter | |
| Blink the blue LED on the ESP-01 module | |
| This example code is in the public domain | |
| The blue LED on the ESP-01 module is connected to GPIO1 | |
| (which is also the TXD pin; so we cannot use Serial.print() at the same time) | |
| Note that this sketch uses LED_BUILTIN to find the pin with the internal LED | |
| */ |
| import jenkins.model.* | |
| import com.cloudbees.plugins.credentials.* | |
| import com.cloudbees.plugins.credentials.common.* | |
| import com.cloudbees.plugins.credentials.domains.* | |
| import com.cloudbees.plugins.credentials.impl.* | |
| import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
| import org.jenkinsci.plugins.plaincredentials.* | |
| import org.jenkinsci.plugins.plaincredentials.impl.* | |
| import hudson.util.Secret | |
| import hudson.plugins.sshslaves.* |
| #!/bin/bash | |
| sudo aptitude install -y bzr mercurial git lxc | |
| sudo add-apt-repository -y ppa:ubuntu-desktop/ubuntu-make | |
| sudo apt-get update | |
| sudo apt-get install -y ubuntu-make | |
| echo -n "$HOME/.local/share/umake/go/go-lang" | umake go | |
| source $HOME/.profile | |
| echo 'GOPATH=$HOME/go' >> $HOME/.bashrc |
| #!/bin/bash | |
| socket=/var/lib/gpiod/socket | |
| set_backlight="LCD BACKLIGHT 30\n" | |
| lcd_clear="LCD CLEAR\n" | |
| lcd_start=${set_backlight}${lcd_clear} | |
| lcd_show="LCD SHOW\n" | |
| pos_x=0 | |
| pos_y=0 | |
| lcd_text_pre="LCD TEXT 8 " | |
| if_count=0 |
| /* First test with FreeType2 library */ | |
| /* Output to console of mono rendered font */ | |
| /* | |
| * FreeType2_Mono.c | |
| * | |
| * Created by Michele Catalano <michele@catalano.de>. | |
| * | |
| * Copyright (c) 2013 Michele Catalano | |
| * All rights reserved. | |
| * |