Skip to content

Instantly share code, notes, and snippets.

View vieron's full-sized avatar

Javier Sánchez - Marín vieron

View GitHub Profile
@vieron
vieron / auto_git_file.md
Created January 30, 2022 21:35 — forked from darencard/auto_git_file.md
Automatic file git commit/push upon change

Please see the most up-to-date version of this protocol on my blog at https://darencard.net/blog/.

Automatically push an updated file whenever it is changed

Linux

  1. Make sure inotify-tools is installed (https://github.com/rvoicilas/inotify-tools)
  2. Configure git as usual
  3. Clone the git repository of interest from github and, if necessary, add file you want to monitor
  4. Allow username/password to be cached so you aren't asked everytime
@vieron
vieron / auto_git_file.md
Created January 30, 2022 21:35 — forked from darencard/auto_git_file.md
Automatic file git commit/push upon change

Please see the most up-to-date version of this protocol on my blog at https://darencard.net/blog/.

Automatically push an updated file whenever it is changed

Linux

  1. Make sure inotify-tools is installed (https://github.com/rvoicilas/inotify-tools)
  2. Configure git as usual
  3. Clone the git repository of interest from github and, if necessary, add file you want to monitor
  4. Allow username/password to be cached so you aren't asked everytime
@vieron
vieron / traffic.svg.diff
Created April 11, 2017 15:24
Sketch SVG export
diff --git a/src/framework/icons/svg/traffic.svg b/src/framework/icons/svg/traffic.svg
index e4452fe..4eacf33 100644
--- a/src/framework/icons/svg/traffic.svg
+++ b/src/framework/icons/svg/traffic.svg
@@ -1,12 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
- <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch -->
+ <!-- Generator: Sketch 43.1 (39012) - http://www.bohemiancoding.com/sketch -->
<title>Icon/traffic</title>
@vieron
vieron / box-model.html
Last active January 29, 2016 14:35
CSS Layout
<!-- BOX MODEL -->
<style>
body h1 {
background: transparent;
border: 30px solid transparent;
border-top-width: 60px;
color: #333;
}
@vieron
vieron / README.md
Last active January 5, 2016 18:34 — forked from jstcki/README.md
Grid layout
@vieron
vieron / dabblet.css
Last active August 31, 2015 09:03
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.grid {
width: 100%;
height: 300px;
border: 1px solid red;
padding: 2px;
background:
@vieron
vieron / dabblet.css
Last active August 31, 2015 08:45
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.grid {
width: 100%;
height: 300px;
border: 1px solid red;
background: radial-gradient(at 5px 5px, red 1px, red 5px, transparent 0),
radial-gradient(at 45px 5px, red 1px, red 5px, transparent 0),
@vieron
vieron / dabblet.css
Created August 30, 2015 16:23
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.grid {w
width: 100%;
height: 300px;
border: 1px solid red;
background: linear-gradient(90deg, white 1px, white 4px, transparent 0),
@vieron
vieron / post-checkout
Last active August 29, 2015 14:14
post-checkout hook to notify breaking changes
#!/usr/bin/env node
var PREV_HEAD = process.argv[2];
var NEW_HEAD = process.argv[3];
var sys = require('sys'),
exec = require('child_process').exec,
FgRed = "\x1b[31m", FgGreen = "\x1b[32m", FgYellow = "\x1b[33m",
FgBlue = "\x1b[34m", FgMagenta = "\x1b[35m", FgCyan = "\x1b[36m",
FgWhite = "\x1b[37m",
(function($) {
$.fn.simulateDragDrop = function (options) {
return this.each(function () {
new $.simulateDragDrop(this, options);
});
};
$.simulateDragDrop = function (elem, options) {
this.options = options;