Skip to content

Instantly share code, notes, and snippets.

View lauborges's full-sized avatar
💭
I may be slow to respond.

Lau Borges lauborges

💭
I may be slow to respond.
View GitHub Profile
@lauborges
lauborges / gist:5c3e033c947a654c9c5ffa64201a50b2
Created April 25, 2019 14:21
Check if lib has a function exported
readelf -s -W libsgfplib.so | grep SGFPM_GetImageQuality
@lauborges
lauborges / rasprev.sh
Last active March 1, 2019 11:59
get raspberry pi revision
cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed 's/^1000//'
@lauborges
lauborges / .gitlab-ci.yml
Created January 23, 2019 18:54 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@lauborges
lauborges / gist:014c6f09fa81e0662eb8449527420e05
Created June 6, 2018 18:40
Best Quick Look plugins for developers - Duojam
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package quicklookase qlvideo provisionql quicklookapk quicklook-pat
https://blog.duojam.com/best-quick-look-plugins-for-developers/
@lauborges
lauborges / gist:eccb900c0ba4d85ae18d17a1e5389fa8
Last active February 23, 2018 00:22
Remove ll node_modules folders
find . -name "node_modules" -type d -exec rm -rf '{}' +
@lauborges
lauborges / git-aliases.sh
Created February 8, 2018 09:08
Git Aliases
# ----------------------
# Git Aliases
# ----------------------
alias ga='git add'
alias gaa='git add .'
alias gaaa='git add --all'
alias gau='git add --update'
alias gb='git branch'
alias gbd='git branch --delete '
alias gc='git commit'

Keybase proof

I hereby claim:

  • I am lauborges on github.
  • I am lauborges (https://keybase.io/lauborges) on keybase.
  • I have a public key ASCsbU-ePH5RrQtfYESioQjG1tun5cJQ_vvpGYzSy3tAAQo

To claim this, I am signing this object:

@lauborges
lauborges / gist:244c7b968f4b93933fef1af2ed1fabb4
Created May 9, 2017 12:33
git delete all branches except master
git branch | grep -v "master" | xargs git branch -D
@lauborges
lauborges / index.js
Created April 2, 2017 02:12 — forked from JonathanMH/index.js
JSON Web Token Tutorial: Express
// file: index.js
var _ = require("lodash");
var express = require("express");
var bodyParser = require("body-parser");
var jwt = require('jsonwebtoken');
var passport = require("passport");
var passportJWT = require("passport-jwt");
@lauborges
lauborges / Fastfile
Created November 1, 2016 04:48 — forked from kennydee/Fastfile
Fastfile for staging environment with Appetize.io on React Native (iOs & Android), with statuses update on Github Enterprise
require 'httparty'
fastlane_version "1.95.0"
default_platform :ios
before_all do
# put here your token and iOs scheme app
ENV["GITHUB_TOKEN"] = "---"
ENV["APPETIZE_TOKEN"] = "---"
ENV["APP_IOS_SCHEME"] = "---"