- Add the ansible package repository
sudo apt-add-repository ppa:ansible/ansible
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 | |
| MAINTAINER matutter | |
| RUN apk --no-cache add nodejs | |
| RUN apk --no-cache add git | |
| RUN mkdir /home/www | |
| WORKDIR /home/www | |
| ADD package.json |
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 | |
| # include all .nanorc files from /usr/share/nano | |
| NANORC=~/.nanorc | |
| SOURCE=/usr/share/nano | |
| echo "# from nanomake.sh" > ${NANORC} | |
| echo "set tabsize 2" >> ${NANORC} | |
| echo "set tabstospaces" >> ${NANORC} | |
| ls ${SOURCE} | grep .nanorc | while read FILE; do |
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
| // winston.version === '2.2.0' | |
| var winston = require("winston") | |
| var fs = require("fs") | |
| var path = require("path") | |
| function tryLog(filename, msg) { | |
| var logger = new winston.Logger() | |
| logger.add(winston.transports.File, { | |
| filename: filename, | |
| level : 'verbose', |
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
| ## | |
| # Sources are expected to be layed out like so | |
| # . | |
| # ├── makefile | |
| # └── src | |
| # ├── hashing | |
| # │ ├── hash.c | |
| # │ └── hash.h | |
| # └── main.c | |
| # |
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
| ## | |
| # Check for TMUX session, create or attach "remote" session if connected through | |
| # ssh or create or attach "local" session if connected through other means | |
| HOST_SESSION_NAME="local" | |
| SSH_SESSION_NAME="remote" | |
| SESSION_NAME=$HOST_SESSION_NAME | |
| if [ ! -n "$TMUX" ]; then | |
| if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
| SESSION_NAME=$SSH_SESSION_NAME | |
| fi |
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 | |
| export ANTLR4_JAR=antlr-4.7-complete.jar | |
| if ! type -p java; then | |
| # Install Java 8 | |
| echo "Installing Java 8" | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt updatee; sudo apt install oracle-java8-installer |
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
| var english_words = require('an-array-of-english-words'); | |
| function lookup(word) { | |
| return english_words | |
| .filter(x => { return x.startsWith(word); }) | |
| .sort((a, b) => { return 0.5 - Math.random(); }); | |
| } | |
| function suggest(word, count, cb, constants) { |
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
| ## | |
| # Example of using pocha, this might be good? | |
| from pocha import describe, it | |
| @describe('A feature') | |
| def test_case(): | |
| @it('Should behave as expected when doing A') | |
| def _(): |
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 | |
| sfood pocha/ -i -r | sfood-graph -p | circo -Tsvg > this.svg |