Skip to content

Instantly share code, notes, and snippets.

🐍

Steve Clement SteveClement

🐍
Block or report user

Report or block SteveClement

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@SteveClement
SteveClement / pullMergePush.sh
Created Nov 15, 2019
pull, merge and push my MISP branches
View pullMergePush.sh
#!/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 / jsonschema
Created Nov 29, 2018
jsonschema script in case it is missing
View jsonschema
#!/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])
View gist:3e0251a0c28381904d4852ff51e83a29
########### 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 / twotwo-wayland.sh
Last active Feb 15, 2019 — forked from bhundven/nineteen-wayland.sh
Enlightenment 22 build script for Ubuntu/Debian with Wayland support.
View twotwo-wayland.sh
#!/bin/bash
# vi: ts=4:sw=4:et
#
# twotwo.sh
# This script allows you to install/update Enlightenment 22 git version on
# Ubuntu 18.04 or Debian buster (testing), or remove E22 git from your system.
# ********************************************************************
# * This version builds enlightenment with wayland. *
# * That means this requires a very recent Ubuntu or Debian version. *
# * This may not work properly! You've been warned! *
@SteveClement
SteveClement / twotwo.sh
Last active May 27, 2019 — forked from bhundven/nineteen.sh
Enlightenment 22 build script for Ubuntu/Debian
View twotwo.sh
#!/bin/bash
# vi: ts=4:sw=4:et
#
# twotwo.sh
# This script allows you to install/update Enlightenment 22 git version on
# Ubuntu 18.04 LTS or Debian testing (buster), or remove E22 git from your system.
# Originally from: http://ubuntuforums.org/showthread.php?t=2203190
# By: Philippe J. Guillaumie (batden AT sfr DOT fr).
# Additional updates by: Bryan Hundven (bryanhundven AT gmail DOT com).
#
View imageEffect.pde
PImage kitten;
void setup() {
size(2024, 512);
kitten = loadImage("kitten.jpg");
//kitten.filter(GRAY);
image(kitten, 0, 0);
}
void draw() {
View checkNet.py
#!/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 / convert_mysql_to_sqlite3.sh
Last active Jan 26, 2020 — forked from grfiv/convert_mysql_to_sqlite3.sh
convert a mysql database to sqlite3
View convert_mysql_to_sqlite3.sh
#!/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=****************
@SteveClement
SteveClement / cmake.out
Last active Aug 1, 2016
openCV 3.1.0 cmake output
View cmake.out
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
@SteveClement
SteveClement / ignore-thread-1.6.2.patch
Last active Jul 25, 2016 — forked from mistydemeo/ignore-thread-1.5.21.patch
mutt ignore thread patch for 1.6.2
View ignore-thread-1.6.2.patch
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
You can’t perform that action at this time.