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
function inspect(obj) { | |
for (prop in obj) { | |
console.log(typeof(obj[prop]) + " - " + prop + ": " + obj[prop]); | |
if ((typeof(obj[prop]) == 'object') && (obj[prop] != null)) { | |
inspect(obj[prop]); | |
} | |
} | |
} |
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
so in process its semantically different behind the scenes | |
from how windows does it but its syntactically equivalent | |
as you can see from the email. all you have to do is set | |
up the macros correctly, its great. | |
Check out this link | |
http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Code-Gen-Options.html#Code-Gen-Options | |
and follow the two links it provides they are good resources. | |
your an oam |
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
svn log | grep -E "r[0-9]+ \| [a-z]+ \|" | awk '{print $3}' | sort | uniq |
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
Need to get a listing of the triggers that exist in your database. Use the following: | |
mysql> show triggers; | |
Show triggers method sometimes doesn't show all of the triggers for some reason so you might want to access the triggers directly via the following: | |
mysql> select trigger_schema, trigger_name, action_statement from information_schema.triggers | |
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
select t.category as type, t.date_submitted as time, t.last_updated as changetime, p.name as component, t.severity as severity, t.priority as priority, o.username as owner, u.username as reporter, '' as cc, '' as url, t.version as version, 'Pending' as milestone, t.status as status, t.resolution as resolution, t.summary as summary, HEX(tt.description) as decription, '' as keywords from mantis_bug_table as t INNER JOIN mantis_user_table as u ON u.id = t.reporter_id LEFT JOIN mantis_project_table as p ON p.id = t.project_id LEFT JOIN mantis_user_table as o ON o.id = t.handler_id LEFT JOIN mantis_bug_text_table as tt ON tt.id = t.bug_text_id INTO OUTFILE '/tmp/mantistestshit3.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n'; |
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
I found the below bits after doing some research on ProxyCommand at http://blog.chmouel.com/2009/02/08/proxycommand-ssh-bastion-proxy/ | |
It becomes very useful when you are using a bastion server as well as useful in many other ways. | |
Host mygw | |
HostName bastion.server.host.name | |
ProxyCommand none | |
# ControlMaster auto | |
# ControlPath ~/.ssh/master-%r@%h:%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
git filter-branch --commit-filter ' | |
if [ "$GIT_COMMITTER_NAME" = "convert-repo" ] || [ "$GIT_COMMITTER_NAME" = "some_other_name" ]; | |
then | |
GIT_COMMITTER_NAME="Some Name Here"; | |
GIT_AUTHOR_NAME="Some Name Here"; | |
GIT_COMMITTER_EMAIL="<[email protected]>"; | |
GIT_AUTHOR_EMAIL="<[email protected]>"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; |
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 ruby | |
require 'date' | |
d = Date.today | |
puts d.cweek() |
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>Label</key> | |
<string>memcached</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/memcached</string> | |
<string>-l</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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 0px; padding: 0px } | |
#map_canvas { height: 100% } | |
</style> | |
<script type="text/javascript" |
OlderNewer