Skip to content

Instantly share code, notes, and snippets.

<section id="references">
<h1>References</h1>
<!--
Feel a little dirty about my usage of the <br /> tag here, however
I would argue that the content is very "address" like, there for making
its usage justified. :-)
-->
<!-- DCU -->
<article>
#include<stdio.h>
#include<stdlib.h>
#include <sys/types.h>
#include <dirent.h>
int main(void) {
char *curr_dir = NULL;
DIR *dp = NULL;
struct dirent *dptr = NULL;
unsigned int count = 0;
@imduffy15
imduffy15 / OS.md
Last active December 17, 2015 11:49

Operating Systems 2012 Paper.

Question 1

Part A

Part 1

Linux Kernel Diagram

@imduffy15
imduffy15 / CA212.md
Last active December 17, 2015 14:49

2012

Question 1

Part A

#include <iostream>

using namespace std;
#include <iostream>
using namespace std;
class Shape {
protected:
float area;
float perimeter;
public:
virtual void display();
#!/bin/sh
SSH_PUBLIC_KEY='insert_your_ssh_public_key_here'
function add_ssh_public_key() {
cd
mkdir -p .ssh
chmod 700 .ssh
echo "$SSH_PUBLIC_KEY" >> .ssh/authorized_keys
chmod 600 .ssh/authorized_keys

Ldap Install notes

Install packages:

yum -y install openldap openldap-clients openldap-servers

generate password hash for admin

slappasswd insert hash into /etc/openldap/slapd.d/cn=config/olcDatabase={2}bdb.ldif with attribute olcRootPW

var steps_prevVal = 1.0;
var steps_prevprevVal = 1.0;
var steps_peakLow = 0;
var steps_peakHigh = 0;
var steps_samplesSinceHighPeak = 0;
var steps_samplesSinceLowPeak = 0;
var steps = 0;
var peakMinSamplesBetween = 15;
var highLowPeakDiff = .2;
var form = cloudStack.dialog.createForm({
context: context,
noDialog: true,
form: {
title: '',
fields: args.manuallyInputtedAccountInformation
}
});
$wizard.click(function(event) {
; <<>> DiG 9.7.3 <<>> @ns1.dynadot.com m.quew.me
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25381
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;m.quew.me. IN A