Skip to content

Instantly share code, notes, and snippets.

View nahue's full-sized avatar
🏠
Working from home

Victor Nahuel Chaves nahue

🏠
Working from home
  • Ushuaia - Tierra Del Fuego - Argentina
  • 01:07 (UTC -03:00)
View GitHub Profile
@nahue
nahue / linux-usb-file-copy-fix.md
Created November 20, 2018 01:24 — forked from 2E0PGS/linux-usb-file-copy-fix.md
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

@nahue
nahue / download_wesbos_videos.sh
Created May 17, 2016 17:25
Thanks to r.koller@gmail.com for taking the time to figure it out!
youtube-dl -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]" https://www.youtube.com/playlist\?list\=PLu8EoSxDXHP5uyzEWxdlr9WQTJJIzr6jy
@nahue
nahue / ror-provisioning.sh
Last active April 12, 2016 14:00 — forked from arielcr/ror-provisioning.sh
Ruby on Rails Provisioning Script
#!/bin/bash
echo Provisioning Ruby on Rails...
echo =================================
echo - Installing dependencies
sudo apt-get update -y -qq > /dev/null
sudo apt-get install curl -y -qq > /dev/null
echo - Installing mysql server
export DEBIAN_FRONTEND=noninteractive
@nahue
nahue / Vagrantfile
Created April 11, 2016 23:05 — forked from arielcr/Vagrantfile
Vagrant file for Ruby on Rails
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.vm.provision "shell", path: "https://gist.githubusercontent.com/arielcr/8845938/raw/b95e82166b24728df0d91b31dab9a65eed6cd01f/ror-provisioning.sh"
@nahue
nahue / designer.html
Created October 31, 2014 14:42
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
(function ($) {
//$.Redactor.opts.langs['es_ar'] = {
RLANG = {
html: 'HTML',
video: 'Video',
image: 'Imágen',
table: 'Tabla',
link: 'Enlace',
link_insert: 'Insertar enlace ...',
link_edit: 'Edit link',