This file contains hidden or 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
desc 'temp task' | |
task :temp_task do | |
on roles(:app) do | |
execute "service iptables-persistent restart &" | |
%w{10. 11. 12. 16. 17. 20. 21. 22. 23. 24. 25. 31. 32. 50. panel.}.push('').each do |host| | |
begin | |
host = Resolv.getaddress "#{host}flyspring.net" | |
execute "iptables -A INPUT -m state --state NEW,ESTABLISHED,RELATED --source #{host} -p tcp --dport 25465 -j ACCEPT" | |
rescue Resolv::ResolvError | |
end |
This file contains hidden or 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
$scope.triggersByProject = (trigger) -> | |
# Match by hostnames in project <-> trigger's host name. | |
if $.inArray(trigger.host.name, $scope.hosts) is not -1 then yes else no | |
$scope.triggersByProject = function(trigger) { | |
if ($.inArray(trigger.host.name, $scope.hosts) === !-1) { | |
return true; | |
} else { | |
return false; | |
} |
This file contains hidden or 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
Started GET "/api/acknowledges" for 127.0.0.1 at 2015-04-03 15:03:12 +0300 | |
ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" | |
Processing by Api::AcknowledgesController#index as JSON | |
User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = 18 ORDER BY "users"."id" ASC LIMIT 1 | |
Acknowledge Load (6.3ms) SELECT "acknowledges".* FROM "acknowledges" ORDER BY "acknowledges"."created_at" DESC LIMIT 50 | |
SQL (268.3ms) SELECT `triggers`.*, `triggers`.`triggerid` AS t0_r0, `triggers`.`expression` AS t0_r1, `triggers`.`description` AS t0_r2, `triggers`.`url` AS t0_r3, `triggers`.`status` AS t0_r4, `triggers`.`value` AS t0_r5, `triggers`.`priority` AS t0_r6, `triggers`.`lastchange` AS t0_r7, `triggers`.`comments` AS t0_r8, `triggers`.`error` AS t0_r9, `triggers`.`templateid` AS t0_r10, `triggers`.`type` AS t0_r11, `triggers`.`state` AS t0_r12, `triggers`.`flags` AS t0_r13, `hosts`.`hostid` AS t1_r0, `hosts`.`proxy_hostid` AS t1_r1, `hosts`.`host` AS |
This file contains hidden or 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
Started GET "/api/acknowledges" for 127.0.0.1 at 2015-04-03 15:08:07 +0300 | |
Processing by Api::AcknowledgesController#index as JSON | |
User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = 18 ORDER BY "users"."id" ASC LIMIT 1 | |
Acknowledge Load (10.1ms) SELECT "acknowledges".* FROM "acknowledges" ORDER BY "acknowledges"."created_at" DESC LIMIT 50 | |
SQL (293.2ms) SELECT `triggers`.*, `triggers`.`triggerid` AS t0_r0, `triggers`.`expression` AS t0_r1, `triggers`.`description` AS t0_r2, `triggers`.`url` AS t0_r3, `triggers`.`status` AS t0_r4, `triggers`.`value` AS t0_r5, `triggers`.`priority` AS t0_r6, `triggers`.`lastchange` AS t0_r7, `triggers`.`comments` AS t0_r8, `triggers`.`error` AS t0_r9, `triggers`.`templateid` AS t0_r10, `triggers`.`type` AS t0_r11, `triggers`.`state` AS t0_r12, `triggers`.`flags` AS t0_r13, `hosts`.`hostid` AS t1_r0, `hosts`.`proxy_hostid` AS t1_r1, `hosts`.`host` AS t1_r2, `hosts`.`status` AS t1_r3, `hosts`.`disable_until` AS t1_r4, `hosts`.`error` AS t1_r5, `hos |
This file contains hidden or 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 | |
remote: git://github.com/moaa/websocket-rails.git | |
- revision: d5443e2b129dec23aee33b2a78265441e0c18e96 | |
+ revision: daceac9c2fdd674f2337f98f4f535feef938fc1a | |
branch: threadsocket-rails | |
specs: | |
websocket-rails (0.7.0) | |
connection_pool | |
faye-websocket | |
hiredis |
This file contains hidden or 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
root@mc-node-25:/home/minecraft/multicraft/servers/server4939# ls -la | |
total 35348 | |
drwxrwx--- 7 mc4939 mc4939 4096 Apr 6 23:00 . | |
drwx--x--x 32 root root 4096 Apr 7 17:13 .. | |
-rw-rw---- 1 mc4939 mc4939 2 Apr 7 16:25 banned-ips.json | |
-rw-rw---- 1 mc4939 mc4939 107 Apr 6 22:52 banned-ips.txt.converted | |
-rw-rw---- 1 mc4939 mc4939 2 Apr 7 16:25 banned-players.json | |
-rw-rw---- 1 mc4939 mc4939 107 Apr 6 22:52 banned-players.txt.converted | |
-rw-rw---- 1 mc4939 mc4939 2955 Apr 7 16:25 bukkit.yml | |
-rw-rw---- 1 mc4939 mc4939 623 Apr 7 16:25 commands.yml |
This file contains hidden or 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
(-> res = []; res.push val for val in (data.map (e) -> e.triggerid) when val not in res; res) | |
.forEach (triggerid) -> | |
$rootScope.$broadcast 'event:new', (data.filter (event) -> if event.triggerid is triggerid then yes else no)[-1] |
This file contains hidden or 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
root@mc-node-10:~# telnet 92.222.224.164 3306 | |
Trying 92.222.224.164... | |
Connected to 92.222.224.164. | |
Escape character is '^]'. | |
4 | |
5.1.73▒▒ | |
\3%a97J-3U3>!'ARV:^ | |
^CConnection closed by foreign host. | |
root@mc-node-10:~# traceroute 92.222.224.164 | |
traceroute to 92.222.224.164 (92.222.224.164), 30 hops max, 60 byte packets |
This file contains hidden or 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
http_port 37.187.133.176:3128 name=37.187.133.176 | |
http_port 188.165.25.157:3128 name=188.165.25.157 | |
http_port 87.98.252.100:3128 name=87.98.252.100 | |
http_port 188.165.136.221:3128 name=188.165.136.221 | |
http_port 176.31.89.84:3128 name=176.31.89.84 | |
http_port 176.31.89.85:3128 name=176.31.89.85 | |
http_port 176.31.89.86:3128 name=176.31.89.86 | |
http_port 176.31.89.87:3128 name=176.31.89.87 | |
http_port 188.165.139.23:3128 name=188.165.139.23 | |
http_port 188.165.137.198:3128 name=188.165.137.198 |
This file contains hidden or 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 config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
OlderNewer