Skip to content

Instantly share code, notes, and snippets.

View erseco's full-sized avatar
💭
dG9udG8gZWwgcXVlIGxvIGxlYQ==

Ernesto Serrano erseco

💭
dG9udG8gZWwgcXVlIGxvIGxlYQ==
View GitHub Profile
@jodiecunningham
jodiecunningham / awscheck.sh
Created August 9, 2015 15:04
AWS Startup on-demand script
#!/bin/sh
# Install the AWS CLI, set up an IAM user for the instance(s) you want to control.
# Pull the AWS keys for the IAM user and run aws configure to add them.
# I run this on Sophos UTM and have Sophos run a reverse proxy from the \
# $ROUTERIP:32400 to $PLEXHOST:32400
# set -x
# started with screen -Sdm a '/root/bin/awscheck.sh'een -Sdm a '/root/bin/awscheck.sh'screen -Sdm a '/root/bin/awscheck.sh'screen -Sdm a '/root/bin/awscheck.sh'n -Sdm a '/root/bin/awscheck.sh'
PLEXHOST=dokie.duckdns.org
WANIF=eth2
/******************************************************************************
*
* 2015 - Ernesto Serrano <[email protected]>
* ---------------------------------------------
*
* Fichero auxiliar para pintar colores en la consola
*
******************************************************************************/
#ifndef __Color_h__
@Munawwar
Munawwar / ExcelReading.java
Last active November 2, 2022 08:37
Java - Apache POI - Convert XLS/XLSX to CSV
/*
* Dependencies: Apache POI Library from http://poi.apache.org/
*/
package poi_excels;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;