Skip to content

Instantly share code, notes, and snippets.

View sitedyno's full-sized avatar
💭
Very unhappy with the new feed.

sitedyno

💭
Very unhappy with the new feed.
View GitHub Profile
<?php
class Bcrypt {
/**
* Standard DES encryption method
*
* @const STD_DES
*/
candybar@cb-udvm ~
$ cat /usr/lib/pkgconfig/ncurses.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
major_version=5
version=5.9.20110404
Name: ncurses
$ sudo cat logs/testy1_1343895916.log
Logging started
Jack set Krad Mixer Sample Rate to 44100
krad linker handler! CREATE_LINK
Audio encoding thread starting
UDP Output thread starting
***ERROR! FAILURE!
inet_pton() failed
@sitedyno
sitedyno / gist:3445020
Created August 24, 2012 02:59
Python 3 compat for cakephp-docs
diff --git a/config/all.py b/config/all.py
index 791207a..d55b44a 100644
--- a/config/all.py
+++ b/config/all.py
@@ -28,8 +28,8 @@ source_suffix = '.rst'
master_doc = 'contents'
# General information about the project.
-project = u'Cookbook'
-copyright = u'2012, Cake Software Foundation, Inc'
@sitedyno
sitedyno / IpDbGenerateBinary.php
Created September 16, 2012 23:53
ipcat experiment
#!/usr/bin/env php
<?php
$csv = file_get_contents('https://raw.github.com/client9/ipcat/master/datacenters.csv');
$rows = explode("\n", $csv);
foreach ($rows as $row) {
if (strlen($row) === 0 || $row[0] === '#') {
continue;
}
$parts = explode(',', $row);
Generated at Tue Sep 18 14:36:16 -0400 2012
Errno::ENOENT: No such file or directory - /var/lib/gems/1.8/gems/chef-10.14.2/distro/debian/etc/default/chef-solr
/tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:203:in `read'
/tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:203:in `from_file'
/tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:202:in `each'
/tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:202:in `from_file'
/usr/lib/ruby/vendor_ruby/chef/cookbook_version.rb:558:in `load_recipe'
/usr/lib/ruby/vendor_ruby/chef/mixin/language_include_recipe.rb:46:in `load_recipe'
/usr/lib/ruby/vendor_ruby/chef/mixin/language_include_recipe.rb:33:in `include_recipe'
/usr/lib/ruby/vendor_ruby/chef/mixin/language_include_recipe.rb:27:in `each'
@sitedyno
sitedyno / gist:3790027
Created September 26, 2012 19:27
Problem linking against vorbisenc in cygwin.
$ ./configure
checking for c++ compiler ... OK
checking for compile with PortAudio ... OK
checking for link with PortAudio ... OK
checking for fltk-config ... OK
checking for compile with fltk ... OK
checking for fltk has FL_GTK_UP_BOX ... OK
checking for link with fltk ... OK
checking for compile with libvorbis ... OK
checking for link with libvorbis ... FAILED
c:/mingw/bin/mingw32-make -C src
check for ../config.mk ...
ok.
mingw32-make[1]: Entering directory 'C:/MinGW/msys/1.0/home/candybar/opus-transmitter/src'
g++ -o butt FLTK/Fl_ILM216.o FLTK/Fl_Native_File_Chooser.o FLTK/fl_callbacks.o FLTK/fl_funcs.o FLTK/flgui.o butt.o cfg.o icecast.o opus_encode.o parseconfig.o port_audio.o ringbuffer.o shoutcast.o sockfuncs.o strfuncs.o timer.o util.o wav_header.o -g -L/usr/local/lib `` -lpthread -lportaudio -mwindows /mingw/lib/libfltk_images.a /mingw/lib/libfltk_png.a /mingw/lib/libfltk_z.a /mingw/lib/libfltk_jpeg.a /mingw/lib/libfltk.a -lole32 -luuid -lcomctl32 -logg -lopus
shoutcast.o: In function `Z14sc_update_songv':
C:\MinGW\msys\1.0\home\candybar\opus-transmitter\src/shoutcast.cpp:239: undefined reference to `closesocket@4'
shoutcast.o: In function `Z13sc_disconnectv':
C:\MinGW\msys\1.0\home\candybar\opus-transmitter\src/shoutcast.cpp:247: undefined reference to `closesocket@4'
shoutcast.o: In function `Z10sc_connectv':
candybar@cb-l ~/krad/radio [master]
$ ./waf distclean && ./waf configure
'distclean' finished successfully (0.033s)
Setting top to : /home/candybar/krad/radio
Setting out to : /home/candybar/krad/radio/.waf_build_directory
Linux detected :D
Checking for 'gcc' (c compiler) : /usr/bin/gcc
Checking for 'g++' (c++ compiler) : /usr/bin/g++
Checking for library m : yes
Checking for library dl : yes
Logging started
Krad Radio Version 12
Jack set Krad Mixer Sample Rate to 44100
mixer want to plug Output to system:playback
jack want to plug shcc:Output_Left to system:playback_1
jack want to plug shcc:Output_Right to system:playback_2
Krad Web Starting Up on port 13000
krad linker handler! LIST_DECKLINK
***ERROR!: krad_decklink_detect_devices: The DeckLink drivers may not be installed.