Skip to content

Instantly share code, notes, and snippets.

@r0nn
r0nn / enterprise_token.rb
Created February 28, 2024 02:19 — forked from markasoftware/enterprise_token.rb
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@r0nn
r0nn / RequestResponseLoggingMiddleware.cs
Created June 12, 2019 01:00
An ASP.NET CORE Request - Response Logger Middleware
// From: https://dev.to/mckabue/an-aspnet-core-request---response-logger-middleware-clb
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Internal;
using Microsoft.IO;
@r0nn
r0nn / VMRC maximize desktop area.ahk
Created May 28, 2019 03:21 — forked from fabd/VMRC maximize desktop area.ahk
Simple script to maximize the desktop area of VMware remote console, with the Windows 10 Taskbar docked to the side.
;
; VMRC "Maximizer"
;
; Simple procedure to maximize VMRC's desktop area, while keeping the Windows 10
; taskbar docked to the side. Remove the VMRC window titlebar, and the toolbar.
;
; SETUP
;
; - Set Windows Taskbar docked to the right
;
@r0nn
r0nn / Android.mk
Created July 17, 2017 05:32 — forked from ChiChou/Android.mk
WeChat dump
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := loader
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := loader.c
LOCAL_CPPFLAGS := -std=gnu++0x -Wall
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog -pie -fPIE
@r0nn
r0nn / EpicMiddleware.swift
Created March 6, 2017 07:33
ReSwift-EpicMiddleware
import RxSwift
import ReSwift
public typealias Epic = (Observable<Action>, @escaping GetState) -> Observable<Action>
public func CombineEpics(epics: [Epic]) -> Epic {
return { (actions: Observable<Action>, getState: @escaping GetState) -> Observable<Action> in
return Observable.from(epics)
.map{ e in e(actions, getState) }
.merge()
@r0nn
r0nn / atom-shell-harmony-switch
Last active August 29, 2015 14:01
Start atom-shell with `--harmony` switch
app.on('ready', function() {
app.commandLine.appendSwitch("js-flags", "--harmony");
// Create the browser window, load main page etc
// ...
});