Skip to content

Instantly share code, notes, and snippets.

View jerson's full-sized avatar

Gerson Alexander Pardo Gamez jerson

View GitHub Profile
Complete installation process:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y python-software-properties python make build-essential g++ curl libssl-dev apache2-utils git libxml2-dev
sudo apt-get update
sudo apt-get upgrade
cd ~
mkdir git
cd ~/git
@jerson
jerson / zalora-android-buck.py
Last active August 29, 2015 14:27 — forked from zhchang/zalora-android-buck.py
zalora android buck build file
common_deps_framework = [':framework-res',':aquery',':google-play',':volley',':adjust',':ad4push',':shouldit',':view-indicator',':hockeyapp',':holo']
common_deps_view= [':view-res',':framework',':aquery',':google-play',':volley',':adjust',':ad4push',':shouldit',':view-indicator',':hockeyapp',':holo']
common_libs = [':framework-lib1',':framework-lib2',':framework-lib3',':framework-lib4',':framework-lib5',':ad4push-lib1',':holo-lib1',':holo-lib2',':view-lib1',':view-lib2',':google-play-lib1']
android_binary(
name = 'zalora',
manifest = 'com.zalora.android/AndroidManifest.xml',
target = 'android-18',
package_type = 'release',
keystore = ':debug_keystore',
proguard_config = 'com.zalora.android/proguard-project.txt',
@jerson
jerson / php.ini
Last active September 3, 2015 00:42 — forked from sn0opy/php.ini
hhvm 3.x php.ini
hhvm.server.type = fastcgi
hhvm.server.file_socket = /run/shm/hhvm.sock
hhvm.server.apc.enable_apc = true
hhvm.server.apc.table_type = concurrent
hhvm.server.apc.expire_on_sets = true
hhvm.server.apc.purge_frequency = 4096
hhvm.eval.jit = true
hhvm.eval.jit_warmup_requests = 50
@jerson
jerson / gist:c3d63605a9dd4432237e
Last active September 4, 2015 23:37 — forked from sylvainraye/gist:bd27d4767917542575e5
Mailcatcher Plist for OSX
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>diglin.mailcatcher</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-i</string>
@jerson
jerson / nginx.conf
Last active September 20, 2015 15:54 — forked from thoop/nginx.conf
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
@jerson
jerson / error-report.js
Created July 31, 2016 05:31 — forked from tianjianchn/error-report.js
Error report util with fabric/crashlytics in react-native
/*global __DEV__*/
import StackTrace from 'stacktrace-js';
const Fabric = require('react-native-fabric');
const { Crashlytics } = Fabric;
//call this to start capturing any no-handled errors
exports.init = function(captrueOnDebugMode){
if (__DEV__ && !captrueOnDebugMode) {
return;
@jerson
jerson / simple-gpg-enc.go
Created July 9, 2019 15:36 — forked from stuart-warren/simple-gpg-enc.go
golang gpg/openpgp encryption/decryption example
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"encoding/base64"
"io/ioutil"
"log"
"os"
)
@jerson
jerson / macapp.go
Created March 2, 2020 20:02 — forked from mholt/macapp.go
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use:
@jerson
jerson / go-shebang-story.md
Created March 4, 2020 17:15 — forked from posener/go-shebang-story.md
Story: Writing Scripts with Go

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

@jerson
jerson / flutter_all_fastlane.sh
Created June 17, 2020 22:33 — forked from rodydavis/flutter_all_fastlane.sh
Using Fastlane for Flutter to deploy iOS, Mac, Android and Web
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins