View gist:d6d3bcd68f2d843ba612796283c616f1
> dig +trace +additional
# Root servers' results omitted
singtel.com. 172800 IN NS dnssec2.singnet.com.sg.
singtel.com. 172800 IN NS dnssec1.singnet.com.sg.
singtel.com. 172800 IN NS dnssec3.singnet.com.sg.
CK0POJMG874LJREF7EFN8430QVIT8BSM.com. 86400 IN NSEC3 1 1 0 - CK0Q1GIN43N1ARRC9OSM6QPQR81H5M9A NS SOA RRSIG DNSKEY NSEC3PARAM
CK0POJMG874LJREF7EFN8430QVIT8BSM.com. 86400 IN RRSIG NSEC3 8 2 86400 20170829044611 20170822033611 5528 com. fMS/MrwqmolNcat3BRaR2n4J6AWBXOB0JlPMZO6VbGVpSPHnWkJsX5ZL Nvyfu74g4kRly2Q2rqUHCO/sLrc2yviJVYPB0QFEMeaBDto7hKIVNvkh EiBN1TKrkzesBFLWse8n/+LvrmeW6ROtAMQ+LcfNYN3Utss9bqBmXgpB gPg=
OTF03HQV9N4L4M7OADG915MQBJ3RJDP5.com. 86400 IN NSEC3 1 1 0 - OTF1DMP586NMDP2JQM6RRE7P039RSSK2 NS DS RRSIG
View PKGBUILD
pkgname=singularity
pkgver=2.3.1.r23.gdddb21f4
pkgrel=1
pkgdesc="Application containers for Linux"
arch=('i686' 'x86_64')
license=('BSD')
url="https://github.com/singularityware/singularity"
depends=('python')
source=('git+https://github.com/singularityware/singularity')
makedepdends=('git')
View user_reg.apib
# Registration
Short passwords will be rejected:
```
PUT /users/bullno1
> Content-Type: application/json
> Accept: application/json
{"password": "short"}
< 400
View give-me-ssd.py
#!/usr/bin/env python
import sys, httplib, urllib, hashlib, random, json
# Relevant JS code:
#
# return e = "52297d8e78ff8aed",
# t = CryptoJS.SHA256(Math.random().toString().substr(2, 5)).toString(),
# n = "//fastestgameonearth-com.herokuapp.com",
# $.ajax({
View sql_utils.erl
-module(sql_utils).
-behaviour(gen_server).
-export([init/1, handle_call/3, handle_cast/2,
handle_info/2, terminate/2, code_change/3]).
-export([start_link/1, connect/4, prepare/1, query/3,
dirty/1, transaction/1, installed_schema_updates/0,
available_schema_updates/0, update_schema/0,
prepare_core_statements/0]).
-export_type([statement_group/0, statement_declaration/0]).
View pnc.erl
-module(pnc).
-export([combinations/2, permutations/2]).
combinations(0, _Elements) -> [[]];
combinations(_Size, []) -> [];
combinations(Size, [Elem | Elements]) ->
[[Elem | Combination] || Combination <- combinations(Size - 1, Elements)]
++ combinations(Size, Elements).
permutations(0, _Elements) -> [[]];
View gist:9089349
erl -pa ebin/ -pa test/ -noshell -s pgsql_tests run_tests -s init stop
pgsql_tests: all_test_ (connect_test(pgsql))...*failed*
in function pgsql_tests:connect_only/2 (test/pgsql_tests.erl, line 760)
**error:{badmatch,{error,invalid_authorization_specification}}
pgsql_tests: all_test_ (connect_with_ssl_test(pgsql))...*failed*
in function pgsql_tests:'-connect_with_ssl_test/1-fun-1-'/2 (test/pgsql_tests.erl, line 79)
in call from pgsql_tests:with_connection/4 (test/pgsql_tests.erl, line 774)
**error:{badmatch,{error,{error,error,<<"42883">>,
View gist:9002397
<html>
<head>
</head>
<body>
<script>
var start = "<script>";
var end = "</script>";
document.write(start + "alert('hi')" + end);
</script>
</body>
View schema.js
number = function(x) { return getType(x) == 'number'; }
string = function(x) { return getType(x) == 'string'; }
//combinators
function or() {
var len = arguments.length;
var args = arguments;
return function(x) {
for(var i = 0; i < len; ++i) {
if(validate(args[i], x)) return true;//satisfy at least one condition
View main.cpp
#include <iostream>
template<typename Scalar>
class DualNumber
{
public:
inline DualNumber(const Scalar& realPart, const Scalar& dualPart = Scalar())
:mReal(realPart)
,mDual(dualPart)
{