This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <mach/mach_types.h> | |
#include <sys/systm.h> | |
#include <libkern/OSMalloc.h> | |
OSMallocTag tut_mtag = (OSMallocTag)NULL; | |
kern_return_t network_filter_tutorial_start(kmod_info_t * ki, void *d); | |
kern_return_t network_filter_tutorial_stop(kmod_info_t *ki, void *d); | |
kern_return_t network_filter_tutorial_start(kmod_info_t * ki, void *d) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>CFBundleDevelopmentRegion</key> | |
<string>en</string> | |
<key>CFBundleExecutable</key> | |
<string>$(EXECUTABLE_NAME)</string> | |
<key>CFBundleIdentifier</key> | |
<string>com.aschepis.$(PRODUCT_NAME:rfc1034identifier)</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"Peter Parker", | |
"address":"1 Two Three Lane", | |
"city":"New York", | |
"state":"NY", | |
"notes":"created during a Cloud Assault load test" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.plot($("#responsePlaceholder"), responseData, | |
series: | |
shadowSize: 0, | |
color: "orange", | |
label: "Avg. Response Time (ms)" | |
,yaxis: | |
min: 0 | |
,xaxis: | |
mode: "time", | |
timeformat: "%m/%d/%y %H:%M:%S%p", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UsersAddDeviseConfirmableColumns < ActiveRecord::Migration | |
def change | |
change_table :users do |t| | |
t.confirmable | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env escript | |
-export([main/1]). | |
main([]) -> | |
{ok,[AppConfig]} = file:consult("app.config"), | |
[Http] = get_config_value(AppConfig, riak_core, http), | |
io:format("HTTP Address: ~p~n", [Http]), | |
Updated = update_config_value(AppConfig, riak_core, http, [{"0.0.0.0", 8080}]), | |
io:format("Original Values:~n~p~n", [AppConfig]), | |
io:format("Updated Values:~n~p~n", [Updated]). |