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
| public IEnumerable<IDashboardInspectionStats> GetTotalsForLastFourQuarters() | |
| { | |
| DateTime today = DateTime.Today; | |
| DateTime[] dates = {new DateTime(today.Year,1,1), | |
| new DateTime(today.Year,1,4), | |
| new DateTime(today.Year,1,7), | |
| new DateTime(today.Year,1,10)}; | |
| int index = dates.Length-1; | |
| for(int i = index; i >= 0;i--) |
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
| while(1) { | |
| addr_len = sizeof(their_addr); | |
| numbytes = recvfrom(sockfd, | |
| buf, | |
| MAXBUFLEN-1, | |
| 0, | |
| (struct sockaddr *)&their_addr, | |
| &addr_len); | |
| if(numbytes == -1) { | |
| //perror("recvfrom"); |
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
| var express = require('express'); | |
| var https = require('https'); | |
| var mongoose = require('mongoose'); | |
| var MongoStore = require('connect-mongo')(express); | |
| var hbs = require('hbs'); | |
| var tickbite = require('./tickbite'); | |
| var PORT = 3000; | |
| function initapp() |
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
| exports.bugs = function bugs(req,res,next) | |
| { | |
| var id = req.params.id; | |
| if(id === undefined) { //If there is no id show the bugs page | |
| models.Bug.find({}) | |
| .populate('active') | |
| .exec(function(err,bugs) { | |
| if(err) { | |
| console.log(err); | |
| console.log("Issue getting bugs"); |
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
| exports.authenticate = function(req,res,next) | |
| { | |
| var unsecureUrls = ['/','/login','/register'] | |
| for(var i = 0;i < unsecureUrls.length;i++) | |
| if(req.path == unsecureUrls[i]) { | |
| return next(); | |
| } | |
| if(req.session.user) { |
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
| Hello | |
| At team meetings we hear about things going on in the Hub and the people who work in and associated with dot.rural. We've had quite | |
| +a few people start since last summer so we'd like you to talk about yourself so people know who you are, what you're doing in the | |
| +Hub and a bit more about you. | |
| Therefore, we'd like you to prepare 5 slides (less is OK) with less than 25 words on each slide (no words and just pictures is | |
| +fine), the slides should be flat with no animation/transitions involved and you'll have up to 5 minutes. We'd like you to talk | |
| +about: |
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
| Do average people really need this kind of security? Yes. They may be planning | |
| a political campaign, discussing taxes, or having an illicit affair. They may | |
| be designing a new product, discussing a marketing strategy, or planning a | |
| hostile business takeover. Or they may be living in a country that does not | |
| respect the rights of privacy of its citizens. They may be doing something that | |
| they feel shouldn't be illegal, but is. For whatever reason, the data and | |
| communications are personal, private, and no one else's business. | |
| -- Bruce Schneier |
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
| #!/usr/bin/env bash | |
| while true | |
| do | |
| FILE="msg.file11211" | |
| nc -l 4000 > $FILE | |
| say -f $FILE | |
| #terminal-notifier -title "`cat $FILE`" -message= "" | |
| terminal-notifier -message " " -title "`cat $FILE`" | |
| echo `cat $FILE` |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA06C980U2Ei9c73m3pLC0L78O1jGIdbS46UmC7TXd7nE/sZLpW8tOB4ztCp5uasFOc7T+gWA4nKLbdm2KicIE1MdR5D00tFH3wEsjP1D3nei+VEYo6AFnOPnANuecar3G8QVjuQH/G1FZV1AJaz7dyX1v0EUmQ6dTjGUx1cwgFYQkFkV1rx03EXZoJjvQ2NNDvXaGeyNFdA4+LoI+GnX71qXm+PVgyE7DZWU0jQKWAKxJzezy+iyVAl/80zGeTwajb+cY79Bx4Noqjpz6vzKV906Wlg23R1A8TO5k0Te412Aw3dxAQgxeUJnzFP072dDmqAhoky1w/ZNgA0Fxg6ldSw== tom@dhcp-207-152.erg.abdn.ac.uk |
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
| [jones@eris.home] $ eval $(gpg-agent -daemon) | |
| gpg-agent[77393]: invalid option "-daemon" | |
| [jones@eris.home] $ eval $(gpg-agent --daemon) | |
| gpg-agent[77395]: a gpg-agent is already running - not starting a new one | |
| [jones@eris.home] $ mutt | |
| Using GPGME backend, although no gpg-agent is running | |
| Press any key to continue... |