Skip to content

Instantly share code, notes, and snippets.

View Hultner's full-sized avatar
📯
What are you trying to shell?

Alexander Hultnér Hultner

📯
What are you trying to shell?
View GitHub Profile
; Main.s12
; Operatörstyrd borrautomat
; Definitioner
USE Labdefs.s12
ORG $1000
main:
; --- Initiera borrmaskinen
;
@Hultner
Hultner / redoctober.html
Created October 3, 2014 14:09
Röd Oktober
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="15">
<title>Röd Oktober</title>
<style>
body{
background-color: #000;
}
CREATE OR REPLACE FUNCTION public.sms(f_to text, f_from text, f_message text, f_route text)
RETURNS text
AS
$BODY$
import urllib
import urllib2
import ctypes
url = "http://server2.msgtoolbox.com/api/current/send/message.php"
v_username = 'api_account'
v_password = 'api_pass'
#include <stdlib.h>
#include "queue.h"
/* Implementera interface från queue.h här */
struct qelementstruct {
struct qelementstruct *next, *prev;
int prio;
DATA *data;
};
// Filen queue.h
// Makrot DATA skall ange typen fšr sŒdana data som skall lŠggas i kšn.
// Det bšr ha definierats av anvŠndaren, annars sŠtts det hŠr till void.
#ifndef DATA
#define DATA void
#endif
#ifndef QUEUE_H
#define QUEUE_H
#ifndef DATA
#define DATA void
#endif
#ifndef QUEUE_H
#define QUEUE_H
struct qstruct;
struct qiteratorstruct;
@Hultner
Hultner / gist:cbbd5cc72b1d9d86ed57
Created June 17, 2015 12:59
Set up a VM using PS
# This script configures the Hyper-V machines used for the 50331 Course.
# PowerShell 3.0 and Windows Server 2012 or Windows 8 Pro are required to perform this setup.
# The C:\ Drive should have at least 200GB of free space available.
# All the files on the 50331 Student CD should be copied to C:\Labfiles before performing this setup.
# Variables
$CLI1 = "50331-CUSTOM-CLI" # Name of VM running Client Operating System
$SRV1 = "50331-CUSTOM-SRV" # Name of VM running Server Operating System
$CRAM = 2GB # RAM assigned to Client Operating System
$SRAM = 1GB # RAM assigned to Server Operating System
# 1st list adapter implementation
$scope.firstListAdapter = remain: true
$scope.updateList1 = ->
$scope.firstListAdapter.applyUpdates (item, scope) ->
item.content += ' *'
$scope.removeFromList1 = ->
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hultner
Hultner / fr.md
Created February 26, 2016 14:09
Markdown page

Förtorenderådet


Information rådande bokningssituationen

Förtroenderådets webbtjänster inklusive lokalbokning är för närvarande nere p.g.a. förändingar i CSB:s system. Vi jobbar på en tillfällig lösning för bokning via CSB:s webbplats.

Bokningar som gjorts innan systemet gick ned förtsätter gälla.

Vid ytterligare frågor kontakta Företorenderådet via fr@fortroenderadet.se