Skip to content

Instantly share code, notes, and snippets.

View ravillarreal's full-sized avatar
💻
Developeando

Rafael Villarreal ravillarreal

💻
Developeando
  • Maracaibo, Venezuela
View GitHub Profile
@weibeld
weibeld / resize-images.sh
Created October 31, 2017 22:00
Bash script for resizing all the images in a directory with ImageMagick
#!/usr/bin/env bash
#
# Resize all the images in a specified folder with ImageMagick. Put the
# resized images in another specified folder.
#
# Of course, this script is an overkill. Just typing the loop on the command
# line would be enough...
#
# Daniel Weibel <danielmweibel@gmail.com>, 27 Dec. 2014
#------------------------------------------------------------------------------#
@kerryboyko
kerryboyko / README.md
Last active April 26, 2023 16:08
VueJS Best Practices Guide

Deverus Vue.js Style Guide

Guide for developing Vue.js applications.

v. 0.0.1

Vue.js is an amazing framework, which can be as powerful as Angular or React, the two big heavy hitters in the world of front-end frameworks.

However, most of Vue's ease-of-use is due to the use of Observables - a pattern that triggers re-renders and other function calls with the reassignment of a variable.

@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active May 11, 2024 06:48
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

@slaveofcode
slaveofcode / django-launch.json
Last active August 6, 2023 05:25
Sample Django Configuration launch.json VSCode (Visual Studio Code)
{
"version": "0.2.0",
"configurations": [
{
"name": "Django",
"type": "python",
"request": "launch",
"stopOnEntry": false,
"pythonPath": "${workspaceRoot}/venv/bin/python3.4",
"program": "${workspaceRoot}/manage.py",