Skip to content

Instantly share code, notes, and snippets.

View tonylambiris's full-sized avatar

Tony Lambiris tonylambiris

  • Boston, MA
View GitHub Profile
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 / 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})
@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 / 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 / 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 / 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 / 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