Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View steev's full-sized avatar

Steev Klimaszewski steev

View GitHub Profile
#!/usr/bin/env python
from numpy import *
import subprocess
import time
POSITIVE=True
NEGATIVE=False
HINGE_ALIGNED_WITH_GRAVITY_THRESHOLD = cos(radians(15))
HINGE_AXIS = array((0,1,0), dtype=float)
diff --git a/Makefile b/Makefile
index a80ad47..e9bf0b0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,12 @@
# Our plugin directory name when we install
PLUGIN_NAME ?= reportgen
+INSTALL ?= /usr/bin/install
+
+# As we have no live code, all we need is the manifest.conf to "compile"
@steev
steev / gist:ce832488a2ebcd900f620586fe55bbce
Created December 14, 2018 05:32 — forked from dasgoll/gist:455522f09cb963872f64e23bb58804b2
Jenkins REST API example using crumb
Each Jenkins page has a REST API hyperlink at the bottom, this is because each page has its own endpoint.
http://localhost:8080/me
configure
Click 'Show API Token'
78e21f82a9e137614fef5b9593bcf827 = API Token
curl -s -u goll:78e21f82a9e137614fef5b9593bcf827 http://localhost:8080/crumbIssuer/api/json
XPASS: elf/tst-protected1a
XPASS: elf/tst-protected1b
UNSUPPORTED: iconv/tst-gconv-init-failure
UNSUPPORTED: io/tst-getcwd-abspath
UNSUPPORTED: math/test-fesetexcept-traps
UNSUPPORTED: math/test-fexcept-traps
UNSUPPORTED: math/test-nearbyint-except-2
FAIL: misc/tst-pkey
FAIL: nptl/tst-cancel4
FAIL: nptl/tst-cancel5
gdb $ bt full
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
set = {
__val = {0,
4227288411121237,
8247335806221956864,
0,
0,
0,
3838831818534568516,
[ 2.237646] mmc0: error -84 whilst initialising MMC card
[ 2.237765] WARNING: CPU: 0 PID: 0 at drivers/mmc/host/meson-gx-mmc.c:1025 meson_mmc_irq+0x100/0x218
[ 2.238628] usb 1-1.1: new low-speed USB device number 3 using dwc2
[ 2.246371] Modules linked in:
[ 2.246379] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.18.16 #1
[ 2.246381] Hardware name: Hardkernel ODROID-C2 (DT)
[ 2.246386] pstate: 00000085 (nzcv daIf -PAN -UAO)
[ 2.271209] pc : meson_mmc_irq+0x100/0x218
[ 2.275265] lr : __handle_irq_event_percpu+0x5c/0x148
[ 2.280263] sp : ffff000008003e40
hashcat -b
hashcat (v4.2.1) starting in benchmark mode...
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
OpenCL Platform #1: The pocl project
====================================
steev@intercept:~/sandbox/swift/build/Ninja-ReleaseAssert/llvm-linux-aarch64 $ ninja check
[280/281] Running the LLVM regression tests
FAIL: LLVM-Unit :: Support/./SupportTests/AllocationTests/MappedMemoryTest.AllocAndRelease/3 (1853 of 21611)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/AllocationTests/MappedMemoryTest.AllocAndRelease/3' FAILED ********************
Note: Google Test filter = AllocationTests/MappedMemoryTest.AllocAndRelease/3
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from AllocationTests/MappedMemoryTest
[ RUN ] AllocationTests/MappedMemoryTest.AllocAndRelease/3
#0 0x0000000000665afc PrintStackTraceSignalHandler(void*) (/home/steev/sandbox/swift/build/Ninja-ReleaseAssert/llvm-linux-aarch64/unittests/Support/./SupportTests+0x665afc)
@steev
steev / HowToOTGFast.md
Created October 1, 2017 23:32 — forked from gbaman/HowToOTGFast.md
Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way!

###Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)
More details - http://blog.gbaman.info/?p=791

For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh in the SD card as well. By default SSH is

@steev
steev / build-gn.sh
Created October 1, 2017 23:31 — forked from mohamed/build-gn.sh
Build Google gn build tool standalone
#!/bin/bash
set -e
set -v
# Get the sources
mkdir gn-standalone
cd gn-standalone
mkdir tools
cd tools