Skip to content

Instantly share code, notes, and snippets.

View algorythm's full-sized avatar
💭
Stuff and things

Anders Wiberg Olsen algorythm

💭
Stuff and things
View GitHub Profile
@algorythm
algorythm / weapons.json
Created January 10, 2018 15:51
CPH Industries API - Test Json Objects
[
{
"id": 1,
"name": "Bob's Gun",
"ip": "127.0.0.1",
"mac": "aa:bb:cc:00:11:22",
"firemode": "single",
"connectionStrength": 2,
"batteryLevel": 37,
"model": "AK-47",
@algorythm
algorythm / Setup Secure Linux.md
Last active May 1, 2019 20:22
Configure New Raspberry Pi

Configuring a secure Linux Server (i.e. Raspberry Pi)

This guide will configure a simple secured linux server. In this example, I will configure a raspberry pi.

Prepare SD Card from Mac OS X

This section is for preparing an SD card with Raspbian from a Mac. Start by opening a terminal. Start by downloading the latest version of raspbian:

curl -O -J -L https://downloads.raspberrypi.org/raspbian_lite_latest
// Search in constant time
public static void WibergSearch(int[] list)
{
if (list.Length > 10000) return;
const int MaxTime = 1000000000;
var watch = Stopwatch.StartNew();
for (var i = 0; i <= list.Length - 2; i++)
{
for (var j = 0; j <= list.Length - 2; j++)
{
importér djava.util.*; //djava = dansk java
importér djava.kollektioner.*;
klasse Dyr {
privat Streng navn;
privat heltal alder;
privat dobbelt højde;
privat statisk heltal antalDyr = 0;