Skip to content

Instantly share code, notes, and snippets.

Cas de Reuver casdr

Block or report user

Report or block casdr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:544fc8219ecaab9381df08ca5175dcc3
Verifying my Blockstack ID is secured with the address 1zbKJdJpVnBh4jkBwkQyQzMsMp3ZSV4Fy https://explorer.blockstack.org/address/1zbKJdJpVnBh4jkBwkQyQzMsMp3ZSV4Fy
@casdr
casdr / itslearning_dingen.py
Created Jun 4, 2017
Get itslearning grades and format them nicely
View itslearning_dingen.py
__author__ = "Cas de Reuver"
__copyright__ = "Copyright (C) 2017 BlaLabs"
__license__ = "GPLv2"
__version__ = "1.1.0"
# heeft deze 2 dingetjes nodig
# kan gwn pip install beautifulsoup4 prettytable doen
from bs4 import BeautifulSoup
from prettytable import PrettyTable
import sys
@casdr
casdr / README.md
Last active Oct 16, 2016
CloudNS to DNSmanager.cc migrator
View README.md

Migrate a CloudNS domain to DNSmanager

usage: cloudns_to_dnsmanager.py [-h] --domain DOMAIN --cloudns-id CLOUDNS_ID
                                --cloudns-pass CLOUDNS_PASS --dnsman-domain
                                DNSMAN_DOMAIN --dnsman-id DNSMAN_ID
                                --dnsman-key DNSMAN_KEY

Migrate CloudNS to DNSmanager
@casdr
casdr / keybase.md
Last active Nov 27, 2019
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am casdr on github.
  • I am cas (https://keybase.io/cas) on keybase.
  • I have a public key ASCYKWVHvcC8RMrxMXtmUcT4jLFMZ_AfXcf7og8oyUMPWQo

To claim this, I am signing this object:

View gist:f380b338d2920a060ccf
app.config(["$httpProvider", function ( $httpProvider) {
$httpProvider.defaults.headers.common.jwt = 'Test';
}]);
// or
app.run(function ($http) {
$http.defaults.headers.common.jwt = 'Test';
});
View gist:96e2def543c59e214b4c
Promise = require 'bluebird'
hasher = require 'password-hash-and-salt'
module.exports = (sequelize) ->
checkLogin: (user, password) ->
sequelize.query("SELECT * from `users` WHERE username='#{user}'", type: sequelize.QueryTypes.SELECT).then (user) ->
user = user[0]
Promise.promisifyAll(hasher(password)).verifyAgainstAsync(user.password).then (verified) ->
status: verified
user: user
View gist:f86098b992e037828362
{"history":[{"_id":"554a23a7a79f2788605a4ce7","checkid":2,"status":true,"data":[],"date":"2015-05-06T14:22:31.033Z"},{"_id":"554a23a7a79f2788605a4ce8","checkid":1,"status":true,"data":{"address":"38.68.15.60","port":80,"attempts":3,"avg":139.13152300000002,"max":141.222299,"min":136.47851,"results":[{"seq":0,"time":141.222299},{"seq":1,"time":139.69376},{"seq":2,"time":136.47851}]},"date":"2015-05-06T14:22:31.294Z"},{"_id":"554a23b0480bf1196162e09e","checkid":2,"status":true,"data":[],"date":"2015-05-06T14:22:40.851Z"},{"_id":"554a23b1480bf1196162e09f","checkid":1,"status":true,"data":{"address":"38.68.15.60","port":80,"attempts":3,"avg":140.222702,"max":143.726341,"min":134.132173,"results":[{"seq":0,"time":134.132173},{"seq":1,"time":143.726341},{"seq":2,"time":142.809592}]},"date":"2015-05-06T14:22:41.126Z"}]}
View gist:633063d9a7caf7fb70d7
root@default:~/NodeBB-NodeBB-8e7d593# npm install
npm ERR! Error: shasum check failed for /tmp/npm-697-dkVxyA4P/registry.npmjs.org/nodebb-theme-lavender/-/nodebb-theme-lavender-0.0.25-16.tgz
npm ERR! Expected: 9819eed278a69ddd0af80c5f44965477b4cfc410
npm ERR! Actual: 57a3e1badecdd876b68680a3f19554a9e74797ba
npm ERR! From: https://registry.npmjs.org/nodebb-theme-lavender/-/nodebb-theme-lavender-0.0.25-16.tgz
npm ERR! at /root/local/lib/node_modules/npm/node_modules/sha/index.js:38:8
npm ERR! at ReadStream.<anonymous> (/root/local/lib/node_modules/npm/node_modules/sha/index.js:85:7)
npm ERR! at ReadStream.emit (events.js:117:20)
npm ERR! at _stream_readable.js:929:16
npm ERR! at process._tickCallback (node.js:419:13)
@casdr
casdr / discovery
Created Jun 11, 2014
LibreNMS output
View discovery
LibreNMS 2013.dev Discovery
one.web.casdns.ga 1 linux (unix)
.......
Port Stack:
Physical Inventory :
Caching OIDs: entPhysicalEntry entAliasMappingIdentifier
Processors : hrDevice: ++++UCD Old:
Memory : hrStorage : +++
IPv4 Addresses : S+S+
You can’t perform that action at this time.