composer require pragmarx/google2fa
composer require bacon/bacon-qr-code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curl -X PUT http://localhost:8181/v1/data/permission -H 'Content-Type: application/json' -d '# Data #' | |
{ | |
"write": [ | |
{ "ressource": [1, 2], "context": null }, | |
{ "ressource": [1, 3], "context": ["foo"] } | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest> | |
... | |
<application> | |
<activity | |
android:name=".MainActivity" | |
android:screenOrientation="landscape"> | |
... | |
</activity> | |
</application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#ENTER NAME SERVER IP-ADDRESS: | |
nsip=192.168.1.x | |
#ENTER DOMAIN CONTROLLER IP-ADDRESS: | |
dcip=192.168.1.x | |
#ENTER HOSTNAME OF FILE SERVER THAT HOSTS SHARES: | |
fsname=xxx | |
#ENTER DOMAIN CONTROLLER HOSTNAME (NOT FQDN! [MUST BE LOWERCASE]): | |
dc=xxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: firewall | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Firewall-Script | |
# Description: Firewall-Script with IPTABLES | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ch.bbc.wikicompare.algorythms; | |
import java.util.Arrays; | |
import java.util.HashSet; | |
import java.util.Set; | |
public class DiceCoefficent { | |
public double diceCoefficient(String s1, String s2) | |
{ | |
Set<String> nx = new HashSet<String>(); |
PATH=$PATH:/home/binzram/dev/overtone
emacs
M-x cider-jack-in
(ns ch.tsbe.binz(:use
[overtone.live]
[overtone.inst.sampled-piano]
[overtone.inst.drum :only [quick-kick haziti-clap soft-hat open-hat]]))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Reflection\ProcImg; | |
class Reflection{ | |
private $size; | |
private $width; | |
private $height; | |
private $hoehe; | |
private $breite; | |
private $pathimg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$#" -lt 2 ]; then | |
echo "Usage: `basename $0` MM YYYY [other find parameters]" >&2 | |
exit 1 | |
fi | |
set -e #exit early on error | |
month=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ps aux | awk '{if ($8 = "Z") print $1,$2,$8,$11;}' | tee /home/$USER/zombie.tmp | |
ZCOUNT=$(wc -l /home/$USER/zombie.tmp | awk '{print $1}') | |
ZCOUNT=$(expr $ZCOUNT - 1) | |
echo "Total $ZCOUNT zombie processes found." | |
rm -f /home/$USER/zombie.tmp |
NewerOlder