Skip to content

Instantly share code, notes, and snippets.

View tonylambiris's full-sized avatar

Tony Lambiris tonylambiris

  • Boston, MA
View GitHub Profile
@tonylambiris
tonylambiris / output.txt
Last active March 3, 2016 10:39
dd under osx
Per the instructions at https://wiki.archlinux.org/index.php/USB_flash_installation_media#In_Mac_OS_X
Doesn't work with El Capitan:
$ sudo dd if=archlinux-2016.03.01-dual.iso of=/dev/rdisk2 bs=1m
dd: invalid number: ‘1m’
Works with El Capitan:
$ sudo dd if=archlinux-2016.03.01-dual.iso of=/dev/rdisk2 bs=1M
709+0 records in
709+0 records out
@tonylambiris
tonylambiris / instructions.txt
Created March 3, 2016 21:24
set noatime on root OSX partition
### drop the contents below to /Library/LaunchDaemons/com.apple.noatime.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apple.noatime</string>
<key>ProgramArguments</key>
<array>
@tonylambiris
tonylambiris / guestbook-service.json
Created March 7, 2016 17:00
kuberenetes guestbook service
{
"kind":"Service",
"apiVersion":"v1",
"metadata":{
"name":"guestbook",
"namespace": "default",
"labels":{
"app":"guestbook"
}
},
@tonylambiris
tonylambiris / guestbook-controller.json
Created March 7, 2016 17:02
kuberenetes guestbook controller
{
"kind":"ReplicationController",
"apiVersion":"v1",
"metadata":{
"name":"guestbook",
"namespace": "default",
"labels":{
"app":"guestbook"
}
},
@tonylambiris
tonylambiris / PKGBUILD
Last active March 20, 2017 00:07
conky-lua PKGBUILD fixes for lua5.1
# Maintainer: TidestManager1 < michaelpulliam1 (at) gmail (dot) com >
pkgname=conky-lua
_pkgname=conky
pkgver=1.10.1
pkgrel=7
pkgdesc='Lightweight system monitor for X, with Lua support enabled'
url='http://github.com/brndnmtthws/conky'
license=('BSD' 'GPL3')
arch=('i686' 'x86_64')
options=('!emptydirs')
@tonylambiris
tonylambiris / cmake.patch
Last active March 20, 2017 00:07
Patch for conky-lua
--- conky-1.10.1/cmake/ConkyPlatformChecks.cmake.orig 2016-07-04 17:48:16.093454814 -0400
+++ conky-1.10.1/cmake/ConkyPlatformChecks.cmake 2016-07-04 17:48:57.536173441 -0400
@@ -249,7 +249,7 @@
endif(X11_FOUND)
endif(BUILD_X11)
-pkg_search_module(LUA REQUIRED lua=5.1 lua5.1 lua-5.1)
+pkg_search_module(LUA REQUIRED lua5.1 lua-5.1 lua51 lua>=5.1)
set(conky_libs ${conky_libs} ${LUA_LIBRARIES})
set(conky_includes ${conky_includes} ${LUA_INCLUDE_DIRS})
Description: Conditionalize SSLv3 support for OpenSSL
Author: Markus Wanner <markus@bluegap.ch>
Forwarded: no
--- a/include/asio/ssl/old/detail/openssl_context_service.hpp
+++ b/include/asio/ssl/old/detail/openssl_context_service.hpp
@@ -84,6 +84,13 @@
impl = ::SSL_CTX_new(::SSLv2_server_method());
break;
#endif // defined(OPENSSL_NO_SSL2)
@tonylambiris
tonylambiris / PKGBUILD
Last active October 1, 2016 21:30
PKGBUILD fix for **ImportError: No module named 'razer'**
# Maintainer: Gabriele Musco <emaildigabry@gmail.com>
# Upstream URL: https://github.com/terrycain/razer_drivers
pkgname=python-razer
pkgver=1.0.13
pkgrel=1
pkgdesc="A python library for controlling razer-daemon"
arch=('any')
url="https://github.com/terrycain/razer_drivers"
license=('GPLv3')
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
pkgname="bcwc-pcie-dkms"
pkgver=0r229.48f9854
pkgrel=1
pkgdesc="Reverse engineered Linux driver for the Broadcom 1570 PCIe webcam."
arch=('x86_64')
url="https://github.com/patjak/bcwc_pcie"
license=('unknown')
depends=('kmod' 'bcwc-pcie-firmware' 'dkms' 'linux-headers')
diff --git a/fthd_drv.h b/fthd_drv.h
index 06b9ef9..21c5f74 100644
--- a/fthd_drv.h
+++ b/fthd_drv.h
@@ -118,7 +118,9 @@ struct fthd_private {
struct vb2_queue vb2_queue;
struct mutex vb2_queue_lock;
struct list_head buffer_queue;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
struct vb2_alloc_ctx *alloc_ctx;