Skip to content

Instantly share code, notes, and snippets.

@kaissi
kaissi / unit.sh
Created February 28, 2017 16:36 — forked from tvlooy/unit.sh
Bash test: get the directory of a script
#!/bin/bash
function test {
MESSAGE=$1
RECEIVED=$2
EXPECTED=$3
if [ "$RECEIVED" = "$EXPECTED" ]; then
echo -e "\033[32m✔︎ Tested $MESSAGE"
else
@kaissi
kaissi / update_curl.sh
Created October 14, 2016 20:10 — forked from fideloper/update_curl.sh
Update curl on Ubuntu 14.04
#! /usr/bin/env bash
# Install any build dependencies needed for curl
sudo apt-get build-dep curl
# Get latest (as of Feb 25, 2016) libcurl
mkdir ~/curl
cd ~/curl
wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2
tar -xvjf curl-7.50.2.tar.bz2
@kaissi
kaissi / SetupInnoSetupPostgreSql.iss
Created November 13, 2015 16:52 — forked from levymoreira/SetupInnoSetupPostgreSql.iss
Exemplo Setup (INNO SETUP) instalação PostgreSql no Windows
; Levy Moreira - 12/04/2012
#define MyAppName "Program"
#define MyAppVersion "1.0"
#define MyAppPublisher "NextTi"
#define MyAppURL "http://www.nextti.com/"
#define MyAppExeName "Program.jar"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
@kaissi
kaissi / tomcat.sh
Created October 20, 2015 13:13 — forked from valotas/tomcat.sh
Tomcat init.d script
#!/bin/bash
#
# tomcat7 This shell script takes care of starting and stopping Tomcat
#
# chkconfig: - 80 20
#
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network $syslog
# Required-Stop: $network $syslog