Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name JIRA Copy Ticket Info
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the world!
// @author You
// @match https://jira.portal.at/browse/*
// @match https://jira.cloudflight.io/browse/*
// @grant none
// ==/UserScript==
@mangei
mangei / countdown.html
Created November 8, 2019 08:22
CCC Countdown
<!-- Coding Contest Countdown by Manuel Geier -->
<!-- Use Ctrl + '+' or Ctrl + '-' to set the right zoom factor for your display -->
<html>
<head>
<title>Coding Contest</title>
<script>
/*************************************************************************/
/*
* CONFIGURATION
*/
@mangei
mangei / BCryptPasswordEncoderRun.java
Created October 9, 2019 21:09
BCryptPasswordEncoder
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import java.util.Scanner;
public class BCryptPasswordEncoderRun {
public static void main(String[] args) {
System.out.println("Generate BCrypt encoded string of a raw password.");
System.out.println("Enter raw password:");
Scanner s = new Scanner(System.in);
String rawPassword = s.nextLine();
@mangei
mangei / userscript.js
Last active November 6, 2019 08:51
Add My Standups Link in CORE
// ==UserScript==
// @name Add My Standups Link
// @version 1.1
// @author Manuel Geier (manuel@geier.io)
// @match https://core.catalysts.cc/communication/standup/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
@mangei
mangei / userscript.js
Last active November 8, 2019 15:57
Coding Contest - Result Cleanup
// ==UserScript==
// @name Coding Contest - Result Cleanup
// @version 1.1.0
// @author Manuel Geier
// @match https://www.google.at/search?q=userscript&rlz=1C1GGRV_enAT751AT751&oq=userscript&aqs=chrome..69i57j69i59j35i39j0l3.4415j0j7&sourceid=chrome&ie=UTF-8
// @grant none
// @include *codingcontest.org/contest/*
// ==/UserScript==
@mangei
mangei / slack_deactivate_all_users.js
Created April 11, 2019 07:21
Deactivate all users in Slack
// ==UserScript==
// @name Deactivate Users
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Deactivate all users
// @author Manuel Geier
// @match https://INSTANCE.slack.com/admin
// @grant none
// ==/UserScript==
@mangei
mangei / whatsapp_phone_enumerator_floated_div.js
Created May 23, 2017 20:14
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/****** I've created a Chrome extension from this script, take a look at https://github.com/LoranKloeze/WhatsAllApp ********/
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part

Keybase proof

I hereby claim:

  • I am mangei on github.
  • I am mangei (https://keybase.io/mangei) on keybase.
  • I have a public key whose fingerprint is 365F 4E08 0560 9B82 7126 401C 698C 4519 1F5F 6739

To claim this, I am signing this object:

@mangei
mangei / gist:11169675
Last active March 24, 2021 04:11
groovy null list and empty list check
package io.geier
class IfTest {
public static void main(String[] args) {
List<String> emptyList = [];
List<String> nullList = null;
if (emptyList == null || emptyList.empty) {
println "AAA emptyList"
}
@mangei
mangei / gist:11169410
Created April 22, 2014 08:03
emptyList check in Groovy
package io.geier
class IfTest {
public static void main(String[] args) {
List<String> emptyList = null;
if (emptyList == null || emptyList.empty) {
// return []
println "AAA"
}