Skip to content

Instantly share code, notes, and snippets.

Dimitris Zervas dzervas

View GitHub Profile
@dzervas
dzervas / millproject
Created Jun 2, 2020
CNC 3018Pro pcb2gcode settings
View millproject
# WARNING: Please lower max Z speed to 30mm/s and max XY speeds to 50mm/s.
# Tinker more, maybe it needs to go slower!
# Pcb2GCode settings
metric=true
metricoutput=true
zero-start=true
zsafe=4
zchange=5
milling-overlap=10%
@dzervas
dzervas / enumer.js
Created May 22, 2020
Frida Scripts
View enumer.js
// Enumerates all Java classes & methods in a nice way
var enumer = {};
enumer.exclude = [ "size" ];
filter = filter || function(obj, prop) { return true; };
enumer.enumer = function(filter) {
return {
onMatch: function(obj) {
@dzervas
dzervas / brutemfu.lua
Created Nov 18, 2019
Proxmark3 Mifare Ultralight pin bruteforce
View brutemfu.lua
local getopt = require('getopt')
local utils = require('utils')
local function main(args)
key = 0x00000000
byte = 0x04
data = 0x00000000
for o, a in getopt.getopt(args, 'k:b:d:') do
if o == 'k' then key = tonumber(a, 16) end
@dzervas
dzervas / efood_pinata.py
Created Sep 3, 2019
E-Food.gr pinata discount calculator
View efood_pinata.py
#!/usr/bin/env python3
import sys
# Usage: python efood_pinata.py 5 5 5 3
items = sys.argv[1:]
total = 0
discountp = 0
for i in items:
total += float(i)
View Dockerfile
FROM alpine
MAINTAINER Dimitris Zervas <dzervas@dzervas.gr>
RUN apk add --update --no-cache bash curl gnupg && mkdir /caddy
RUN curl https://getcaddy.com | bash -s personal
WORKDIR /caddy
EXPOSE 80 443 2015
VOLUME [ "/caddy" ]
@dzervas
dzervas / ncat
Last active Apr 13, 2019
Help Message Regex Parsers - test @regex101.com
View ncat
\s+(?:-([a-zA-Z0-9])(?:\s[\w,.<>\[\]]+)?)?,?\s+(?:--([a-z-]+)(?:\s[\w,.<>\[\]:]+)?)?\s+([A-Z][\w \(\)\/,.<>'-;\"]+)
@dzervas
dzervas / inet-share.sh
Last active Oct 29, 2018
RasPi Scripts
View inet-share.sh
#!/bin/sh
sudo sysctl -w net.ipv4.conf.usb0.forwarding=1
sudo iptables -t nat -A POSTROUTING -o $1 -j MASQUERADE
@dzervas
dzervas / keybase.md
Last active Aug 29, 2015
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am dzervas on github.
  • I am dzervas (https://keybase.io/dzervas) on keybase.
  • I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( ); }

To claim this, I am signing this object:

You can’t perform that action at this time.