Skip to content

Instantly share code, notes, and snippets.

View robertzibert's full-sized avatar
⛩️

Robert Zibert robertzibert

⛩️
View GitHub Profile
@nicolaslopezj
nicolaslopezj / checkBchile.js
Created January 6, 2018 12:57
Checkea transferencias en el banco de chile
/* global $ */
function marcar(amountToTransfer, fecha, bchile) {
let total = 0
$('.linea1tablaSB input[type=checkbox]').map(function() {
const input = $(this)
const tr = input.parent().parent()
const fileNameTr = tr.prev().prev()
const fileName = fileNameTr.find('td:not([align=right]) strong').text()
const date = fileName.split(' ')[2] + ' ' + fileName.split(' ')[3]
const cuenta = $(tr.find('td')[5]).find('div:first').text().trim()
@joadr
joadr / Backup and restore Mongo database using gridFs.sh
Last active October 6, 2016 01:57
Mongo backup and restore database with gridFS
# Conectarse al servidor remoto
$ ssh root@armatubicicleta.cl
# Hago el dump en el sistema remoto
$ mongodump
# Comprimo el archivo en el sistema remoto
$ tar -zcvf armatubicicleta.tgz dump/armatubicicleta/
# Me descargo el archivo a mi sistema local (desde la terminal local)
$ scp root@armatubicicleta.cl:/root/dump/armatubicicleta.tgz /home/joaco/armatubicicleta.tgz
# Descomprimo el archivo
$ tar -zxvf armatubicicleta.tgz

Folder Structure

Please note

While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.

Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.

@laracasts
laracasts / gulpfile.js
Last active February 10, 2024 10:57
Example Laravel-specific Gulpfile from Laracasts.com
var gulp = require('gulp');
var gutil = require('gulp-util');
var notify = require('gulp-notify');
var sass = require('gulp-ruby-sass');
var autoprefix = require('gulp-autoprefixer');
var minifyCSS = require('gulp-minify-css')
var coffee = require('gulp-coffee');
var exec = require('child_process').exec;
var sys = require('sys');
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active October 16, 2025 10:42
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@rrosiek
rrosiek / install_mysql.sh
Last active August 25, 2025 14:10
Vagrant provision script for php, Apache, MySQL, phpMyAdmin, Laravel, and javascript helpers. Tested with Ubuntu 16.04.
#! /usr/bin/env bash
###
#
# install_mysql.sh
#
# This script assumes your Vagrantfile has been configured to map the root of
# your application to /vagrant and that your web root is the "public" folder
# (Laravel standard). Standard and error output is sent to
# /vagrant/vm_build.log during provisioning.
@fideloper
fideloper / install.sh
Last active October 30, 2023 20:03
Vagrant Provisioning Script for PHP applications. This installs a LAMP stack.
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
@possibilities
possibilities / meteor-async.md
Created August 23, 2012 22:53
Meteor Async Guide

From Meteor's documentation:

In Meteor, your server code runs in a single thread per request, not in the asynchronous callback style typical of Node. We find the linear execution model a better fit for the typical server code in a Meteor application.

This guide serves as a mini-tour of tools, trix and patterns that can be used to run async code in Meteor.

Basic async

Sometimes we need to run async code in Meteor.methods. For this we create a Future to block until the async code has finished. This pattern can be seen all over Meteor's own codebase:

@johnantoni
johnantoni / mysql.txt
Created August 7, 2012 18:57
mysql + vagrant + remote access
username: vagrant
password: vagrant
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev
sudo aptitude install mysql-server mysql-client
sudo nano /etc/mysql/my.cnf