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/python | |
# coding=utf-8 | |
import os | |
import sys | |
import re | |
import json | |
import subprocess | |
from moviepy.editor import VideoFileClip | |
from moviepy.video.tools.cuts import FramesMatches |
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 fcntl | |
from array import array | |
# FS constants - see /uapi/linux/fs.h in kernel source | |
# or <elixir.free-electrons.com/linux/latest/source/include/uapi/linux/fs.h> | |
FS_IOC_GETFLAGS = 0x80086601 | |
FS_IMMUTABLE_FL = 0x010 | |
with open(FILENAME) as f: |
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
/******************************************************************** | |
* | |
* iDRAC7 segfault workaround | |
* jacob@ycnrg.org | |
* | |
* Stolen from: <https://kempniu.wordpress.com/2015/04/29/idrac-virtual-console-linux-and-segfaults/> | |
* | |
* To compile: gcc -fPIC -ldl -o idrac_fix.so idrac_fix.c | |
* To use: LD_PRELOAD=./idrac_fix.so javaws viewer.jnlp | |
* |
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
diff --git a/app/models.py b/app/models.py | |
index 9aee967..9a116b8 100644 | |
--- a/app/models.py | |
+++ b/app/models.py | |
@@ -10,6 +10,7 @@ import pyotp | |
import re | |
import dns.reversename | |
+import arrow | |
from datetime import datetime |
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/lib/python2.7/site-packages/ipapython/ipautil.py 2017-02-26 02:44:32.526550796 -0500 | |
+++ /usr/lib/python2.7/site-packages/ipapython/ipautil.py 2017-02-26 02:44:56.597050635 -0500 | |
@@ -132,8 +132,8 @@ | |
Reserved or link-local addresses are never accepted. | |
""" | |
def __init__(self, addr, match_local=False, parse_netmask=True, | |
- allow_network=False, allow_loopback=False, | |
- allow_broadcast=False, allow_multicast=False): | |
+ allow_network=True, allow_loopback=False, | |
+ allow_broadcast=True, allow_multicast=False): |
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
### Keybase proof | |
I hereby claim: | |
* I am yellowcrescent on github. | |
* I am crescent (https://keybase.io/crescent) on keybase. | |
* I have a public key whose fingerprint is A96E 858A 4844 CDD2 17C5 BA6C CAAB 13B5 9DA9 9403 | |
To claim this, I am signing this object: |
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
<domain type='kvm' id='3'> | |
<name>win10</name> | |
<uuid>82049288-9126-4c14-9cb8-bb45f0525fb4</uuid> | |
<memory unit='KiB'>12582912</memory> | |
<currentMemory unit='KiB'>12582912</currentMemory> | |
<vcpu placement='static'>8</vcpu> | |
<cputune> | |
<vcpupin vcpu='0' cpuset='0'/> | |
<vcpupin vcpu='1' cpuset='1'/> | |
<vcpupin vcpu='2' cpuset='2'/> |
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
#include <avr/io.h> | |
#include <avr/cpufunc.h> | |
#define LED_PIN (1<<PD4) | |
void main() { | |
DDR |= LED_PIN; | |
PORTD |= LED_PIN; |
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
# vim: set ts=2 sw=2 expandtab syntax=yaml: | |
--- | |
- hosts: all | |
tasks: | |
- name: Configure vars (Debian) | |
set_fact: | |
paths_include: paths-debian.conf | |
when: ansible_os_family == "Debian" or ansible_os_family == "Ubuntu" | |
- name: Configure vars (EL) |
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/php | |
<?php | |
/* | |
deadBurn | |
Multi-tool for working with DeadBeef playlists | |
including burning CDs. | |
Copyright (c) 2011-2012 Jacob Hipps |