Skip to content

Instantly share code, notes, and snippets.

View LeoAdamek's full-sized avatar

Leo Adamek LeoAdamek

View GitHub Profile
@KittyKatt
KittyKatt / pomf
Last active March 24, 2018 14:49
pomf.se BASH script to upload images
#!/usr/bin/env bash
# pomf.se uploader
# requires: curl
dest_url='http://pomf.se/upload.php'
return_url='http://a.pomf.se'
if [[ -n "${1}" ]]; then
file="${1}"
if [ -f "${file}" ]; then
@ryanwitt
ryanwitt / README.md
Created October 10, 2012 22:38 — forked from kaa/carbon.init.sh
Installing graphite 0.9.10 and statsd on Amazon Linux

Installing

If you trust me, do this:

curl https://raw.github.com/gist/3868967/30ed8db63ea701e1ad18dabbecfc8df0ffd8b195/install.sh > install.sh

sh install.sh

@LeoAdamek
LeoAdamek / code_collate.sh
Created October 17, 2011 17:56
A "Simple" Script to take all text files in a directory and put them into one collated file, usefull if you have an assignment with requires it
#!/bin/bash
for filename in $(find . -type f)
do
f_type=$(file -b $filename)
if [ "${f_type##* }" == "text" ]
then
echo "###################### FILE: ${filename} #######################" >> collated_code.txt
cat ${filename} >> collated_code.txt
echo "###################### END FILE ${filename} ####################" >> collated_code.txt