View mergeMinecraftWorlds.py
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
#!/usr/bin/env python | |
import glob | |
import pathlib | |
import os | |
import os.path | |
import shutil | |
import sys | |
MCA_PATERN = 'r.*.*.mca' |
View checkEmojis.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test</title> | |
<script type="module"> | |
const ALL_SOURCES = { | |
'joypixels': 'https://cdn.jsdelivr.net/npm/emoji-picker-element-data@1.0.0/en/joypixels/data.json', | |
'iamcal': 'https://cdn.jsdelivr.net/npm/emoji-picker-element-data@1.0.0/en/iamcal/data.json', | |
'github': 'https://cdn.jsdelivr.net/npm/emoji-picker-element-data@1.0.0/en/github/data.json', | |
'emojibase-legacy': 'https://cdn.jsdelivr.net/npm/emoji-picker-element-data@1.0.0/en/emojibase-legacy/data.json', |
View Serverstruktur.txt
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
Alles in Docker | |
* Buildserver für BE, FE (nodeJs) | |
* nginx für FE | |
* nginx + nodeJs für BE | |
* postgres für DB |
View docker-net-test.sh
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 | |
clear | |
echo "configure for my network settings" | |
netDev="wlp3s0" | |
netPrefix="192.168.0" | |
macNet="fritz" | |
shimDev="${macNet}0" | |
ipHost="35" |
View pre-push.hook.sh
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 | |
# An example hook script to verify what is about to be pushed. Called by "git | |
# push" after it has checked the remote status, but before anything has been | |
# pushed. If this script exits with a non-zero status nothing will be pushed. | |
# | |
# This hook is called with the following parameters: | |
# | |
# $1 -- Name of the remote to which the push is being done | |
# $2 -- URL to which the push is being done |
View gitea.log
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 GET "http://localhost:3000/api/v1/repos/ber/test/commits/master/statuses" -H "accept: application/json" | |
[Macaron] 2018-04-23 15:55:59: Started GET /api/v1/repos/ber/test/commits/master/statuses for 172.25.0.1 | |
2018/04/23 15:55:59 [I] [SQL] SELECT `id`, `lower_name`, `name`, `full_name`, `email`, `keep_email_private`, `passwd`, `login_type`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `created_unix`, `updated_unix`, `last_login_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `allow_git_hook`, `allow_import_local`, `allow_create_organization`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `description`, `num_teams`, `num_members`, `diff_view_style` FROM `user` WHERE `id`=? LIMIT 1 []interface {}{1} | |
2018/04/23 15:55:59 [I] [SQL] SELECT `id`, `owner_id`, `lower_name`, `name`, `description`, `website`, `default_branch`, `num_watches`, `num_stars`, `num_forks`, `num_ |
View LdapPrimaryAuthenticationProvider
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 | |
/* This pluing allows you to login via URZ-LDAP-authentication | |
{ | |
//... | |
"AuthManagerAutoConfig": { | |
"primaryauth": { | |
"UrzLdap": { | |
"class": "UrzLdapPrimaryAuthenticationProvider", |
View DieselPing.sh
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
### SERVER.sh | |
PORT=9876 | |
DATA=/tmp/rand.data | |
SIZE=1M | |
while true | |
do | |
netcat -l $PORT < "$DATA" | |
dd if=/dev/urandom of="$DATA" bs=$SIZE count=1 |
View example-json.js
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
const Soup = imports.gi.Soup; | |
const Json = imports.gi.Json; | |
function assert(assertion) { | |
if (!assertion) { | |
throw "Error"; | |
} | |
} | |
/* Get the data using a HTTP GET */ |
View test.php
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 | |
define('MAX', 10000); | |
$varianteA = '/tmp/varianteA.php'; | |
$varianteB = '/tmp/varianteB.php'; | |
function funcName($i) { | |
$n = ''; | |
while ($i > 25) { |
NewerOlder