This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Coverage Badge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
fontColor=38 | |
backgroundColor=48 | |
colortable() { | |
base=$1 | |
count=0 | |
for colorCode in `seq -w 0 255`; do | |
count=$(($count + 1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
fontColor=38 | |
backgroundColor=48 | |
colortable() { | |
base=$1 | |
count=0 | |
for colorCode in `seq -w 0 255`; do | |
count=$(($count + 1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* First test with FreeType2 library */ | |
/* Output to console of mono rendered font */ | |
/* | |
* FreeType2_Mono.c | |
* | |
* Created by Michele Catalano <[email protected]>. | |
* | |
* Copyright (c) 2013 Michele Catalano | |
* All rights reserved. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Simple client for librsync handshake. | |
*/ | |
$opts = "s:f:n:p:"; | |
$longOpts = array("signature:", "file:", "newfile:", "patch:"); | |
class rsyncClient |