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
PULSE_VERSION="$(pkg-config libpulse --modversion)" | |
PACKAGE_DIR="$(mktemp -d)" | |
SRC_DIR="$(mktemp -d)" | |
if [[ "x${PULSE_VERSION}x" == "x11.1x" ]]; then | |
git clone --depth=1 --branch=pulseaudio_v11.x https://github.com/EHfive/pulseaudio-modules-bt.git "${SRC_DIR}" | |
else | |
git clone --depth=1 https://github.com/EHfive/pulseaudio-modules-bt.git "${SRC_DIR}" | |
fi |
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 | |
# find all supermicro Java iKVM Viewer windows and resize | |
# them to display all the content | |
# | |
# for reasons that are beyond sanity, this shitty closed source program | |
# sets the min and max window sizes to the same values, making it unresizable | |
# through dragging. | |
# this wouldn't be so bad if it actually resized the window to display all | |
# the content. it constantly resizes based on the resolution of the |
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
""" | |
This file contains code that, when run on Python 2.7.5 or earlier, creates | |
a string that should not exist: u'\Udeadbeef'. That's a single "character" | |
that's illegal in Python because it's outside the valid Unicode range. | |
It then uses it to crash various things in the Python standard library and | |
corrupt a database. | |
On Python 3... well, this file is full of syntax errors on Python 3. But | |
if you were to change the print statements and byte literals and stuff: |
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
import OCC.gp as gp | |
import OCC.BRepPrimAPI as brep | |
import OCC.BRepAlgoAPI as brep_alg | |
import OCC.Utils.DataExchange.IGES as iges | |
import OCC.Utils.DataExchange.STEP as step | |
import OCC.Display.SimpleGui as gui | |
objs = [] | |
for x in [0, 21]: | |
ax = gp.gp_Ax2(gp.gp_Pnt(x,0,0), gp.gp_Dir(0,1,0)) |