Skip to content

Instantly share code, notes, and snippets.

View jasjisdo's full-sized avatar
👩‍💻
Coding 🔥🔥🔥

Jaschar Jisreel Domann jasjisdo

👩‍💻
Coding 🔥🔥🔥
View GitHub Profile
/**
* This binary logical operator represents the following truth table:
*
* | a | b | p |
* =============
* | T | T | T |
* | T | F | T |
* | F | T | F |
* | F | F | F |
*
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
add-added = !"git ls-files -o --exclude-standard -z | xargs -0 -r -t -i git add '{}'"
add-a = add-new
add-modified = !"git ls-files -m --exclude-standard -z | xargs -0 -r -t -i git add '{}'"
add-m = add-modified
add-deleted = !"git ls-files -d --exclude-standard -z | xargs -0 -r -t -i git add '{}'"
add-d = add-deleted

Sehr geehrte Damen und Herren,

dies ist eine Erinnerung an die folgenden Aufgaben für die nächsten 5 Tage:

Aufgaben mit hoher Priorität und fälligem Termin


@jasjisdo
jasjisdo / MulticastExample.java
Last active July 31, 2017 13:16
Java multicast message example on *Windows 10, Version 1703* over *lo (Software Loopback Interface 1)*
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSocket;
import java.net.NetworkInterface;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.Date;
import java.util.Enumeration;
import java.util.Optional;
@jasjisdo
jasjisdo / .bashrc
Last active November 21, 2016 07:48
# Print that this file is sourced
# ------------------------------------------------------------
echo '.bashrc'
# Load extended .bashrc config files for export & alias
# ------------------------------------------------------------
[[ -s "$HOME/.bashrc_exports" ]] && source "$HOME/.bashrc_exports"
@jasjisdo
jasjisdo / ConnectionFactory.java
Created May 6, 2016 11:19
[JAVA] How to get the JSession id from Http connection (with Jsoup)
public class ConnectionFactory { protected static String userAgent = "Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/43.0"; protected static int timeout = 15000; public static Connection getDefault(String url){ return Jsoup.connect(url) .userAgent(userAgent) .timeout(timeout); } }
@jasjisdo
jasjisdo / 0_reuse_code.js
Created August 18, 2014 13:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console