Skip to content

Instantly share code, notes, and snippets.

View Pelirrojo's full-sized avatar
🤷‍♂️
Somewhere I have to keep my test code

Manuel Eusebio de Paz Carmona Pelirrojo

🤷‍♂️
Somewhere I have to keep my test code
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 / odoo@10CE_from_src.sh
Created May 20, 2017 17:38
Install & run an odoo v10 Community Edition, in a Debian/distro by console without database Raw
#!/usr/bin/env bash
# https://www.getopenerp.com/install-odoo-10-on-ubuntu-16-04/
# Update & upgrade distro status
sudo apt-get update -s
sudo apt-get upgrade -s
# Install dev deps
sudo apt-get install -s git make gcc curl poppler-utils mc bzr lptools antiword
sudo apt-get install -s postgresql-client postgresql-client-common
@Pelirrojo
Pelirrojo / nginx.wordpress4.conf
Last active August 15, 2017 18:45
NGINX Configuration for [email protected] 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 / nginx.magento2.conf
Created August 15, 2017 17:34
NGINX Configuration for [email protected] 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 / TODO.md
Last active June 22, 2020 10:35
List of programs and tools necessary for tuning a Mac to develop with Node.js/JS/Frontend & Docker.

Install MacOs Dev Environment Installation.sh

With

  • nvm
  • python@3
  • MiniConda
  • Docker

Automate all the things!

@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