Skip to content

Instantly share code, notes, and snippets.

View imsoftware's full-sized avatar

imsoftware imsoftware

View GitHub Profile
@imsoftware
imsoftware / sqlfindduplicates.sql
Created April 24, 2019 20:45
sql find duplicates
SELECT tablename.colname
FROM tablename
INNER JOIN (
SELECT colname
FROM tablename
GROUP BY colname
HAVING COUNT(db_pid) > 1
)
dup ON tablename.colname = dup.colname
@imsoftware
imsoftware / .a_readme.md
Last active January 18, 2017 01:35 — forked from jaltek/.a_readme.md

uberspace, maildrop & MySQL

A simple maildrop sender filter with MySQL backend

This is a simple maildrop filter which filters incoming messages by the sender address and move it to the corresponding folder. E-Mail address and destination folder are both defined in a MySQL table.

This example is used in an uberspace environment.

Step 1: Create MySQL table

For convenience we use the already existing database corresponding to your uberspace account (e.g. your uberspace username is melanie there will be already a database called melanie.

@imsoftware
imsoftware / primenumbers008.java
Last active December 25, 2015 23:59
List prime numbers with processing
// List prime numbers with processing 2
// Quick n dirty solution. Not for production.
// By: http://mariusmüller.de
void setup() {
float number = 0; // standard input
int count = 100; // count until 100
boolean ISPRIME = true; // 1=true (is prime); 0=false (not)