Skip to content

Instantly share code, notes, and snippets.

@fm-sys
fm-sys / Instalation.md
Last active August 2, 2021 21:49
A python script which helps you with cleaning up local and remote branches of merged PR's.
@fm-sys
fm-sys / check_passwort.py
Created February 12, 2021 14:37
A simple and secure password hash checker. Check if your chosen password is popular and has been exposed in security vulnerabilities without publishing the password itself. By using partial hashes the password doesn't leave your local pc at any time...
import hashlib, requests, getpass
from threading import Event
passwort = getpass.getpass("Password: ")
sha_1 = hashlib.sha1(passwort.encode())
pwHash = sha_1.hexdigest().upper()
print ("\nPassword hash:\t" + pwHash)
@fm-sys
fm-sys / markdown-details-collapsible.md
Created December 15, 2020 13:17 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets
@fm-sys
fm-sys / Android - check first run.java
Last active November 12, 2020 17:10
[Android] check via SharedPreferences, if it's the very first appstart
public boolean isFirstRun() { // returns true if it's the first start, otherwise false
boolean isFirstRun = getSharedPreferences("PREFERENCE", MODE_PRIVATE).getBoolean("isFirstRun", true);
if (isFirstRun){
getSharedPreferences("PREFERENCE", MODE_PRIVATE)
.edit()
.putBoolean("isFirstRun", false)
.apply();
return true;
}
return false;