Skip to content

Instantly share code, notes, and snippets.

@luiselizondo
luiselizondo / slack_delete.py
Last active June 25, 2018 15:00 — forked from Paradoxis/slack_delete.py
Delete all Slack files. Usage: python slack_delete.py --token <your token>
import argparse
import requests
import time
import json
def main():
"""
Entry point of the application
:return: void
#!/bin/bash
# Instructions to run
# create-reminder "Say thanks to Luis for this wonderful IFTTT recipe!"
# Instructions to configure
# Save this file as /usr/local/bin/create-reminder
# Run chmod +x /usr/local/bin/create-reminder
# Change the following lines
event_name="create_reminder"
@luiselizondo
luiselizondo / build-titanium
Created August 4, 2015 06:02
Build Titanium Studio from Source
#!/bin/bash
# echo export ANDROID_SDK=/Users/luis/Library/android-sdk-macosx >> ~/.zshconfig
# sudo echo /Users/luis/Library/android-sdk-macosx/tools >> /etc/paths
# sudo echo /Users/luis/Library/android-sdk-macosx/platform-tools >> /etc/paths
# ~/Library/Application Support/Titanium
# ~/Documents/Appcelerator_Studio_Workspace
echo "Installing python dependencies"
sudo easy_install pycrypto pyopenssl pyyaml Pygments markdown
@luiselizondo
luiselizondo / sinonimos.csv
Created July 24, 2015 05:01
Diccionario de Sinonimos en Español para ElasticSearch
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
https://iirs.googlecode.com/svn-history/r10/trunk/utiles/sinonimos.csv
@luiselizondo
luiselizondo / Links
Created July 6, 2015 03:50
Master Detail Model Binding in Appcelerator
@luiselizondo
luiselizondo / docker-clean-images
Created April 28, 2015 22:28
Docker Clean Images Command
#!/bin/bash
docker images -q --filter "dangling=true" | xargs docker rmi
@luiselizondo
luiselizondo / Model.js
Last active August 29, 2015 14:19
Sails.js Testing
'use strict';
var assert = require("assert");
var should = require("should");
var include = require("include");
var bootstrap = include("test/bootstrap.test");
var Factory = require("sails-factory").load();
var Chance = require("chance");
@luiselizondo
luiselizondo / sails-mock
Created March 27, 2015 08:51
How to mock a service in Sails, found at https://github.com/fdvj/wolfpack/issues/2
var sinon = require('sinon'),
wolfpack = require('wolfpack');
// Mock EmailSender
global.EmailSender {
sendEmailToUser: sinon.stub()
};
// Instantiate you model
global.User = wolfpack('path_to_models/User');
#!/bin/bash
############################################################################
# Note: Special network 192.162.50.3 to use Cisco Anyconnect Split tunnel.
#
# On OX X host you need to add a line (and file) /etc/exports:
# /Users -mapall=[youruser]:[yourgroup] [boot2dockerip]
# See: https://quip.com/EDYLAAfuup5M (no login needed)
# See also: https://github.com/boot2docker/boot2docker/issues/587#issuecomment-66935011
# See also: http://support.apple.com/en-us/HT202243
@luiselizondo
luiselizondo / HTML_To_Markdown.php
Created February 26, 2015 00:28
Drupal module to migrate to Ghost
<?php
/**
* Class HTML_To_Markdown
*
* A helper class to convert HTML to Markdown.
*
* @version 2.1.1
* @author Nick Cernis <nick@cern.is>
* @link https://github.com/nickcernis/html2markdown/ Latest version on GitHub.
* @link http://twitter.com/nickcernis Nick on twitter.