Skip to content

Instantly share code, notes, and snippets.

View Aterbonus's full-sized avatar

Gustavo Alfredo Marín Sáez Aterbonus

View GitHub Profile
@Aterbonus
Aterbonus / check_status.sh
Last active February 28, 2019 22:35
Shell Script to check webpage status with curl, adapted to be used in Conky (WIP)
#!/bin/sh
#Script to check webpage status
#Adapted to be used with Conky, but is easily adaptable to be a normal
#shell script
#The script will use curl to check a URL HTTP Status. It will echo one of 4 status text:
#* "Up" if request returns a success status code
#* "Down - Error <HTTP ERROR CODE>" if request returns an error status code
#* "Timeout!" if request operation exceeds the timeout (Default 2 seconds)
@Aterbonus
Aterbonus / .bash_aliases
Created September 24, 2018 04:07
Bash Aliases (WIP)
#nano with tabs to spaces, line number, autoindent and tabs = 4 spaces
alias nano='nano -liET 4'
#colors
alias grep='grep --color'
alias ls='ls --color'
@Aterbonus
Aterbonus / mapita.html
Created November 28, 2016 18:41
A google maps map that let you save markers in the local storage with jQuery and Bootstrap
<!DOCTYPE html>
<html>
<head>
<title>Mapita - por Gustavo Alfredo Marín Sáez</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="http://maps.google.com/maps/api/js?libraries=places"></script>
@Aterbonus
Aterbonus / jQueryStuff.js
Last active September 13, 2016 07:37
jQuery stuff to make life a little better
//Fired when enter is pressed
//$('input').onEnter(doStuff);
$.fn.onEnter = function (func) {
return this.each(function (index, element) {
var $element = $(element);
$element.on('keyup', function(e) {
if (e.keyCode == 13) func.apply($element, [e]);
});
});