Skip to content

Instantly share code, notes, and snippets.

@SteveClement
SteveClement / ignore-thread-1.6.2.patch
Last active July 25, 2016 11:01 — forked from mistydemeo/ignore-thread-1.5.21.patch
mutt ignore thread patch for 1.6.2
diff -ru mutt-1.5.21.orig/OPS mutt-1.5.21/OPS
--- mutt-1.5.21.orig/OPS 2010-03-01 12:56:19.000000000 -0500
+++ mutt-1.5.21/OPS 2011-07-10 14:59:03.000000000 -0400
@@ -179,3 +179,4 @@
OP_MAIN_SHOW_LIMIT "show currently active limit pattern"
OP_MAIN_COLLAPSE_THREAD "collapse/uncollapse current thread"
OP_MAIN_COLLAPSE_ALL "collapse/uncollapse all threads"
+OP_MAIN_IGNORE_THREAD "toggle a message's 'ignore-thread' flag"
diff -ru mutt-1.5.21.orig/copy.c mutt-1.5.21/copy.c
--- mutt-1.5.21.orig/copy.c 2010-03-02 14:15:00.000000000 -0500
@SteveClement
SteveClement / cmake.out
Last active August 1, 2016 22:48
openCV 3.1.0 cmake output
pi@raspberrypi:~/Desktop/code/opencv-3.1.0/build $ cmake -DOPENCV_EXTRA_MODULES_PATH=/home/pi/Desktop/code/opencv_contrib/modules -DBUILD_opencv_legacy=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=OFF -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D BUILD_EXAMPLES=ON -D BUILD_DOCS=ON -D WITH_UNICAP=ON -D WITH_EIGEN=ON ..
-- The CXX compiler identification is GNU 4.9.2
-- The C compiler identification is GNU 4.9.2
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
#!/usr/bin/env python3
# Source: # https://github.com/arvydas/blinkstick-python/wiki/Example:-Display-Internet-connectivity-status
import socket
import time
try:
import netifaces
gws = netifaces.gateways()
@SteveClement
SteveClement / imageEffect.pde
Created January 26, 2018 16:20
Processing examples
PImage kitten;
void setup() {
size(2024, 512);
kitten = loadImage("kitten.jpg");
//kitten.filter(GRAY);
image(kitten, 0, 0);
}
void draw() {
@SteveClement
SteveClement / bullshit_generator.py
Created February 18, 2014 12:28
Found (https://mail.python.org/pipermail/python-list/2009-March/530858.html) this nice Bullshit Generator by Pierre Denis. Adapted it to Python3
'''
======================================================================
Bullshit Generator
by Pierre Denis, March 2009
======================================================================
'''
# --------------------------------------------------
# grammar engine
# --------------------------------------------------
########### Checking Requirements ###########
[OK] Docker is Installed. Output: Docker version 18.06.1-ce, build e68fc7a
[OK] Git is Installed. Output: git version 2.19.1
[OK] Check: https://misp.dcso.de
Result: * Connected to misp.dcso.de (185.183.127.100) port 443 (#0).
[OK] Check: https://dockerhub.dcso.de/v2/
Result: * Connected to dockerhub.dcso.de (217.110.69.251) port 443 (#0).
[OK] Check: https://github.com/DCSO/misp-dockerized
Result: * Connected to github.com (192.30.255.113) port 443 (#0).
@SteveClement
SteveClement / jsonschema
Created November 29, 2018 04:52
jsonschema script in case it is missing
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jsonschema.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
@SteveClement
SteveClement / 100komma7-audioRSSm3u.py
Last active May 24, 2019 02:46
Python Script to parse the 100,7 RSS Audio Archive and write-out an m3u playlist
#!/usr/bin/env python3
## This script is obsolete and only for historical reasons still present.
import xml.etree.ElementTree as etree
from optparse import OptionParser, OptionGroup
from datetime import timedelta, date
import calendar
import urllib.request
import os, re, sys
@SteveClement
SteveClement / pullMergePush.sh
Created November 15, 2019 01:01
pull, merge and push my MISP branches
#!/usr/bin/env bash
BASE="2.4"
CURRENT_BRANCH=$(git branch | grep ^\* |cut -f 2 -d\ )
git checkout $BASE && git fetch upstream
git merge upstream/$BASE && git push
# gh-pages (not needed, will be done during doc regen)
@SteveClement
SteveClement / convert_mysql_to_sqlite3.sh
Last active January 26, 2020 09:26 — forked from grfiv/convert_mysql_to_sqlite3.sh
convert a mysql database to sqlite3
#!/usr/bin/env bash
#
# convert a mysql database to sqlite3
#
#see https://stackoverflow.com/questions/5164033/
# export-a-mysql-database-to-sqlite-database
mysql_host=localhost
mysql_user=george
#mysql_passwd=****************