Skip to content

Instantly share code, notes, and snippets.

View clemensg's full-sized avatar

Clemens Gruber clemensg

  • Austria
  • 10:41 (UTC +01:00)
View GitHub Profile
@clemensg
clemensg / nvidia-linux-3.10.patch
Last active April 9, 2017 20:44
NVIDIA driver patch for Linux kernels 3.10 (Tested with 325.08), Usage: sudo sh NVIDIA-Linux-x86_64-325.08.run -x; cd NVIDIA-Linux-x86_64-325.08 && patch -p1 < nvidia-linux-3.10.patch
--- NVIDIA-Linux-x86_64-325.08.orig/kernel/nv-i2c.c 2013-04-26 00:22:30.000000000 -0400
+++ NVIDIA-Linux-x86_64-325.08/kernel/nv-i2c.c 2013-05-13 05:20:55.571981365 -0400
@@ -311,8 +311,6 @@
BOOL NV_API_CALL nv_i2c_del_adapter(nv_state_t *nv, void *data)
{
struct i2c_adapter *pI2cAdapter = (struct i2c_adapter *)data;
- int osstatus = 0;
- BOOL wasReleased = FALSE;
#if defined(KERNEL_2_4)
@clemensg
clemensg / curl_ftp_debugbuild.log
Last active December 19, 2015 18:48
curl -o testfile --disable-eprt -P - --user user:pw ftp://192.168.0.127/file.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
FTP 0x7ffd1300dcf0 (line 3261) state change from STOP to WAIT220
FTP 0x7ffd1300dcf0 (line 846) state change from WAIT220 to USER
FTP 0x7ffd1300dcf0 (line 2636) state change from USER to PASS
FTP 0x7ffd1300dcf0 (line 858) state change from PASS to PWD
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Entry path is '/dd'
FTP 0x7ffd1300dcf0 (line 2953) state change from PWD to STOP
@clemensg
clemensg / curl_ftp_debugbuild_2.log
Last active December 19, 2015 18:48
curl -o testfile --disable-eprt -P - --user user:pw ftp://192.168.0.127/file.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
FTP 0x7fd90a8058f0 (line 3267) state change from STOP to WAIT220
FTP 0x7fd90a8058f0 (line 846) state change from WAIT220 to USER
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
FTP 0x7fd90a8058f0 (line 2642) state change from USER to PASS
FTP 0x7fd90a8058f0 (line 858) state change from PASS to PWD
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Entry path is '/dd'
@clemensg
clemensg / curl_ftp_3.log
Created July 17, 2013 16:13
curl -o testfile --disable-eprt -P - --user usr:pw ftp://192.168.0.133/testfile
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
FTP 0x7f8a110058f0 (line 3271) state change from STOP to WAIT220
FTP 0x7f8a110058f0 (line 848) state change from WAIT220 to USER
FTP 0x7f8a110058f0 (line 2646) state change from USER to PASS
FTP 0x7f8a110058f0 (line 860) state change from PASS to PWD
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Entry path is '/dd'
FTP 0x7f8a110058f0 (line 2963) state change from PWD to STOP
@clemensg
clemensg / usr_include_content.txt
Last active December 20, 2015 03:09
tree -L 2 /usr/include on OS X 10.9 Mavericks DP4
/usr/include
├── AssertMacros.h
├── Availability.h
├── AvailabilityInternal.h
├── AvailabilityMacros.h
├── Block.h
├── CommonCrypto
│   ├── CommonCrypto.h
│   ├── CommonCryptor.h
│   ├── CommonDigest.h
@clemensg
clemensg / gist:6079961
Created July 25, 2013 14:02
Homebrew Mavericks DP4, reordered and changed comments
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index b86bc8f..259d53a 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -40,12 +40,12 @@ module MacOS extend self
end
def dev_tools_path
- @dev_tools_path ||= if tools_in_prefix? CLT::STANDALONE_PKG_PATH
- # In 10.9 the CLT moved from /usr into /Library/Developer/CommandLineTools.
@clemensg
clemensg / libmemcached.rb
Last active December 21, 2015 15:49
Mavericks guessing game
require 'formula'
class Libmemcached < Formula
homepage 'http://libmemcached.org'
url 'https://launchpad.net/libmemcached/1.0/1.0.17/+download/libmemcached-1.0.17.tar.gz'
sha1 '1023bc8c738b1f5b8ea2cd16d709ec6b47c3efa8'
depends_on 'memcached'
# Disable superenv
@clemensg
clemensg / etc_make.conf
Last active June 1, 2020 21:37
My FreeBSD make.conf
# /etc/make.conf
# Clemens Gruber, 2017
#
# Nearby mirror
#MASTER_SITE_OVERRIDE="ftp://ftp.at.freebsd.org/pub/FreeBSD/ports/distfiles/"
#MASTER_SITE_OVERRIDE="ftp://ftp.de.freebsd.org/pub/FreeBSD/ports/distfiles/"
# Build
MAKE_JOBS_NUMBER?=8
@clemensg
clemensg / boot_loader.conf
Created February 5, 2014 16:44
My FreeBSD /boot/loader.conf
# /boot/loader.conf
# Clemens Gruber, 2014
#
autoboot_delay="5"
# Intel AES-NI Hardware Crypto
aesni_load="YES"
# Intel CPU Temp
@clemensg
clemensg / etc_sysctl.conf
Created February 5, 2014 16:50
My FreeBSD /etc/sysctl.conf
# /etc/sysctl.conf
# Clemens Gruber, 2014
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
security.bsd.see_other_uids=0
## I/O