Skip to content

Instantly share code, notes, and snippets.

View cagodoy's full-sized avatar

Camilo Acuña Godoy cagodoy

  • Santiago de Chile
View GitHub Profile
###########################
# Configuration
###########################
# increase scroll-back history
set -g history-limit 5000
# use vim key bindings
setw -g mode-keys vi
@sebastianvera
sebastianvera / init.vim
Last active December 27, 2020 21:46
Vim config
let mapleader = " "
" Install vundle
let shouldInstallBundles = 0
if !filereadable($HOME . "/.config/nvim/autoload/plug.vim")
echo "~≥ Installing vim-plug \n"
silent !curl -fLo $HOME/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let shouldInstallBundles = 1
endif
@itolosa
itolosa / main.py
Last active April 10, 2018 02:00
API Script para conectarse con Orionx (http://orionx.io) (Orionx API) (https://api.orionx.io/graphql)
import requests
import orionx_queries
api_url = 'https://api.orionx.io/graphql'
# put your login token here
login_token = '<token-taken-from-a-sample-request>'
# put fingerprint value here
fingerprint = '<fingerprint-taken-from-a-sample-request--maybe-optional>'
@juanbrujo
juanbrujo / comunas-regiones.json
Last active June 10, 2025 21:23 — forked from sergiohidalgo/comunas-regiones-chile.json
Comunas y regiones de chile JSON
{
"regiones": [
{
"region": "Arica y Parinacota",
"comunas": ["Arica", "Camarones", "Putre", "General Lagos"]
},
{
"region": "Tarapacá",
"comunas": ["Iquique", "Alto Hospicio", "Pozo Almonte", "Camiña", "Colchane", "Huara", "Pica"]
},
@bachvtuan
bachvtuan / send_sms.js
Last active April 11, 2018 10:25
Send SMS Amazon SNS Nodejs
/**
* @Author: [email protected]
* to_number: String : user phone number
* message: String : sms message
* func_callback: function : callback function( status )
* Reference links :
* https://gist.github.com/stuartmyles/8099723
* http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SNS.html#deleteTopic-property
*/
@skratchdot
skratchdot / arrayBufferToString.js
Created March 3, 2016 04:43
Array Buffer -> String and String -> ArrayBuffer conversions in javascript
// source: http://stackoverflow.com/a/11058858
function ab2str(buf) {
return String.fromCharCode.apply(null, new Uint16Array(buf));
}