Skip to content

Instantly share code, notes, and snippets.

View pulsar256's full-sized avatar

Paul Rogalinski-Pinter pulsar256

  • 4.screen
  • Munich
  • 22:43 (UTC +02:00)
View GitHub Profile
@pulsar256
pulsar256 / wifiProbeRequestSniffer.js
Last active February 6, 2018 20:22
wifi probe request monitoring in node.js
var pcap=require('pcap');
pcap.createSession("mon0", '(type mgt) and (type mgt subtype probe-req )').
on('packet', function (raw_packet) {
with(pcap.decode.packet(raw_packet).link.ieee802_11Frame)
if (type == 0 && subType == 4)
console.log("Probe request",shost, "-> ",bssid);
}
);
@pulsar256
pulsar256 / keybase.md
Created February 9, 2017 19:26
keybase.md

Keybase proof

I hereby claim:

  • I am pulsar256 on github.
  • I am pulsar256 (https://keybase.io/pulsar256) on keybase.
  • I have a public key ASDoiWMJgPQ0Y8iCyufEQAOE60AbS-o2TW2kM_rXafkYCQo

To claim this, I am signing this object:

$fn=200;
module tube(h, d, wall){
difference(){
cylinder(h=h, d=d);
translate([0,0,-1]) cylinder(h=h+2, d=d-wall);
}
}
module body(interlock, height, wall, od){
@pulsar256
pulsar256 / templated.java
Created October 11, 2016 16:16
Templated Links for spring-hateoas workaround
import org.apache.commons.lang.StringUtils;
import org.springframework.core.DefaultParameterNameDiscoverer;
import org.springframework.hateoas.Link;
import org.springframework.hateoas.UriTemplate;
import org.springframework.hateoas.mvc.ControllerLinkBuilder;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.util.UriComponentsBuilder;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
module pusteblume(radius=10, nupsies=40){
rotate_extrude(convexity=10) translate([radius, 0, 0]) circle(r=1, $fn=50);
for(i=[0:(360/nupsies):360-(360/nupsies)]) {
rotate([0,0,i]) translate([radius-2.2,0,0]) rotate([0,90,0]) cylinder(h=2,d1=0.5,d2=1.8,$fn=25);
}
}
difference() {
cylinder(h=2,d=8,$fn=100);
translate([0,0,-1]) cylinder(h=4,d=3.2,$fn=100);
@pulsar256
pulsar256 / wirejig.scad
Created May 10, 2016 18:19
Heatbed Round Wire Jig
$fn=100;
markerRadius=1;
circle(r = markerRadius);
quadrant();
mirror([1,0]) quadrant();
mirror([0,1]) quadrant();
mirror([1,0]) mirror([0,1]) quadrant();
@pulsar256
pulsar256 / bassreflexadapter.scad
Created April 30, 2016 22:42
Bassreflex Adapter vom Sacha
$fn=200;
rotate_extrude()
translate([-22.5,0,0]) union() {
translate([0,-10,0]) square([7,10]);
translate([6.5,-3.5,0]) rotate([0,0,45]) square([5,5]);
intersection() {
circle(10, center=true);
square(20);
};
};
@pulsar256
pulsar256 / stm32f0_synth_case.scad
Last active April 30, 2016 10:58
semi-parametric 3d printed case for a 50x50 PCB
$fn=100;
// Enclosure for
// http://blog.kehribar.me/build/2015/12/06/polyphonic-fm-synthesizer-with-stm32f031.html
case(drawPart=0); // 0=box, 1=lid, 2==both
module case (
wall=1.5, // wall thickness
@pulsar256
pulsar256 / vibration_tester.ino
Created July 11, 2015 11:13
Vibration Tester
#include "U8glib.h"
#include <Wire.h>
#define TWI_FREQ 400000L
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);
const int MPU=0x68; // I2C address of the MPU-6050
int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;
@pulsar256
pulsar256 / render_scale.py
Created February 8, 2015 22:43
render_scale.py - Inkscape 0.91 compatible version
#!/usr/bin/env python
# coding=utf-8
'''
Copyright (C)
2009 Sascha Poczihoski, sascha@junktech.de
original author
2013 Roger Jeurissen, roger@acfd-consultancy.nl
dangling labels and inside/outside scale features