Skip to content

Instantly share code, notes, and snippets.

@Gufran
Gufran / script.sh
Created January 29, 2020 11:02
Add nice looking help text to bash script
#!/bin/bash
function help { # Print help text
echo "Available commands:"
grep '^function' "${BASH_SOURCE[0]}" | sed -e 's/function / /' -e 's/{ //' | column -t -s\#
}
#!/usr/bin/env bash
# Setup default values for variables
VERSION="3.4.0"
CLUSTER=false
SERVICE=false
TASK_DEFINITION=false
MAX_DEFINITIONS=0
AWS_ASSUME_ROLE=false
IMAGE=false
@Gufran
Gufran / README.md
Created September 6, 2017 12:17 — forked from joelthompson/README.md
Vault Auth

Keybase proof

I hereby claim:

  • I am Gufran on github.
  • I am gufran (https://keybase.io/gufran) on keybase.
  • I have a public key whose fingerprint is B06D 5A93 4800 0DBE F1AE 4D25 B84C 1963 E9B5 2F6A

To claim this, I am signing this object:

@Gufran
Gufran / apib2httpsnippets
Last active December 4, 2015 07:03 — forked from betamax/apib2httpsnippets
A ruby script to convert an HTTP blueprint JSON file into multiple HAR files and then convert those HAR files in to code snippets using httpsnippet
#!/usr/bin/env ruby
# ./apib2httpsnippets
# Author: Max Novakovic
# Email: max@lateral.io
require 'awesome_print'
require 'json'
require 'fileutils'
require 'uri'
@Gufran
Gufran / Makefile
Last active September 9, 2015 17:54 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
Provides admin skeleton for application
Components are built as module
Each module has
Public routes
Admin routes
Custom settings routes
File based config
Database based settings

Keybase proof

I hereby claim:

  • I am Gufran on github.
  • I am gufran (https://keybase.io/gufran) on keybase.
  • I have a public key whose fingerprint is 2F9D 3B86 713B AD5E 26CE B1BA C611 8A85 5426 4D30

To claim this, I am signing this object:

@Gufran
Gufran / gist:7250454
Last active December 27, 2015 02:09
[JavaScript] Serving Casperjs over Node Server
var ip_server = '127.0.0.1:8899';
//includes web server modules
var server = require('webserver').create();
//start web server
var service = server.listen(ip_server, function(request, response) {
var links = [];
var casper = require('casper').create();

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer