Skip to content

Instantly share code, notes, and snippets.

View dobladov's full-sized avatar
📺
Streaming!

Daniel Doblado dobladov

📺
Streaming!
View GitHub Profile
@dobladov
dobladov / gist:2bba894e014ada45e756
Last active August 29, 2015 14:01
Arrow Menu Horizontal
.current-menu-item > a {
color: #628823 !important;
}
.current-menu-item {
position: relative;
}
#web2feel > .current-menu-item:after, #web2feel > .current-menu-ancestor:after {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Book</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href='https://fonts.googleapis.com/css?family=Josefin+Sans' rel='stylesheet' type='text/css'>
server {
listen 80;
server_name descargas.home;
location / {
proxy_pass http://localhost:9091;
}
@dobladov
dobladov / Periscope
Last active March 18, 2016 20:15
Persicope Subtitles
## /home/nye/.local/share/nautilus/scripts
lang=$(zenity --list \
--text "Select a language" \
--radiolist \
--column "" \
--column "Language" \
TRUE es \
FALSE en );
@dobladov
dobladov / Gif Generator
Last active June 14, 2016 14:12
Simple video to gif converter with ffmpeg and zenity
#!/bin/sh
width=$(zenity \
--entry \
--title "Gif Generator" \
--text "Width" \
--entry-text "-1" );
if [ -z $width]
then
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
html, body {
margin: 0;
I found the multiple options confusing, so I decided to test all of them to see exactly what they do. I'm using VirtualBox 4.2.16-r86992 and Vagrant 1.3.3.
I created a directory called nametest and ran vagrant init precise64 http://files.vagrantup.com/precise64.box to generate a default Vagrantfile. Then I opened the VirtualBox GUI so I could see what names the boxes I create would show up as.
1) Default Vagrantfile
Vagrant.configure('2') do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
end
@dobladov
dobladov / TheDudeBackup.py
Last active July 1, 2016 14:14
Python scrip that creates a backup file from a Mikrotik The Dude web interface.
#!/usr/bin/env python3
import logging
import requests
import datetime
server = "192.168.0.77"
port = 80
username = "admin"
password = ""
@dobladov
dobladov / pingLed.py
Last active September 3, 2016 15:52
Python script that turn "on" a led when there is no ping to a web page.
from os import system
import RPi.GPIO as GPIO
import sched, time
hostname = 'google.com'
pin = 7
GPIO.setmode(GPIO.BOARD)
GPIO.setup(pin, GPIO.OUT)
@dobladov
dobladov / app.js
Created September 10, 2016 22:45
Twitter Oauth with Express
/*
npm install --save express express-session oauth
*/
var express = require('express');
var OAuth = require('oauth');
var session = require('express-session');
var util = require('util');
var app = express();