Skip to content

Instantly share code, notes, and snippets.

View angrykoala's full-sized avatar
💭
🐨

angrykoala angrykoala

💭
🐨
View GitHub Profile
@angrykoala
angrykoala / astyleformat
Last active August 16, 2017 20:25
Personal format options for astyle
#!/bin/bash
#Personal format options for astyle
#by @angrykoala
astyle --style=java --align-pointer=name --delete-empty-lines --indent-col1-comments --unpad-paren -n -Q $@
@angrykoala
angrykoala / md2pdf
Last active July 11, 2017 10:16
small flavored markdown converter to pdf using pandoc
#!/bin/bash
#md2pdf: small flavored markdown converter to pdf using pandoc
#by @angrykoala
if [ $# -eq 0 ]
then echo "Need at least one argument md2pdf [files]";
else
for var in "$@"
do
filename=$(basename "$var")
@angrykoala
angrykoala / hasselhoffinator.sh
Last active July 11, 2017 10:16
hasselhoffinator
#!/bin/bash
#hasselhoff attack taken to a new level
#@angrykoala
DIR=/home/$(whoami)/hasselhoff.jpg
MESSAGE="you have been hasselhoffed"
IMAGE_URL=http://www.ljpaez.es/imagen/hasselhoff.jpg
wget $IMAGE_URL -q
mv ./hasselhoff.jpg $DIR
gsettings set org.gnome.desktop.background picture-uri file://$DIR
@angrykoala
angrykoala / brainfuck_example.b
Last active July 11, 2017 10:15
Easy and comprehensive example of Brainf*uck language
Easy and comprehensive example of Brainf*uck language
@angrykoala
Writes text
>++++++++[<+++++++++++>-]<-.
>+++[<+++++++++>-]<.
---------.
+++++++++++.
---------------.
>+++++++[<---------->-]<+.
@angrykoala
angrykoala / astylejs
Last active January 13, 2017 15:59
Simple beautifier for JS with personal options, using js-beautify
#!/bin/bash
#Personal beautifiers for js
#needs js-beuatify (npm package)
js-beautify --indent-with-tabs --brace-style collapse -r $@
@angrykoala
angrykoala / Bash Script.sh
Last active May 26, 2018 10:59
File Templates. Put them under ~/Templates folder
#!/bin/sh
echo "hello world";
@angrykoala
angrykoala / .jshintrc
Last active November 10, 2016 00:38
Personal jshint configuration file
{
"maxerr": 50,
"camelcase": true,
"eqeqeq": true,
"forin": false,
"latedef": false,
"noempty": true,
"maxcomplexity": 6,
"maxdepth": 6,
"nocomma": true,
@angrykoala
angrykoala / .bashrc
Last active July 19, 2022 15:49
Custom bashrc commands to append in .bashrc
# My Custom bash
## Statup commands
echo "Hello, today is"
date +%A','%x
date +'['%X']'
fortune | cowsay -T "U " -e o-
## New Promt
PS1="\e[01;32m[\u]\e[m\t\e[01;34m\w->\e[m"
@angrykoala
angrykoala / CONTRIBUTIONS.md
Created July 9, 2017 17:42
Example Contributions file

How to Contribute

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

There are many ways you can Contribute to this project!

  • [Create issues][issues] or help close them
  • Fork, Enhance, Fix Bugs, and send in [Pull Requests][pr]
@angrykoala
angrykoala / makefile
Last active August 16, 2017 20:26
Basic makefile
# Basic Makefile
# by @angrykoala
CXX = g++
CPPFLAGS = -Wall -O1 -std=c++11 -g
ASTYLE_FLAGS = --style=java --align-pointer=name --delete-empty-lines --indent-col1-comments --unpad-paren -n -Q
EXE = output_file