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
FROM python:3.8 | |
RUN apt-get update \ | |
&& apt-get install -yq wget unzip | |
RUN wget -nc https://github.com/Imposter/otool/archive/vu.zip -O /tmp/otool-vu.zip \ | |
&& cd / \ | |
&& unzip /tmp/otool-vu.zip \ | |
&& pip3 install -r otool-vu/requirements.txt |
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
#!/usr/bin/env make | |
# As per CoreOS/ContainerLinux suggestion | |
# https://coreos.com/os/docs/latest/booting-with-pxe.html#adding-a-custom-oem | |
ifndef VLAN | |
$(error VLAN is not set) | |
endif | |
all: oem.cpio.gz | |
@gzip --stdout --decompress oem.cpio.gz | cpio -it | |
@mv oem.cpio.gz ${VLAN}.cpio.gz |
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
name: The Lord of the Rings - Battle for Middle-Earth II | |
game_slug: lord-of-the-rings-battle-for-middle-earth-ii | |
version: DVD + Fan Patch + HD Mod | |
slug: wine-bfme2-hd | |
runner: wine | |
script: | |
files: | |
- patch109: | |
filename: "BFME2 PatchSwitcher Setup.exe" |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "Foreman (params in:body)", | |
"description": "\n<p>Foreman API v2 is currently the default API version.</p>\n", | |
"version": "v2", | |
"x-copyright": "" | |
}, | |
"basePath": "/api", | |
"consumes": [ |
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
# Example rule based on a keyboard being added/removed (In this case for a Corsair K70 keyboard) | |
# Note that the keyboard attaches as two keyboards + led controller | |
# Try to get the add/remove events down to one each by clearly defining the | |
# rules. As the ddcutil call can take time even if only checking the current | |
# output port. | |
KERNEL=="event1", ACTION=="add|remove", SUBSYSTEM=="input", ATTRS{idVendor}== "1b1c", ATTRS{idProduct}=="1b09", RUN+="/etc/libvirt/hooks/switch_displays.sh" |
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 | |
set -e | |
if [[ -n "$(docker ps -qaf 'name=spotify')" ]]; then | |
docker restart spotify | |
else | |
USER_UID=$(id -u) | |
USER_GID=$(id -g) | |
xhost "si:localuser:${USER}" |
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
# Python port of https://gist.github.com/ApocDev/7d43dfccd00269670de7 | |
class JavaRandom(): | |
def __init__(self, seed): | |
self.seed = (seed ^ 0x5DEECE66D) & ((1<<48) - 1) | |
def NextInt(self): | |
return self.Next(32) | |
def NextDouble(self): | |
return ((self.Next(26) << 27) + self.Next(27))/(1<<53) | |
def Next(self, bits): |
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
FROM debian:jessie | |
MAINTAINER Lennart Weller <lhw@ring0.de> | |
ENV TS3_VERSION 3.0.19.1 | |
ENV SINUS_VERSION 0.9.8 | |
RUN apt-get update && \ | |
apt-get install -y xinit xvfb libxcursor1 ca-certificates bzip2 curl libglib2.0-0 python libav-tools && \ | |
rm -r /var/lib/apt/lists/* |
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
[Version] | |
Signature=$CHICAGO$ | |
[DefaultInstall] | |
AddReg=Group39, Disable_win8_3FVHScrolling_AddReg, UltraNav_Disable_win8_4FVHScrolling_AddReg, AdjustStickMethodAndSpeedFactor_AddReg, DisableIntPDFeature_DefaultOff_AddReg, PseudoSuspend_HotKey_V1, DisableKBCQueryCommand_AddReg, Set_3P2BCP_Feature_AddReg | |
[PseudoSuspend_HotKey_V1] | |
HKLM,System\CurrentControlSet\Services\SynTP\Parameters,KBCNotifyConfig,0x00010001,0x00000003 | |
HKLM,System\CurrentControlSet\Services\SynTP\Parameters,PseudoSuspendConfig,0x00010001,1 |
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
/* | |
Dice coefficient for string similarity on natural text | |
Playground: http://play.golang.org/p/JFUjcpBb66 | |
*/ | |
package dicecoefficient | |
import "strings" | |
import "unicode" |
NewerOlder