Skip to content

Instantly share code, notes, and snippets.

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

Igor de Lorenzi igordelorenzi

🏠
Working from home
  • São Paulo, SP, Brazil
  • 09:37 (UTC -03:00)
View GitHub Profile
@igordelorenzi
igordelorenzi / backup.py
Last active August 29, 2015 13:57
Backup Script w/ Rotation Based on GFS
# -*- encoding: utf-8 -*-
import logging
import sh
import random
from bakthat.helper import BakHelper
# from datetime import datetime
logging.basicConfig(level=logging.INFO)
# CHECK WHAT WILL BE KEPT (BACKUP ROTATION)
@igordelorenzi
igordelorenzi / GruntFixSourceMappingTask.js
Created September 4, 2014 23:44
Task for copying JavaScript Source Map files from vendor (and bower_components) to dist directory.
grunt.registerTask('fixSourceMapping', function () {
var concat = grunt.config('concat'),
copy = grunt.config('copy'),
files = concat.generated.files,
i, src, sourceMapFiles = [];
for (i in files) {
if (files[i].dest === "dist/scripts/vendor.js") {
src = files[i].src;
break;
@igordelorenzi
igordelorenzi / Gruntfile.js
Created September 8, 2014 17:43
Gruntfile.js
(function() {
"use strict";
var LIVERELOAD_PORT, lrSnippet, mountFolder;
LIVERELOAD_PORT = 35728;
lrSnippet = require("connect-livereload")({
port: LIVERELOAD_PORT
@igordelorenzi
igordelorenzi / setup.md
Last active August 29, 2015 14:09
Setup Sublime Text 3 - Linter e Snippets para JS

Instalação do SublimeLinter e SublimeLinter-jshint

TL;DR: Vá para a Instalação Rápida.

  1. Primeiramente, instale o Package Control. Link: https://sublime.wbond.net/installation
  • Obs: Para verificar se está instalado: cmd+shift+p, digite Package Control e observe se apareceu algum comando.
  1. Instale o plugin SublimeLinter. Acione ctrl+cmd+p, digite install e pressione Enter. Aguarde o Package Control carregar os repositórios. Na janela de comando, digite SublimeLinter e pressione Enter. Aguarde até a finalização do processo. O status pode ser observado na barra inferior do editor.
  2. Instale o plugin SublimeLinter-jshint. Repita o passo anterior com o nome SublimeLinter-jshint.
  3. Instale o binário do JSHint. No terminal, digite npm install jshint -g
  • Obs: Para quem não usa o nvm, será necessário executar o comando como super user: sudo npm install jshint -g
@igordelorenzi
igordelorenzi / make.log
Created November 16, 2023 19:48
make.log
This file has been truncated, but you can view the full file.
+__rvm_make:0> make -j10
BASERUBY = /Users/igordla/.rvm/rubies/ruby-3.0.0/bin/ruby --disable=gems
CC = gcc
LD = ld
LDSHARED = gcc -dynamiclib
CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -fno-common -pipe
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -DCANONICALIZATION_FOR_MATHN