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
[mirkk:~] $ traceroute -m 100 216.81.59.173 | |
traceroute to 216.81.59.173 (216.81.59.173), 100 hops max, 60 byte packets | |
1 109-74-4-25-static.serverhotell.net (109.74.4.25) 0.077 ms 0.015 ms 0.013 ms | |
2 46-21-96-150-static.serverhotell.net (46.21.96.150) 0.274 ms 0.282 ms 0.309 ms | |
3 gige-g2-1.core1.sto1.he.net (192.121.80.162) 8.888 ms 8.942 ms 9.005 ms | |
4 10gigabitethernet3-2.core1.ams1.he.net (72.52.92.45) 31.939 ms 31.984 ms 32.155 ms | |
5 10gigabitethernet2-1.core1.par2.he.net (184.105.213.102) 49.281 ms 49.543 ms 49.627 ms | |
6 10gigabitethernet7-1.core1.ash1.he.net (184.105.213.93) 120.835 ms 119.909 ms 131.410 ms | |
7 10gigabitethernet1-2.core1.atl1.he.net (184.105.213.110) 133.239 ms 133.063 ms 133.252 ms | |
8 216.66.0.26 (216.66.0.26) 133.134 ms 132.190 ms 132.220 ms |
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
public static void loller(Kossa lol) { | |
lol = new Kossa("muu"); | |
} | |
public static void main(String[] args) { | |
Kossa hehu = new Kossa("moo"); | |
System.out.println(hehu); | |
loller(hehu); | |
System.out.println(hehu); |
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
public static SendsDownloads Get_AssetUsage( string assetId ) { | |
using( DAMReaderDataContext db = new DAMReaderDataContext() ) { | |
var downloadEntities = db.DownloadAssets | |
.Where( da => da.AssetId == assetId ) | |
.Select( da => da.Download ) | |
.Where( d => d.DownloadStatus == "SUCCESSFUL" && d.SendReceiverId == null ); | |
var sendReceiverEntities = db.SendAssets | |
.Where( sa => sa.AssetId == assetId ) |
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
#!/bin/sh | |
EXTIF="eth1" | |
#route add -net 192.168.1.0/24 dev eth1 | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
iptables -F; iptables -t nat -F; iptables -t mangle -F | |
iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE | |
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT |
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
$paddle = $this->request->post('paddle'); | |
// ... | |
if( $bid >= $object['reserve_price'] ) | |
{ | |
$paddle = db::select('*') | |
->from('paddles') | |
->where('paddle_nr', '=', (int) $paddle) | |
->where('auction_id', '=', $object['auction_id']) |
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
$ nodejs Main.js /srv/local.uppsalaauktion.se/applica | |
on/config/node.json | |
2013-03-20 13:43:57.595> Main() | |
2013-03-20 13:43:57.867> DataFactory.Init() | |
2013-03-20 13:43:57.888> Connected to database | |
2013-03-20 13:43:57.957> HttpManager.Init() | |
2013-03-20 13:43:57.963> Initializing HTTP Server | |
2013-03-20 13:43:57.968> UserManager.Init() | |
2013-03-20 13:43:57.969> SocketManager.Init() | |
2013-03-20 13:43:58.245> UserManager.AddUser() |
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
2013-03-22 18:45:46.251> UserManager.AddUser() | |
{ socket_id: 'bJHn2kqfFUu-ka-FJJIS', protocol: 'websocket' } | |
2013-03-22 18:45:46.486> Verifying incoming connection | |
{ headers: | |
{ host: 'local.uppsalaauktion.se:8181', | |
'user-agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Fir | |
efox/19.0', | |
accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', | |
'accept-language': 'en-US,en;q=0.5', | |
'accept-encoding': 'gzip, deflate', |
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 perl | |
# Hailo requires Perl 5.10 | |
use v5.10; | |
use strict; | |
use feature "switch"; | |
use Any::Moose; | |
use Hailo; | |
# Setup brain from first argument | |
my $hailo = Hailo->new(brain => $ARGV[0]); |
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
application/classes/controller/admin/auctions.php | 814 +-- | |
application/classes/controller/admin/currencyboard.php | 1 | |
application/classes/controller/admin/currentobject.php | 1 | |
application/classes/controller/admin/liveauction.php | 844 +-- | |
application/classes/controller/admin/nextbid.php | 1 | |
application/classes/controller/auction.php | 78 | |
application/classes/controller/cron.php | 252 + | |
application/classes/controller/kcms/archivesearch.php | 2 | |
application/classes/controller/kcms/auctions.php | 99 | |
application/classes/controller/kcms/index.php | 139 |
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.ProjectId as 'TitleId', t.ProjectName as 'Title', t.FranchiseId as 'FranchiseId', t.LabelId as 'LabelId', | |
m.Id as 'milestoneTemplateId', m.MilestoneName as 'MilestoneTemplate', | |
mm.Id as 'MilestoneId', m2.MilestoneName | |
from campaigntracker.eumarketing_milestones m | |
cross join campaigntracker.eumarketing_projects t | |
left outer join campaigntracker.eumarketing_milestonemetadata mm on m.Id = mm.MilestoneId and t.ProjectId = mm.ProjectId | |
left outer join campaigntracker.eumarketing_milestones m2 on mm.MilestoneId = m2.Id | |
where m.ParentId is null | |
and t.ProjectId = coalesce(@titleid, t.ProjectId) | |
and coalesce(t.FranchiseId, -1) = coalesce(@franchiseId, coalesce(t.FranchiseId, -1)) |