Skip to content

Instantly share code, notes, and snippets.

View NeQuissimus's full-sized avatar
:octocat:
This is my status

Tim Steinbach NeQuissimus

:octocat:
This is my status
View GitHub Profile
#!/bin/bash
# get rid of duplicate apps by reindexing
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
# reindex mail
#rm "$HOME/Library/Mail/v2/MailData/Envelope Index"
#rm "$HOME/Library/Mail/v2/MailData/Envelope Index-shm"
#rm "$HOME/Library/Mail/v2/MailData/Envelope Index-wal"
@NeQuissimus
NeQuissimus / btrfs-nixos-install.sh
Created June 17, 2016 11:59 — forked from alcol80/btrfs-nixos-install.sh
nixos install (boot + btrfs root + btrfs docker)
gdisk /dev/sda # make 1 partition
mkfs.vfat -n BOOT /dev/sda1
mkfs.btrfs -L root /dev/sdb
mkfs.btrfs -L docker /dev/sdc
mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache /dev/sdb /mnt/
btrfs subvolume create /mnt/nixos
umount /mnt/
mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache,subvol=nixos /dev/sdb /mnt/
@NeQuissimus
NeQuissimus / Stnts.java
Created August 30, 2016 13:03 — forked from tonymorris/Stnts.java
What does this program output?
// What does this program output?
class S {
static final int I = 7;
static {
System.out.println("S");
}
}
@NeQuissimus
NeQuissimus / EggsToast.java
Created August 30, 2016 13:03 — forked from tonymorris/EggsToast.java
What is the output of this program?
// What is the output of this program?
// a) x = 2
// b) x = 3
// c) compile-error
// d) runtime exception
// e) something else _____
abstract class Eggs {
abstract void m();
Eggs() {
@NeQuissimus
NeQuissimus / Ruby Lambdas.md
Created November 27, 2016 20:37 — forked from Integralist/Ruby Lambdas.md
Ruby lambdas

Lambda: standard

# Creating a lambda
l = lambda { |name| "Hi #{name}!" }

# Executing the lambda
l.call("foo") # => Hi foo!
@NeQuissimus
NeQuissimus / jenkins-decrypt.groovy
Created July 6, 2017 14:35 — forked from tuxfight3r/jenkins-decrypt.groovy
Decrypting Jenkins Password
#To Decrypt Jenkins Password from credentials.xml
#<username>jenkins</username>
#<passphrase>your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J</passphrase>
#go to the jenkins url
http://jenkins-host/script
#In the console paste the script
hashed_pw='your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J'