This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat docker_delete_all.bash | |
docker ps -a | awk '{print $1}' | xargs docker rm | |
docker images | awk '{print $1}' | xargs docker rmi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "phoenix_html" | |
import "bootstrap" | |
import "jquery" | |
import "toastr" | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pyaib plugin for auth with matterircd | |
from pyaib.plugins import * | |
import time | |
@plugin_class('mattermost') | |
class Mattermost(object): | |
""" track channels and stuff """ | |
def __init__(self, irc_c, config): | |
self.config = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import json | |
import random | |
import re | |
import time | |
try: | |
from Crypto import Random | |
from Crypto.Cipher import AES, PKCS1_v1_5 | |
from Crypto.PublicKey import RSA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding=utf8 | |
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 | |
from nyaa import nyaa | |
import click | |
@click.command() | |
@click.argument("search") | |
@click.option("--user", default="") | |
@click.option("--onlylink", default="") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
from nyaa import nyaa | |
import guessit | |
import click | |
@click.command() | |
@click.argument("nyaa_user") | |
@click.option("--num_page", default=10, help="Numero de paginas rss a obtener") | |
def fetch_nyaa_user(nyaa_user, num_page): | |
""" obtiene de nyaa (rss) todos las series y hace batchs de torrents """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import ch | |
import sys | |
msg = "" | |
import cgi | |
class TestBot(ch.RoomManager): | |
def onConnect(self, room): | |
global msg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
"""smtptest.py: command-line smtp test mail sender | |
https://github.com/turbodog/python-smtp-mail-sending-tester | |
Usage: python smtptest.py [options] fromaddress toaddress serveraddress | |
Examples: | |
python smtptest.py bob@example.com mary@example.com mail.example.com | |
python smtptest.py --debuglevel 1 --usetls -u bob -p xyzzy "Bob <bob@example.com>" mary@example.com mail.example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'formatters': { | |
'verbose': { | |
'format' : "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s", | |
'datefmt' : "%d/%b/%Y %H:%M:%S" | |
}, | |
'simple': { | |
'format': '%(levelname)s %(message)s' |