Skip to content

Instantly share code, notes, and snippets.

View Pelirrojo's full-sized avatar
🪄
“It's still magic even if you know how it's done.”

Manuel Eusebio de Paz Carmona Pelirrojo

🪄
“It's still magic even if you know how it's done.”
View GitHub Profile
@Pelirrojo
Pelirrojo / show-and-refresh-two-iframes.html
Last active August 29, 2015 14:13
auto 30s single simple web with two iframes
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Web para actualizar la lista de infoJobs</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
@Pelirrojo
Pelirrojo / wss-myo-sample.html
Last active August 29, 2015 14:14
Playing with the WebSocket API of Myo™ Gesture Control Armband from ThalmicLabs™
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Myo™ Gesture Control Armband from ThalmicLabs™ | WebSockets Demo</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="http://getbootstrap.com/examples/sticky-footer/sticky-footer.css">
@Pelirrojo
Pelirrojo / .conkyrc
Last active August 29, 2015 14:23
Another easy .conkyrc definition.
# conky configuration
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
@Pelirrojo
Pelirrojo / nginx.magento2.conf
Created August 15, 2017 17:34
NGINX Configuration for Magento@2.1.8 SITE with SSL, http->https redirection
# Based in:
# https://www.rosehosting.com/blog/magento-2-with-redis-varnish-and-nginx-as-ssl-termination/
upstream fastcgi_backend {
server unix:/run/php/php7.0-fpm.sock;
}
server {
listen 80;
server_name www.yoursite.com;
@Pelirrojo
Pelirrojo / nginx.wordpress4.conf
Last active August 15, 2017 18:45
NGINX Configuration for Wordpress@4.8.1 SITE with SSL, http->https redirection
# Based in:
# https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04
# https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-16-04
# HTTP Config
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name www.yoursite.com;
@Pelirrojo
Pelirrojo / armagedocker.sh
Last active August 20, 2017 19:21 — forked from beeva-manueldepaz/armagedocker.sh
Script to delete all the images, containers and logs (path oriented to OsX)
#!/bin/sh
# HowTo
# Put it at /usr/local/bin/armaggeDocker.sh
# Give permissions: chmod a+x /usr/local/bin/armaggeDocker.sh
read -p "This will stop and delete all running containers and local images. Are you sure that you want to continue? (y/n) " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
@Pelirrojo
Pelirrojo / killAllNodeModules.sh
Last active August 20, 2017 19:22 — forked from beeva-manueldepaz/killAllNodeModules.sh
Script to clean all npm & bower current instalations in a folder recursively
#!/bin/sh
# https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively
# $sudo mv /path/to/killAllNodeModules.sh /usr/local/bin/killAllNodeModules
# $sudo chmod a+x /usr/local/bin/killAllNodeModules
read -p "This will delete all node_modules & bower_componets in current and derived folders. Are you sure that you want to continue? (y/n) " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
@Pelirrojo
Pelirrojo / killAllContainers.sh
Last active August 20, 2017 19:23 — forked from beeva-manueldepaz/killAllContainers.sh
Script to stop and delete current running containers (useful to work with DevLab) or even images (commented by default)
#!/bin/sh
# [DevLab](https://github.com/TechnologyAdvice/DevLab)
# $sudo mv /path/to/killAllContainers.sh /usr/local/bin/killAllContainers
# $sudo chmod a+x /usr/local/bin/killAllContainers
read -p "This will stop and delete all running containers. Are you sure that you want to continue? (y/n) " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
@Pelirrojo
Pelirrojo / backupFolders.sh
Last active August 20, 2017 19:29
Zip all folders in current directory to folderName.zip
#!/bin/sh
# HowTo
# Put it at /usr/local/bin/backupFolders.sh
# Give permissions: chmod a+x /usr/local/bin/backupFolders.sh
zip --version >/dev/null 2>&1 || { echo "I require zip but it's not installed. :( --> Aborting." >&2; exit 1; }
read -p "This will stop and delete all running containers and local images. Are you sure that you want to continue? (y/n) " -n 1 -r
echo # (optional) move to a new line
@Pelirrojo
Pelirrojo / index.html
Created April 18, 2018 04:57
HTML template with Bootstrap@3.3.1 by CDN
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Put a nice title here!</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">