Skip to content

Instantly share code, notes, and snippets.

View alicommit-malp's full-sized avatar
💭
I may be slow to respond.

Ali Alp alicommit-malp

💭
I may be slow to respond.
View GitHub Profile
@alicommit-malp
alicommit-malp / XGH - de-de.txt
Last active July 1, 2025 15:27 — forked from banaslee/XGH - de-de.txt
eXtreme Go-Horse Process
eXtreme Go Horse (XGH) Process
Quelle: http://gohorseprocess.wordpress.com
Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f
1. Ich denke, also ist es nicht XGH.
In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller.
2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller.
@alicommit-malp
alicommit-malp / TaskCancellationExtension.cs
Last active April 16, 2019 11:47
An easy way to cancel any type of Tasks after a timeout
public static class TaskCancellationExtension
{
/// <summary>
/// add cancellation functionality to Task T
/// </summary>
/// <param name="task"></param>
/// <param name="cancellationToken"></param>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
/// <exception cref="OperationCanceledException"></exception>
@alicommit-malp
alicommit-malp / PrefManager.java
Created April 11, 2019 13:49
A Generic java class to set and get values from and to the Android's default shared preferences
/**
* A Generic class to set and get values from and to the default shared preferences
* @param <T>
*/
public class PrefManager<T> {
private Context context;
public PrefManager(Context context) {
if(context==null) throw new IllegalArgumentException("Context can not be null");
@alicommit-malp
alicommit-malp / dnsLeakTester.sh
Created February 11, 2019 13:31
DNS leak test script
#!/bin/sh │info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
dns1=$(nslookup -q=A whoami.akamai.net | grep "Address" |grep -v "#" |grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") │ Request finished in 0.458ms 200 text/css
dns2=$(nslookup -q=A resolver.dnscrypt.org | grep "Address" |grep -v "#" |grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") │info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
dns3=$(nslookup -q=A whoami.ultradns.net | grep "Address" |grep -v "#" |grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}") │ Sending file. Request path: '/css/alertify.css'. Physical path:
curl http://ipinfo.io/$dns1/country │ '/home/king/RiderProjects/KoPlatform.VoiceApi.WebRtc/wwwroot/css/ale
curl http
@alicommit-malp
alicommit-malp / MainDomainExtractor.txt
Last active February 11, 2019 09:31
Main Domain Extractor
using System;
using System.Text.RegularExpressions;
public class Program
{
public static string Extensions =".NGO|.ONG|.OOO|.XYZ|.aaa|.abb|.ac|.academy|.accountant|.ad|.adult|.ae|.aeg|.aero|.af|.afl|.africa|.ag|.agency|.ai|.aig|.airtel|.al|.alsace|.am|.amsterdam|.an|.ao|.apartments|.app|.aq|.ar|.archi|.arpa|.art|.as|.asia|.associates|.at|.au|.audio|.auto|.aw|.ax|.az|.ba|.bar|.barcelona|.bargains|.bb|.bbc|.bcn|.bd|.be|.bentley|.berlin|.best|.bf|.bg|.bh|.bi|.bible|.bike|.biz|.bj|.bl|.black|.blackfriday|.blog|.blue|.bm|.bn|.bo|.bq|.br|.brussels|.bs|.bt|.builders|.bv|.bw|.by|.bz|.bzh|.ca|.cam|.camera|.camp|.cancerresearch|.car|.cards|.cars|.cat|.cc|.cd|.center|.cf|.cg|.ch|.cheap|.christmas|.church|.ci|.ck|.cl|.click|.clothing|.cloud|.club|.cm|.cn|.co|.codes|.coffee|.college|.com|.coop|.country|.cr|.cu|.cv|.cw|.cx|.cy|.cymru|.cz|.dance|.date|.dating|.de|.desi|.design|.dev|.diet|.directory|.dj|.dk|.dm|.do|.download|.dz|.ec|.eco|.edu|.education|.ee|.eg|.eh|.email|.eng|.er|.es|.et|.eu|.eus|.events|.exa
@alicommit-malp
alicommit-malp / list_of_Internet_top_level_domains.txt
Last active February 6, 2019 12:16
List of Internet top-level domains (All domain 's extensions) based on https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
{'data':
['.NGO','.ONG','.OOO','.XYZ','.aaa','.abb','.ac','.academy','.accountant','.ad','.adult','.ae','.aeg','.aero','.af','.afl','.africa','.ag','.agency','.ai','.aig','.airtel','.al','.alsace','.am','.amsterdam','.an','.ao','.apartments','.app','.aq','.ar','.archi','.arpa','.art','.as','.asia','.associates','.at','.au','.audio','.auto','.aw','.ax','.az','.ba','.bar','.barcelona','.bargains','.bb','.bbc','.bcn','.bd','.be','.bentley','.berlin','.best','.bf','.bg','.bh','.bi','.bible','.bike','.biz','.bj','.bl','.black','.blackfriday','.blog','.blue','.bm','.bn','.bo','.bq','.br','.brussels','.bs','.bt','.builders','.bv','.bw','.by','.bz','.bzh','.ca','.cam','.camera','.camp','.cancerresearch','.car','.cards','.cars','.cat','.cc','.cd','.center','.cf','.cg','.ch','.cheap','.christmas','.church','.ci','.ck','.cl','.click','.clothing','.cloud','.club','.cm','.cn','.co','.codes','.coffee','.college','.com','.coop','.country','.cr','.cu','.cv','.cw','.cx','.cy','.cymru','.cz','.dance','.date','.dating','.de','.
@alicommit-malp
alicommit-malp / gist:0169621ed732aa767a06a26b4eacaabd
Created February 6, 2019 09:20
All Domain's extensions dataset based on
.NGO
.ONG
.OOO
.XYZ
.aaa
.abb
.ac
.academy
.accountant
.ad
@alicommit-malp
alicommit-malp / StopWords.java
Last active April 4, 2018 15:29
English stop words remover
import java.util.HashSet;
import java.util.Iterator;
public class StopWords {
private static HashSet<String> data =new HashSet<String>();
private static String[] words;
/**
* Remove all the English stop words listed in the data