Skip to content

Instantly share code, notes, and snippets.

View IljaN's full-sized avatar
☢️

Ilja Neumann IljaN

☢️
View GitHub Profile
{
"autoboot": true,
"brand": "joyent",
"image_uuid": "1bd84670-055a-11e5-aaa2-0346bb21d5a1",
"delegate_dataset": true,
"indestructible_delegated": true,
"max_physical_memory": 3072,
"cpu_cap": 100,
"alias": "fifo",
"quota": "40",
@IljaN
IljaN / setup_check_token.sh
Last active August 31, 2017 20:32
Bisect-Automation: Install owncloud, Sync files with desktop client, check if miral client has a token
#!/bin/bash
# Assumes that owncloud runs on localhost:8000 and desktop-client is installed
# Kill running sync client to suppress deletion warning
pkill owncloud
# Kill current config, inject autoconfig
rm -rf /home/ilja/ownCloud/*
rm ./config/config.php
@IljaN
IljaN / midi_clock.go
Last active September 8, 2017 23:11
Simple Midiclock
package main
import (
"fmt"
"log"
"os"
"time"
)
const target_bmp = 121.00
@IljaN
IljaN / repo_merge
Created November 18, 2017 20:14
Merge Repos
# create a new repo:
git init all_projects
cd all_project
# to make it more easy to understand, let's create a new branch
git checkout -b main
# import 1st project
git remote add projectA http://projectA
git fetch --all --tags
git checkout masterA projectA/master
@IljaN
IljaN / oc_reset.sh
Created December 15, 2017 12:05
Owncloud dev reset script
#!/bin/bash
# A script to quickly reset your local owncloud.
# WARNING: Your Database and data directory will be deleted!!!
# A user admin with password admin is created.
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DATA_DIR=$CURRENT_DIR/data
OWNCLOUD_URL=http://localhost:8000
@IljaN
IljaN / 1-Explanations.md
Created March 9, 2018 13:38 — forked from danvbe/1-Explanations.md
A way to integrate FosUserBundle and HWIOAuthBundle

I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:

  • the registration as service of your custom FOSUBUserProvider (with the necessary parameters)
  • set the service for oauth_user_provider in the security.yml with your custom created service

Here are the steps:

  1. Routing. In routing.yml I have added all the routes for both bundles.
  2. Configuration. I have set the config.yml mostly as it is presented in the HWIOAuthBundle.
  3. Security. I have set the security.yml mostly as it is presented in the HWIOAuthBundle (though my routes are using /login pattern, not /connect). Also, the oauth_user_provider is set for my custom service.
@IljaN
IljaN / README.md
Created October 19, 2018 22:30 — forked from maqnouch/README.md
Signal Installation Steps

Signal Server Installation Guide

Author: Aqnouch Mohammed aqnouch.mohammed@gmail.com

Abstract

This paper is a quickstart for anyone aims to setup a working Signal Server.

What Is Signal

Signal is an encrypted instant messaging and voice calling application for Android. It uses the Internet to send one-to-one and group messages, which can include images and video messages, and make one-to-one voice calls. Signal uses standard phone numbers as identifiers and end-to-end encryption to secure all communications to other Signal users.

1:34PM ERR svcs/grpcsvcs/interceptors/recovery/recovery.go:50 > runtime error: invalid memory address or nil pointer dereference pid=31926 pkg=grpcserver stack="goroutine 51 [running]:\nruntime/debug.Stack(0x0, 0xc0000da2c0, 0x5555555555555555)\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x9d\ngithub.com/cs3org/reva/cmd/revad/svcs/grpcsvcs/interceptors/recovery.recoveryFunc(0x1157f60, 0xc000192450, 0xe124c0, 0x18cf920, 0xc000192480, 0x58)\n\t/home/ilja/code/reva/cmd/revad/svcs/grpcsvcs/interceptors/recovery/recovery.go:48 +0x34\ngithub.com/grpc-ecosystem/go-grpc-middleware/recovery.recoverFrom(0x1157f60, 0xc000192450, 0xe124c0, 0x18cf920, 0xf90bd0, 0x40d329, 0xc000192480)\n\t/home/ilja/private/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/recovery/interceptors.go:51 +0x5a\ngithub.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1.1(0x1157f60, 0xc000192450, 0xc0000c2708, 0xc00016d550)\n\t/home/ilja/private/go/pkg/mod/github.com/grpc-ec
@IljaN
IljaN / logrus_wrapper.go
Created January 15, 2020 14:08
Zerolog wrapper for logrus
package log
import (
"github.com/rs/zerolog"
"github.com/sirupsen/logrus"
"io/ioutil"
)
type levelMap map[logrus.Level]zerolog.Level
@IljaN
IljaN / golang-tls.md
Created January 20, 2020 15:09 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)