Skip to content

Instantly share code, notes, and snippets.

View alexanderhenne's full-sized avatar

Alexander Henne alexanderhenne

  • Sweden
  • 20:46 (UTC +01:00)
View GitHub Profile
@alexanderhenne
alexanderhenne / OSCelestialCrack.java
Created August 24, 2016 20:46
Obtains the IP and port a stub of the RAT OSCelestial is configured to use
import sun.misc.BASE64Decoder;
import java.io.*;
public class OSCelestialCrack {
public String[] ips;
public String port;
public String id;
@alexanderhenne
alexanderhenne / animated-clock.pde
Created February 28, 2017 17:33
Klockanimation i Processing
void setup() {
size(500, 500);
smooth(8);
generateRandomBgColors();
}
// Cirkelns radie
// Konstant värde
int radius = 200;
@alexanderhenne
alexanderhenne / snake-game.pde
Created March 13, 2017 19:11
Snake i Processing
void setup() {
// 600 = 15 * 40
size(600, 600);
APPLE_SPRITE = loadImage("http://i.imgur.com/aN2AQDy.png");
}
PImage APPLE_SPRITE;
int SNAKE_PART_SIZE = 15;
int SNAKE_PART_PADDING = 1;
import java.util.*;
void setup() {
size(800, 600);
}
static final int OVAL_COUNT = 30;
static final int START_OPACITY = 255;
static final long SPAWN_DELAY = 250;
import java.util.*;
int INSTRUCTION_TEXT_DURATION = 3500; //ms
int MAX_SPHERE_COUNT = 20;
int MIN_INITIAL_VELOCITY = 2;
int MAX_INITIAL_VELOCITY = 6;
int VELOCITY_REDUCTION_INTERVAL = 500; //ms
float VELOCITY_REDUCTION_FACTOR = 0.8;
import java.util.*;
long startTime;
void setup() {
size(800, 600);
colorMode(HSB, 100);
startTime = System.currentTimeMillis();
}
use std::str::FromStr;
use std::net::TcpStream;
use std::io::BufReader;
use std::io::BufRead;
use std::io::BufWriter;
use std::io::Write;
const SERVER_ADDRESS: &'static str = "127.0.0.1:3214";
@alexanderhenne
alexanderhenne / AppletFX.java
Last active June 14, 2017 19:46
Simplifies creating and coordinating JFXPanels
/*
* Copyright 2017, UniquePassive <https://github.com/uniquepassive>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@alexanderhenne
alexanderhenne / amplifi_3.3.0_dns_adblock_list
Created March 22, 2020 20:47
A list of the hosts that are blocked when using the DNS ad blocking feature of the Amplifi HD 3.3.0 firmware (https://help.amplifi.com/hc/en-us/articles/231456348-Firmware-Release-Notes)
.adfox.me
.hits.ss.com
.delfiadlv.hit.gemius.pl
.adbox.lv
.103092804.com
.1st-fuss.com
.247media.com
.247realmedia.com
.2mdn.net
.360yield.com