Skip to content

Instantly share code, notes, and snippets.

View joennlae's full-sized avatar
🏗️

Jannis Schönleber joennlae

🏗️
View GitHub Profile
@joennlae
joennlae / baby_iguana.pickle.sv
Created March 17, 2023 10:16
Baby Iguana Yosys
// Compiled by morty-0.9.0 / 2023-03-16 10:49:40.527983167 +01:00
// Copyright 2019 ETH Zurich and University of Bologna.
// Copyright and related rights are licensed under the Solderpad Hardware
// License, Version 0.51 (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://solderpad.org/licenses/SHL-0.51. Unless required by applicable law
// or agreed to in writing, software, hardware and materials distributed under
// this License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
@joennlae
joennlae / simple_grad.ipynb
Created November 10, 2022 09:26
simple_grad
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joennlae
joennlae / README.md
Created August 26, 2022 09:32 — forked from Sieboldianus/README.md
An opinionated nextcloud ignore list for developers (sync-exclude.lst)

An opinionated nextcloud ignore list for developers (sync-exclude.lst)

The latest nextcloud server versions will have ransomware detection automatically enabled, meaning that syncing common developer file types (e.g. .lock) will return errors.

Fatal webdav OCA\DAV\Connector\Sabre\Exception\Forbidden: Ransomware file detected. Prevented upload of ..py/bokeh/secrets.tar.enc because it matches extension pattern ".enc"

If you are syncing complex, nested work directories as a developer, the following

@joennlae
joennlae / gnu-toolchain.md
Created July 18, 2022 08:30 — forked from chponte/gnu-toolchain.md
Building a complete GNU toolchain, comprised of binutils + gcc + glibc
@joennlae
joennlae / network-tweak.md
Last active June 13, 2023 20:54 — forked from mustafaturan/network-tweak.md
Linux Network Tweak for 2 million web socket connections

Sample config for 2 million web socket connection

    sysctl -w fs.file-max=12000500
    sysctl -w fs.nr_open=20000500
    # Set the maximum number of open file descriptors
    ulimit -n 20000000

    # Set the memory size for TCP with minimum, default and maximum thresholds 
 sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
@joennlae
joennlae / answer1.xml
Last active February 26, 2020 10:21
getHotelData_master
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:getMasterDataResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://export.ws">
<getMasterDataReturn xsi:type="ns2:Document"
xmlns:ns2="http://xml.apache.org/xml-soap">
<results
@joennlae
joennlae / Main.java
Created October 29, 2019 20:30
Selina Day of the year
import java.io.IOException;
import java.util.Scanner;
public class Main {
/**
* @param year a year greater or equal to 1900
* @return whether that year was a leap year
*/
static boolean isLeapYear(int year) {
// ...
import { AfterViewInit, Directive, ElementRef, EventEmitter, forwardRef, Inject, Injectable, InjectionToken, Injector, Input, NgZone, OnInit, Output } from '@angular/core';
import { AbstractControl, ControlValueAccessor, FormControl, NG_VALUE_ACCESSOR, NgControl, Validators } from '@angular/forms';
import { Http } from '@angular/http';
declare const grecaptcha : any;
declare global {
interface Window {
grecaptcha : any;
reCaptchaLoad : () => void
const navigationobject = createDrawerNavigator({
'Home': HomeScreen,
'News': NewsScreen,
'Startliste': StartlistScreen,
'Liveresultate': LiveScreen,
'Livestream': StreamScreen,
'Strecke': StreckenScreen,
'Zeitplan': {
screen: ZeitScreen,
navigationOptions: () => ({
@joennlae
joennlae / test 2.js
Last active January 23, 2019 14:26 — forked from thomascuriger/test 2
test 32
import React from 'react';
import { View, ScrollView, Platform, Dimensions, StyleSheet } from 'react-native';
import { Icon } from 'react-native-elements';
import { Toolbar, ThemeContext, getTheme } from 'react-native-material-ui';
import Pdf from 'react-native-pdf';
export class StreckenScreen extends React.Component {
constructor (props) {