Skip to content

Instantly share code, notes, and snippets.

View 64lines's full-sized avatar

Julian Alexander Murillo 64lines

  • Huge Inc.
  • Medellin - Colombia
View GitHub Profile
import os
import random
from datetime import datetime as date
def get_voice():
# "Samantha"
return "Tessa"
def run_voice_command(text, voice):
return os.system("say \"%s\" --voice=%s" % (text.encode('utf-8'), voice))
import feedparser
import os
import random
from talker import say_text
from talker import greeting
def get_entries(url):
return feedparser.parse(url).entries
def format_entry(entry):
say "I am your father"
say "Nooooooooo"
@64lines
64lines / Scientific_Method.md
Last active July 31, 2017 20:43
[SCIENCE] - Scientific Method

Scientific Method

  1. Define a question
  2. Gather information and resources (observe)
  3. Form an explanatory hypothesis
  4. Test the hypothesis by performing an experiment and collecting data in a reproducible manner
  5. Analyze the data
  6. Interpret the data and draw conclusions that serve as a starting point for new hypothesis
  7. Publish results
  8. Retest (frequently done by other scientists)
@64lines
64lines / conditional_coloring_validations.txt
Created July 18, 2017 15:44
[CONDITIONS] - Excel conditional coloring validations
between
not between
equal to
not equal to
greater than
less than
greater than or equal to
less than or equal to
@64lines
64lines / index.js
Last active July 17, 2017 19:54
[NODE][SSH] - Connection Helper index.js
var Client = require('ssh2').Client;
var conn = new Client();
conn.on('ready', function() {
console.log('Client :: ready');
conn.shell(function(err, stream) {
if (err) throw err;
stream.on('close', function() {
console.log('Stream :: close');
conn.end();
@64lines
64lines / package.json
Last active July 17, 2017 20:30
[NODE][SSH] - Connection Helper package.json
{
"name": "connection-helper",
"version": "0.0.1",
"description": "Execute shell commands on one or more remote computers via SSH",
"license": "MIT",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"ssh2": "0.5.5"
@64lines
64lines / Vagrant_ssh.sh
Created July 17, 2017 16:45
[VAGRANT] - How vagrant ssh works?
ssh $(vagrant ssh-config | awk 'NR>1 {print " -o "$1"="$2}') localhost
@64lines
64lines / gif_randomizer.py
Last active July 13, 2017 22:48
[PYTHON] - Gif Randomizer
import feedparser
import os
import random
import time
from bs4 import BeautifulSoup
def download_file(url):
os.system('curl -o index.html %s' % url)
def get_entries(url):
@64lines
64lines / fluentd_useful_commands.md
Last active July 4, 2017 16:07
[FLUENTD] Useful commands
tail -f /var/log/td-agent/td-agent.log               # Look at the Fluetd logs
cat /etc/td-agent/td-agent.conf                      # Look at the configuration of the Fluentd agent
/etc/init.d/td-agent restart                         # Restart the Fluentd agent
/usr/sbin/td-agent-gem install fluent-plugin-sql     # Install libraries