Got it? | Component | Amount | Tayda part number |
---|---|---|---|
❌ | ATMEGA328P-PU | 1x | A-854 |
✔️ | 22pF condensator | 2x | A-523 |
✔️ | 100nF condensator | 4x | A-4008 |
❌ | 10uF condensator | 1x | A-4534 |
✔️ | 10kOhm resistor | 1x | A-2115 |
✔️ | 1N4149 diode | 1x | [A-157](http://www |
This file contains 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 | |
# Tom Hale, 2016. MIT Licence. | |
# Print out 256 colours, with each number printed in its corresponding colour | |
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
set -eu # Fail on errors or undeclared variables | |
printable_colours=256 |
This file contains 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
### | |
# Super Spinner | |
# An emoji-based spinner — because ASCII is boring. | |
# | |
# Usage: | |
# $ COMMAND & superSpinner $! "Message" | |
# | |
# Example: | |
# $ sleep 5 & superSpinner $! "Sleeping for 5 seconds" | |
# |
This file contains 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 | |
# Skip all of this if we don't have a TTY | |
tty -s || return 0 | |
# Colors + \[...\] wrapping to ensure there's no odd wrapping on command line | |
C_OFF="\[$(tput sgr0)\]" | |
C_BOLD="\[$(tput bold)\]" | |
C_BLACK="\[$(tput setaf 0)\]" | |
C_RED="\[$(tput setaf 1)\]" |
This file contains 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
# Use the latest 0.9.2 DC/OS release | |
FROM magneticio/vamp:0.9.2-dcos | |
# Add our updated confgiruation | |
ADD https://raw.githubusercontent.com/magneticio/vamp-docker/master/vamp-dcos/application.conf /usr/local/vamp/application.conf |
This file contains 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 | |
# We need one input at least | |
if [ $# -lt 1 ] | |
then | |
echo "Error: No input found, please provide a Dell service tag" | |
exit 1 | |
fi | |
# Non-standard shell tools we need |
This file contains 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
## REF: http://blog.sbf5.com/?p=6 | |
# For requests starting with a tilde, break them into three components: | |
# 1. The username, everything after the tilde up to the first slash | |
# 2. The file location, everything after the username up to the last slash | |
# 3. The trailing slash(es) | |
# Then, rewrite to go to the f~/ branch. | |
location /~ { | |
if ($request_uri ~ ^/~([^/]*)(/.*[^/]|)(/*)$) { | |
set $homedir $1; | |
set $filedir $2; |
This file contains 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 | |
test "$(id -u)" -eq 0 || exit 1 | |
# Create and configurat swapfile | |
create_add_swapfile() { | |
test -z $1 && return 1 | |
local size=$(echo ${1} | grep -o -E '^[0-9]*') | |
local unit=$(echo ${1} | grep -o -E '[^0-9](.*)?$' || echo M) |
This file contains 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
/* style.css | |
* Some basic styling to make naked HTML look a bit nicer. | |
* Related links: | |
* - http://codepen.io/dredmorbius/pen/KpMqqB?editors=110 | |
* - http://bettermotherfuckingwebsite.com/ | |
* - http://motherfuckingwebsite.com/ | |
*/ | |
a { | |
color: #1e6b8c; |
This file contains 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 | |
# mk_simple_repo.sh - Simple Debian repository generator | |
# | |
# Prerequisites: | |
# Packages: | |
# dpkg-dev | |
# VirtualHost: | |
# <Directory /var/www/repos/ > | |
# Options Indexes FollowSymLinks Multiviews | |
# Order allow,deny |
NewerOlder