Skip to content

Instantly share code, notes, and snippets.

View IljaN's full-sized avatar
☢️

Ilja Neumann IljaN

☢️
View GitHub Profile
@IljaN
IljaN / Listener.md
Created February 2, 2024 11:35
ow-docker-wndlistener

WND-Listener with ownCloud docker

This is only a example template! Modify everything to fit your environment.

Put following file ẁnd_listener.sh next to your docker-compose.yml

#!/usr/bin/env bash

echo "Activating wnd listener for share..."

Pakhomov, Sergey Igorevich

Sergei Pakhomov (nickname: Pakhom; born November 4, 1966, Moscow, USSR) is a Soviet and Russian underground actor, screenwriter, musician, interior designer, avant-garde artist, and stand-up comedian. Best known as a performer in the movie Green Elephant. Participant in the TV show "Battle of the Psychics" (2015).

Biography

Born on November 4, 1966 in Moscow. Sergey's childhood was spent in a single-parent family. Pakhomov's father, a biology professor, left his mother when his son was still a child. He is Jewish by father. From an early age he was haunted by visions and hallucinations. Graduated from Krasnopresnenskaya Art School in 1981 and completed his studies at the Moscow Kalinin Art and Industry School in 1985. While attending this school he was especially interested in icon painting. In 1986 he was treated at the Kashchenko psychiatric hospital, where he was sent by the draft board instead of the war in Afghanistan. Pakhomov's other hobbies in the 1980s were

@IljaN
IljaN / eqdl.php
Created October 21, 2022 07:33
Distributed list of weighted values
#!/usr/bin/php
<?php
// Check if the script is run from the command line.
php_sapi_name() === 'cli' ?: exit(1);
if (count($argv) != 4) {
echo "Usage: $argv[0] BATCH_PREFIX BATCH_COUNT INPUT_PATH\n";
exit(1);
}
@IljaN
IljaN / VerifyChecksum.php
Last active July 12, 2022 13:44
Read all files
<?php
/**
* @author Ilja Neumann <ineumann@owncloud.com>
*
* @copyright Copyright (c) 2018, ownCloud GmbH
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
Index: apps/market/package-lock.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/apps/market/package-lock.json b/apps/market/package-lock.json
--- a/apps/market/package-lock.json (revision ff02e2e5025d5dfcd85d67831d2fa015dd638b70)
+++ b/apps/market/package-lock.json (date 1655731203188)
@@ -1,8 +1,11619 @@
{
To create a trace for a request the php-extension "xdebug" must be installed and activated on the ownCloud server.
RHEL: sudo yum install php-xdebug
RHEL (Remi Repro): sudo yum install php74-php-xdebug3
Afterwards the following entries have to be added to /etc/php7/conf.d/xdebug.ini:
xdebug.mode=profile
xdebug.start_with_request=trigger
xdebug.trigger_value=StartProfile
@IljaN
IljaN / githacks.md
Created March 5, 2022 10:39
git hacks

Add file to first commit

git filter-branch -f --index-filter "cp /tmp/LICENSE . && git add LICENSE" --tag-name-filter cat --prune-empty -- --all

Rewrite emails on all commits

#!/bin/sh

git filter-branch --env-filter '
OLD_EMAIL="old@example.com"
$this->logger->debug("TRACE1: Name: $name Parameters: " . \implode(',', $parameters));
Index: lib/User/UserEntry.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/lib/User/UserEntry.php b/lib/User/UserEntry.php
--- a/lib/User/UserEntry.php (revision 25af3cb69d24a555af24b2eae9dcf6e91fa38a5e)
+++ b/lib/User/UserEntry.php (date 1642156219065)
@@ -365,6 +365,11 @@
if ($trim) {
@IljaN
IljaN / case.bash
Created November 16, 2021 14:50
Find filenames which differ only by casing
#!/bin/bash
shopt -s globstar nullglob
for x in ./**/*; do printf "%s\n" "$x"; done | sort -f | awk '
tolower($0) == tolower(prev) {
print prev;
while (tolower($0) == tolower(prev)) {print; getline}
}
1 { prev = $0 }'