Skip to content

Instantly share code, notes, and snippets.

@veprbl
veprbl / topdrawer_OSX_fix.patch
Last active August 29, 2015 14:14
Topdrawer OSX compilation fix
diff --git a/Imakefile b/Imakefile
index 8c61951..6e0f945 100644
--- a/Imakefile
+++ b/Imakefile
@@ -18,7 +18,7 @@ AllTarget($(PROGRAM))
$(PROGRAM)::
$(FC) $(LDOPT) -o $(PROGRAM) src/td.o td.a misc.a \
- $(UGS) $(LDPRELIB) $(XTOOLLIB) $(XLIB)
+ $(UGS) $(LDPRELIB) $(XTOOLLIB) $(XLIB) -L/opt/X11/lib
diff -rupN nlojet++-4.1.3-orig/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h nlojet++-4.1.3/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h
--- nlojet++-4.1.3-orig/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h 2010-05-11 11:06:00.000000000 -0400
+++ nlojet++-4.1.3/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h 2014-08-23 03:22:51.000000000 -0400
@@ -26,8 +26,11 @@
namespace nlo {
// Spacializations
+ template<>
class lorentzvector<std::complex<float> >;
+ template<>
VME_A16 = 0x1
VME_A24 = 0x2
VME_A32 = 0x4
VME_A64 = 0x8
VME_CRCSR = 0x10
VME_SUPER = 0x1000
VME_USER = 0x2000
VME_PROG = 0x4000
VME_DATA = 0x8000
VME_SCT = 0x1
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#define VME_A32 0x4
#define VME_D32 0x4
#define VME_USER 0x2000
@veprbl
veprbl / condormon.py
Last active March 21, 2016 23:05
Online status pages for monitoring htcondor jobs
#!/usr/bin/python2
import time
import math
import threading
import htcondor
coll = htcondor.Collector("condor02.rcf.bnl.gov:9664")
schedd_list = coll.locateAll(htcondor.DaemonTypes.Schedd)
@veprbl
veprbl / DefaultKeyBinding.dict
Created June 28, 2016 06:36
Library/KeyBindings/DefaultKeyBinding.dict
{
/* insert Unicode character with Option key down*/
"~a" = ("insertText:", "\U03B1"); /* greek alpha α */
"~b" = ("insertText:", "\U03B2");
"~g" = ("insertText:", "\U03B3");
"~m" = ("insertText:", "\U03BC");
"~," = ("insertText:", "\U03BD");
"~r" = ("insertText:", "\U03C1");
"~x" = ("insertText:", "\U03BE");
"~s" = ("insertText:", "\U03C3");
--- a/Lib/distutils/cygwinccompiler.py
+++ b/Lib/distutils/cygwinccompiler.py
@@ -117,8 +117,10 @@
# dllwrap 2.10.90 is buggy
if self.ld_version >= "2.10.90":
self.linker_dll = "gcc"
+ self.linker_dll_cxx = "g++"
else:
self.linker_dll = "dllwrap"
+ self.linker_dll_cxx = "dllwrap"
@veprbl
veprbl / pkgs.nix
Created December 14, 2017 18:29
texlive-2017 pkgs.nix with hashes
This file has been truncated, but you can view the full file.
tl: { # no indentation
"12many" = {
stripPrefix = 0;
sha512.run = "06c8c1fff8b025f6f55f8629af6e41a6dd695e13bbdfe8b78b678e9cb0cfa509826355f4ece20d8a99b49bcee3c5931b8d766f0fc3dae0d6a645303d487600b0";
sha512.doc = "884caef2a2131e1de1a1ef9663f9bce7a520ce7842eb55d905d64e65656e07de7865a4d182ee39782e8a2c1897d394367e93d74b26bc0f9bd8721e6e6e891ee0";
sha512.source = "8c1304f8443942302ae7b072e6b47d8933312c202ccc967eb7d2aabd6bf1ade337ba44569229ffdc6360667b697a2ed5c328354c4af41e484f71e6b9f7123433";
hasRunfiles = true;
version = "0.3";
};
"2up" = {
; This file holds the information on root name servers needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache . <file>"
; configuration file of BIND domain name servers).
;
; This file is made available by InterNIC
; under anonymous FTP as
; file /domain/named.cache
; on server FTP.INTERNIC.NET
; -OR- RS.INTERNIC.NET
diff -aru a/freetds-1.00.109/ChangeLog b/freetds-1.00.110/ChangeLog
--- a/freetds-1.00.109/ChangeLog 2018-11-27 04:00:49.000000000 -0500
+++ b/freetds-1.00.110/ChangeLog 2019-01-05 04:00:48.000000000 -0500
@@ -1,4 +1,12 @@
Author: Frediano Ziglio <[email protected]>
+Date: Fri Jan 4 08:59:35 2019 +0000
+
+ tds: Allows to connect to servers not implementing @@spid
+
+ Some embedded server does not support this variable, detect