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 __future__ import print_function | |
import numpy as np | |
import scipy.linalg | |
from scipy.odr import * | |
import matplotlib as mpl | |
from mpl_toolkits.mplot3d import Axes3D | |
from matplotlib import pyplot as plt | |
import sys | |
import time |
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
qpdf --qdf --object-streams=disable $1 $1.tmp # uncompress /FlateDecode sections | |
perl -pe 's/(?<=\/T \()(.*?)(?=\))/ "x" x length($1) /e' $1.tmp > $1.tmp2 # remove /T commands containing author name in comments | |
qpdf --compress-streams=y $1.tmp2 $1.tmp3 # recompress streams | |
qpdf --empty --pages $1.tmp3 1-z -- $1.anonymous.pdf # remove document metadata (this also removes whole comments) | |
rm $1.tmp* # cleanup |
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 tensorflow as tf | |
import numpy as np | |
class PbModelExecutor: | |
def __init__(self, model_path, input_shape, input_name='input', output_name='output:0'): | |
self.session = tf.Session() | |
self.input = tf.placeholder(tf.float32, shape=input_shape) |
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/sh /etc/rc.common | |
# This is a procd initscript, so put it in /etc/init.d/ | |
START=79 # Important: this number must be lower than the START number in /etc/init.d/mountd !!! | |
USE_PROCD=1 | |
PROGNAME="/usr/bin/ntfs-3g" | |
# Fill these values as desired |
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 python3 | |
import encodings | |
import pkgutil | |
bytes_to_decode = b"\xc4\x9b" | |
codecs = [] | |
for importer, modname, ispkg in pkgutil.iter_modules(encodings.__path__): | |
try: |
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
SOCKSPort 9050 | |
SOCKSPolicy accept 127.0.0.1/32 | |
SOCKSPolicy accept 192.168.18.0/24 | |
SOCKSPolicy accept6 FC00::/7 | |
SOCKSPolicy reject * | |
Log notice syslog | |
RunAsDaemon 1 | |
DataDirectory /srv/tor | |
AvoidDiskWrites 1 | |
ORPort 9001 |
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 -Nru @161/etc/config/resolver @/etc/config/resolver | |
--- @161/etc/config/resolver 2017-10-01 21:01:14.375423242 +0200 | |
+++ @/etc/config/resolver 2017-11-02 01:13:47.862130135 +0100 | |
@@ -21,6 +21,7 @@ | |
option log_stderr '1' | |
option log_stdout '1' | |
option forks '1' | |
+ option include_config '/etc/kresd/config.conf' | |
config resolver 'unbound' |
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
######################################### | |
# DO NOT REPORT ANY BUGS FROM DARKTABLE INSTALLED THIS WAY. | |
# | |
# This is an unofficial compilation & installation guide. | |
# Darktable developers explicitly say that they don't support Windows ANY way and won't fix ANY bugs on Windows. | |
# Please, respect their decision and do not bother them with Windows bugreports. | |
# | |
# If you find a bug, please verify it on a regular Linux/Mac system or inside a virtual machine. | |
# | |
# There is a chance an official Windows build will appear. Just subscribe to https://github.com/darktable-org/darktable/pull/1327 to be informed. |
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 python | |
#-*- coding: utf-8 -*- | |
import sys, os | |
import re | |
try: bibtexdb = open(sys.argv[1]).read() | |
except: print "Error: specify the file to be processed!" | |
if not os.path.isfile('journalList.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
// Author: Martin Pecka ( martin.pecka@cvut.cz ) | |
// License: BSD | |
#ifndef DEM_GENERATION_SLOW_TOPIC_DIAG_UPDATE_H | |
#define DEM_GENERATION_SLOW_TOPIC_DIAG_UPDATE_H | |
#define private public | |
#include <diagnostic_updater/update_functions.h> | |
#undef private |