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/python | |
import serial | |
import signal | |
import sys | |
import time | |
def BinaryModeEnter(connection): | |
connection.flushInput() | |
for x in range(0, 20): # Try at most 20 times |
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
ps -p $$ | awk 'END{ print $NF }' | egrep -q 't?csh' \ | |
&& lsof +p $$ | awk '$9 ~ /gethere.sh/ { system("dirname "$9) }' \ | |
|| test -z "$BASH_SOURCE" \ | |
&& echo "`dirname ${0}`" \ | |
|| echo "`dirname ${BASH_SOURCE}`" |
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
FROM centos:6 | |
## Install the EPEL repo | |
RUN yum -y install wget | |
RUN wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm -O /tmp/epel.rpm | |
RUN yum -y install /tmp/epel.rpm | |
## Install and configure x11vnc | |
RUN yum -y install x11vnc | |
RUN mkdir ~/.vnc |
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
FROM hokiegeek/arch:minimal | |
RUN pacman -S --noconfirm --needed go | |
# gcc | |
# RUN pacman -S --noconfirm --needed scons cmake | |
# apache-ant | |
RUN pacman -S --noconfirm --needed ctags cloc strace | |
# RUN pacman -S --noconfirm --needed python-pip nodejs | |
# jslint | |
# RUN pacman -S --noconfirm --needed picocom |
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
FROM base/arch:latest | |
RUN pacman -Sy --noconfirm --needed archlinux-keyring | |
RUN pacman -Sy --noconfirm --needed base-devel | |
RUN pacman-db-upgrade | |
RUN pacman -Sy --noconfirm --needed ca-certificates | |
RUN pacman -S --noconfirm --needed vim tmux zsh | |
RUN pacman -S --noconfirm --needed docker thin-provisioning-tools |
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
FROM alpine:latest | |
RUN apk add --no-cache bash tzdata | |
RUN rm -f /etc/localtime && ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime | |
RUN echo "US/Eastern" > /etc/timezone | |
ADD hrs /usr/bin/hrs | |
ENTRYPOINT ["/usr/bin/hrs"] |
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
# Maintainer: Andres Perez <[email protected]> | |
pkgname=hg-bin | |
_pkgname=hg-bin | |
epoch=1 | |
pkgver=0 | |
pkgrel=1 | |
pkgdesc='My personal scripts' | |
url='https://gitlab.com/HokieGeek/bin' | |
arch=('i686' 'x86_64') |
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 | |
throbber() { | |
stages="| / - \ | / -" | |
while true; do | |
for s in $stages; do | |
echo -n $s | |
sleep 0.0625 | |
echo -n $'\b' | |
done |
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
set num_processors=`grep -c processor /proc/cpuinfo | xargs expr 1 +` | |
set f=`mktemp` | |
awk '/NOCSH *$/ { next } /^ *alias/ { sub(/=/, " ", $2); print }' $HOME/.aliases > $f | |
source $f | |
unset num_processors |
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
#include <cmath> | |
#include <cstdio> | |
#include <vector> | |
#include <map> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
void printSentence(string s, int rows, int cols) { | |
/* |