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 | |
""" | |
Example of how to use futures with ProcessPoolExecutor or ThreadPoolExecutor. | |
""" | |
from concurrent import futures | |
def long_running_function(): | |
""" |
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 python2 | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
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
oclHashcat Benchmarks | |
System Info: | |
CPU: Intel(R) Core(TM) i5-4570S CPU @ 2.90GHz (quad core) | |
GPU: XFX Core Edition R7-265A-CNF4 Radeon R7 265 2GB (1280 stream processors) | |
NetNTLMv2 Benchmark first (since I consider it the most important) | |
------------------------------------------------------------------ | |
$ ./oclHashcat64.bin -b --force -m5600 |
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 python3 | |
""" | |
A periodic callback mechanism that uses `threading.Timer`. | |
""" | |
class PeriodicTimerCallback(object): | |
""" | |
A wrapper that uses either `threading.Timer` to call functions at a |
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 | |
# -*- coding: utf-8 -*- | |
from random import Random | |
ⶻ=len | |
ج=int | |
ⶽ=sum | |
ܠ=str | |
ܓ=range | |
ش=object | |
import sys |
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/sh | |
LED=/sys/devices/platform/leds-gpio/leds/beaglebone\:\:usr1/brightness | |
while true; do | |
echo "1" > $LED | |
sleep 1 | |
echo "0" > $LED | |
sleep 1 | |
done | |
# Put this in /etc/init.d/ and create a link to it inside /etc/rc2.d and /etc/rc3.d as S05blinker |
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
Executing: MACHINE=beagleboard bitbake cloud9-image | |
WARNING: /storage/beagleboard/setup-scripts/sources/meta-openembedded/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bb: it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd | ETA: 00:01:40 | |
NOTE: angstrom DOES NOT support libiconv because the eglibc provided iconv library is used############################################################################################### | ETA: 00:00:47 | |
NOTE: angstrom DOES NOT support libiconv because the eglibc provided iconv library is used | |
WARNING: /storage/beagleboard/setup-scripts/sources/openembedded-core/meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb: it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd###### | ETA: 00:00:32 | |
WARNING: /storage/beagleboard/setup-scripts/sources/meta-raspberrypi/recipes-core/systemd/rpi-zram-service.bb: it is recommended to set SYSTEMD_PACKAGES as <existing-p |
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
DESCRIPTION = "matplotlib is a python 2D plotting library which produces publication quality figures in a variety of hardcopy formats" | |
SECTION = "devel/python" | |
LICENSE = "PSF" | |
LIC_FILES_CHKSUM = "file://README.txt;md5=83c5bf8b16a5f99507f2f47a21ae3b81" | |
PR = "r1" | |
SRC_URI = "${SOURCEFORGE_MIRROR}/matplotlib/matplotlib-${PV}.tar.gz \ | |
" | |
S = "${WORKDIR}/matplotlib-${PV}" |
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/bash | |
# | |
# Description: Hello, World | |
# Author: Anu Bs <anu.bs@youknowwhat.com> | |
echo "Hello, World." |
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
# -*- coding: utf-8 -*- | |
# | |
# Copyright 2013 Liftoff Software Corporation | |
# | |
# For license information see LICENSE.txt | |
# Meta | |
__version__ = '1.0.0' | |
__version_info__ = (1, 0, 0) | |
__license__ = "Apache 2.0" |
OlderNewer