Skip to content

Instantly share code, notes, and snippets.

Ritesh-Nadhanis-iMac:~ riteshn$ dig www.rangee.la
; <<>> DiG 9.6.0-APPLE-P2 <<>> www.rangee.la
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55559
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.rangee.la. IN A
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
ubuntu@ip-10-161-46-55:~$ sudo mount -a
mount: wrong fs type, bad option, bad superblock on /dev/xvdh,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
ubuntu@ip-10-161-46-55:~$ sudo fdisk -l
Disk /dev/xvda1: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders, total 16777216 sectors
import org.tinyradius.packet.AccessRequest
import org.tinyradius.packet.AccountingRequest
import org.tinyradius.packet.RadiusPacket
import org.tinyradius.util._
object FrenchDate {
def main(args: Array[String]) {
val rc = new RadiusClient("127.0.0.1", "testing123")
if (rc.authenticate("testing", "password"))
println("connected")
<script type="text/javascript">
var queueBytesLoaded = 0;
var queueBytesTotal = 0;
var myQueue = null;
var queueChangeHandler = function(queue){
// alert('Uploading Started');
myQueue = queue;
// console.log("COLLECTION CHANGE!");
var list = document.getElementById('file_todo_list');
@psykidellic
psykidellic / Android-CommandLine
Created May 22, 2012 18:05
Steps to do Android on command line
I always forget the steps and I have to look up the original blog post:
http://www.aplusbi.com/?p=164
android list target #shows you all the ones that have SDK installed
android list avd #We have already created a devices
#create a new avd from target
android create avd --target 2 --name ginger
pgPool.query(loginQuery) { rs =>
while (rs.next()) {
val id = rs.getInt(1)
....
}
}
let g:jekyll_post_template = [
\ '---',
\ 'layout: post',
\ 'published: false',
\ 'title: "JEKYLL_TITLE"',
\ 'date: "JEKYLL_DATE"',
\ '---',
\ '']
<I HAD EXTRA LINE UP HERE IN THE END>
require 'formula'
class Newsbeuter < Formula
homepage 'http://newsbeuter.org/'
url 'http://newsbeuter.org/downloads/newsbeuter-2.5.tar.gz'
md5 'bb8cd3f2a3693de4c16be28c869a1f75'
depends_on 'libstfl'
depends_on 'sqlite'
depends_on 'json-c'
On xx Mr. Foo wrote:
> This is first point
><cursor moves here>
> This is second point.
><cursor moves here>
> This is third point
><cursor moves here>
> Foo