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
.HFS+\ Private\ Directory\ Data | |
/.journal | |
/.journal_info_block | |
.AppleDouble | |
/lost+found | |
.metadata_never_index | |
.com.apple.timemachine.donotpresent | |
.VolumeIcon.icns | |
/TheVolumeSettingsFolder | |
Saved\ Application\ State |
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 php | |
<?php | |
$template = [ | |
"Comment"=>"", | |
"Changes"=>[ | |
["Action"=>"#action#", | |
"ResourceRecordSet"=>[ | |
"ResourceRecords"=>[ |
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
<?php | |
echo $this->Html->script([ | |
"//rawgit.com/codemirror/CodeMirror/master/lib/codemirror.js", | |
"//rawgit.com/codemirror/CodeMirror/master/addon/hint/show-hint.js", | |
"//rawgit.com/codemirror/CodeMirror/master/addon/hint/xml-hint.js", | |
"//rawgit.com/codemirror/CodeMirror/master/addon/hint/html-hint.js", | |
"//rawgit.com/codemirror/CodeMirror/master/mode/xml/xml.js", | |
"//rawgit.com/codemirror/CodeMirror/master/mode/javascript/javascript.js", | |
"//rawgit.com/codemirror/CodeMirror/master/mode/css/css.js", | |
"//rawgit.com/codemirror/CodeMirror/master/mode/htmlmixed/htmlmixed.js", |
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
On NAT Host | |
1) enable IPv4 fowarding | |
/etc/sysctl.conf | |
2) Forward eth0 -> eth1 and vise-versa | |
-A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A FORWARD -i eth1 -o eth0 -j ACCEPT | |
3) modify nat table to masquerade ( Rewrite ip packets ) |
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
free -m | awk 'NR==2{printf "Memory Usage: %s/%sMB (%.2f%)\n", $3,$2,$3*100/$2 }' |
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
SET @sql = NULL; | |
SELECT | |
GROUP_CONCAT( | |
CONCAT( | |
'MAX(IF(cf.name =''', | |
name, | |
''',cv.field_value,NULL)) AS ', | |
'`', | |
name, |
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
'use strict'; | |
angular.module('testServices',[]) | |
.service('test',[ | |
'$http','$q', | |
function($http,$q) { | |
var testing = function(ag) { | |
console.log(ag); |
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
Another File to 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
tmux set-option -ga terminal-overrides ",xterm-256color:Tc" |
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
-- GET THE RANK BASED ON BASE CONDITIONS AND BASE SORT AND DIVIDE BY THE LIMIT ROUNDED UP TO GET PAGE NUMBER | |
select x.rank | |
from ( | |
SELECT | |
`PortalBdReportPosTransactionSummary`.id, | |
@rownum := @rownum+1 AS rank | |
FROM | |
portal_bd_report_pos_transaction_summaries AS `PortalBdReportPosTransactionSummary`, (select @rownum := 0) r | |
WHERE | |
`PortalBdReportPosTransactionSummary`.`dvrdatetime` >= '2016-06-09 00:00:00' |