I hereby claim:
- I am curzonj on github.
- I am curzonj (https://keybase.io/curzonj) on keybase.
- I have a public key whose fingerprint is 6628 B50D 9CDB 70D6 C97C 2328 AFCC C2EF 073E 1F88
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Simple script that exports a users "Saved For Later" list out of Feedly | |
// as a JSON string. | |
// | |
// This was intended for use in the Google Chrome's "Inspector" tool so your | |
// mileage may vary if used in other contexts. | |
// | |
// Format of JSON is as follows: | |
// [ | |
// { | |
// title: "Title", |
name = 'date_received' | |
model = Sample | |
input_name = 'bob' | |
plural = model.to_s.pluralize | |
controller = (Object.const_get("#{plural}Controller") || ApplicationController).new | |
controller.params = {} | |
helper = Object.const_get("#{plural}Helper") |
for file in *.pdf; do | |
if [ -f "$file" ]; then | |
pdfimages -j "$file" image_extraction | |
fi | |
done |
diff --git a/lib/icalendar/component.rb b/lib/icalendar/component.rb | |
index a2d7bc3..2fb8f02 100644 | |
--- a/lib/icalendar/component.rb | |
+++ b/lib/icalendar/component.rb | |
@@ -427,11 +427,11 @@ module Icalendar | |
public | |
def respond_to?(method_name) | |
- unless method_name.to_s.downcase =~ /x_.*/ | |
+ if method_name.to_s.downcase =~ /x_.*/ |
check process mongrel-5000 with pidfile /usr/local/nextgen/current/tmp/pids/mongrel.5000.pid | |
start program = "/bin/su -c '/bin/rm -f /usr/local/nextgen/current/tmp/pids/mongrel.5000.pid && /usr/bin/ruby /usr/bin/mongrel_rails start -d -e production -p 5000 -a 127.0.0.1 -P /usr/local/nextgen/current/tmp/pids/mongrel.5000.pid -c /usr/local/nextgen/current' nextgen" | |
stop program = "/bin/su -c '/usr/bin/ruby /usr/bin/mongrel_rails stop -P /usr/local/nextgen/current/tmp/pids/mongrel.5000.pid && ([ ! -f /usr/local/nextgen/current/tmp/pids/mongrel.5000.pid ] || (kill -9 `/usr/local/nextgen/current/tmp/pids/mongrel.5000.pid` && /bin/rm -f /usr/local/nextgen/current/tmp/pids/mongrel.5000.pid))' nextgen" | |
if totalmem is greater than 80.0 MB for 5 cycles then restart # eating up memory? | |
if cpu is greater than 50% for 2 cycles then alert # send an email to admin | |
if cpu is greater than 80% for 3 cycles then restart # hung process? | |
if loadavg(5min) greater tha |
# gem install dm-fluiddb-adapter | |
require 'dm-core' | |
require 'memcached' | |
CACHE = Memcached.new 'localhost:11211', :prefix_key => 'fluiddb-test:' | |
DataMapper.setup(:default, "fluiddb://test:test@sandbox.fluidinfo.com/test") | |
class MyModel | |
include DataMapper::Resource |
#!/usr/bin/ruby | |
# == Usage | |
# | |
# This script reads a sorted list of words from standard input: | |
# | |
# cat words | ./word_pairs.rb | |
# | |
# To benchmark the code and save it's output to a file use: | |
# | |
# time (cat words | ./word_pairs.rb > word_matches) |
diff --git a/gc.c b/gc.c | |
index 39071e7..06c384a 100644 | |
--- a/gc.c | |
+++ b/gc.c | |
@@ -22,8 +22,16 @@ | |
#include <setjmp.h> | |
#include <sys/types.h> | |
+#ifdef _WIN32 | |
+#include <string.h> |
<<< POWERSHELL.exe run from CMD.exe >>> | |
PS C:\Users\targetmig> get-itemproperty -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup | |
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup | |
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14 | |
PSChildName : Setup | |
PSProvider : Microsoft.PowerShell.Core\Registry | |
Required machine-level settings. : 1 | |
Services : C:\Program Files\Microsoft\Exchange Server\V14 | |
NewestBuild : 10218 |