Skip to content

Instantly share code, notes, and snippets.

View Makova's full-sized avatar

Manu Makova

  • GCubo en su día. Ahora nómada.
  • Spain
  • X @Makova_
View GitHub Profile
#!/bin/bash
#
#
# Copyright (c) 2015 Javier Sayago <admin@lonasdigital.com>
# Contact: javilonas@esp-desarrolladores.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@Makova
Makova / Operaciones-Git
Created January 16, 2017 15:16 — forked from javilonas/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
#!/bin/bash
echo "Hola Mundo"
hola=1
@Makova
Makova / md2pdf
Last active April 25, 2016 13:34 — forked from angrykoala/md2pdf
small flavored markdown converter to pdf using pandoc
#!/bin/bash
#md2pdf: small flavored markdown converter to pdf using pandoc
#by demiurgosoft
if [ $# -eq 0 ]
then echo "Need at least one argument md2pdf [files]";
else
for var in "$@"
do
filename=$(basename "$var")
@Makova
Makova / hasselhoffinator.sh
Created April 25, 2016 13:30 — forked from angrykoala/hasselhoffinator.sh
hasselhoffinator
#!/bin/bash
#hasselhoff attack taken to a new level
#by demiurgosoft
DIR=/home/$(whoami)/hasselhoff.jpg
MESSAGE="you have been hasselhoffed"
IMAGE_URL=http://www.ljpaez.es/imagen/hasselhoff.jpg
wget $IMAGE_URL -q
mv ./hasselhoff.jpg $DIR
gsettings set org.gnome.desktop.background picture-uri file://$DIR
@Makova
Makova / gist:50711a3431e2bfd6c12fc57d584939f9
Created April 16, 2016 14:34 — forked from jiggneshhgohel/gist:ade2c57d03c4ad895e82
Adobe Air 2.6 Installation Steps on Ubuntu 14.04 (64-bit)
@Makova
Makova / geany.sh
Last active October 27, 2015 12:26
Instalar Geany
#!/usr/bin/env bash
# Usage: ./geany.sh [host]
host="${1:-manu@cabas.ugr.es}"
# The host key might change when we instantiate a new VM, so
# we remove (-R) the old host key from known_hosts
ssh-keygen -R "${host#*@}" 2> /dev/null
@Makova
Makova / RecetaInstalaChef
Last active October 31, 2016 09:54
ActualizarChef
#!/usr/bin/env bash
apt-get -y update
apt-get -y upgrade
apt-get -y install git build-essential autoconf zlib1g-dev libssl-dev \
libreadline-dev libyaml-dev libcurl4-openssl-dev curl python-software-properties \
ruby1.9.1 ruby1.9.1-dev rubygems1.9.1 irb1.9.1 ri1.9.1 rdoc1.9.1
gem install chef ruby-shadow --no-ri --no-rdoc
@Makova
Makova / deploy.sh
Last active October 23, 2015 14:35
Run on your laptop
#!/usr/bin/env bash
# Usage: ./deploy.sh [host]
host="${1:-ubuntu@opinionatedprogrammer.com}"
# The host key might change when we instantiate a new VM, so
# we remove (-R) the old host key from known_hosts
ssh-keygen -R "${host#*@}" 2> /dev/null