This file contains hidden or 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 sys | |
def dummy_trace(frame, event, *args): | |
pass | |
class CancelExecutionException(Exception): | |
pass | |
class alternative_execution: |
This file contains hidden or 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
_pkgname=zim | |
pkgname=${_pkgname}-git | |
pkgver=0.74.3.r41.f4c98c2c | |
pkgrel=1 | |
pkgdesc="A WYSIWYG text editor that aims at bringing the concept of a wiki to the desktop. Mikael Lövqvist's Git Version" | |
arch=(any) | |
license=('GPL' 'PerlArtistic') | |
url="http://zim-wiki.org/" | |
depends=('python') | |
conflicts=('zim') |
This file contains hidden or 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
# Maintainer: Filipe Laíns (FFY00) <[email protected]> | |
# Contributor: Sergej Pupykin <[email protected]> | |
# Contributor: Bartłomiej Piotrowski <[email protected]> | |
# Contributor: Matthias Bauch <[email protected]> | |
# Contributor: Laszlo Papp <djszapi2 at gmail com> | |
# Contributor: Samuel Tardieu <[email protected]> | |
_features=(amtjtagaccel armjtagew buspirate ftdi gw16012 jlink oocd_trace opendous osbdm | |
parport presto_libftdi remote-bitbang rlink stlink ti-icdi ulink usbprog vsllink | |
aice cmsis-dap dummy jtag_vpi openjtag_ftdi usb-blaster-2 usb_blaster_libftdi) |
This file contains hidden or 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 argparse, multiprocessing, subprocess, pathlib, tempfile | |
scanner_tool = ('clamscan', '--no-summary', '--quiet') | |
log_arg = '-l' | |
log_prefix = 'log-' | |
file_list_arg = '-f' #Set this to something false-like in order to use file lists as command line arguments instead | |
file_list_name = 'file-list' #Must not be matching log_prefix | |
process_count = multiprocessing.cpu_count() | |
def process_file_list(files): |
This file contains hidden or 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 pathlib, re, time | |
line_pattern = re.compile(r'(.*?):\s+(.*)') | |
''' | |
Example usage, note that MODULE is this file and is in the directory you run gdb from | |
Note that gdb needs root privs | |
# gdb /bin/subl3 -p $(pidof subl3) |
This file contains hidden or 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
#This is a demo for VLOG entry https://youtu.be/LfRFxkombTw "Python - track object identities [short]" | |
greek_alphabet = ['Άλφα', 'Βήτα', 'Γάμμα', 'Δέλτα', 'Έψιλον', 'Ζήτα', 'Ήτα', 'Θήτα', 'Ιώτα', 'Κάππα', 'Λάμβδα', 'Μυ', 'Νυ', 'Ξι', 'Όμικρον', 'Πι', 'Ρώ', 'Σίγμα', 'Ταυ', 'Ύψιλον', 'Φι', 'Χι', 'Ψι', 'Ωμέγα'] | |
class identity_reference: | |
def __init__(self, target): | |
self.target = target | |
self.id = id(target) | |
try: |
NewerOlder