Skip to content

Instantly share code, notes, and snippets.

View RednibCoding's full-sized avatar

Michael Binder RednibCoding

View GitHub Profile
@RednibCoding
RednibCoding / enterprise_token.rb
Created August 17, 2022 16:57 — 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-2020 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
@RednibCoding
RednibCoding / nanorc
Last active October 20, 2019 21:46
Modern keybindings for the nano editor
# Copy/paste the following lines into the "nanorc" file
# File is usually located at: /etc/nanorc
# Set some colors
# set element fgcolor,bgcolor
set titlecolor black,green
set statuscolor black,green
set errorcolor brightwhite,red
set selectedcolor black,green
set stripecolor ,yellow
@RednibCoding
RednibCoding / process.go
Last active July 4, 2018 00:07
Example of how to open/read/write process memory on Windows with Golang
package main
import (
"bytes"
"encoding/binary"
"fmt"
"syscall"
"unsafe"
)
@RednibCoding
RednibCoding / ListProcesses.py
Last active June 29, 2018 22:30
Simple example of how to list all running processes with Python
import psutil
def listProcesses():
for proc in psutil.process_iter():
try:
pinfo = proc.as_dict(attrs=['pid', 'name'])
except psutil.NoSuchProcess:
pass
else:
print(pinfo)
@RednibCoding
RednibCoding / Install.py
Created June 21, 2018 06:50
How to install a Python package from github using Pycharm
"""
After loading the project (which was associated with the virtual environment that you want to update),
open PyCharm's Terminal window (Alt+F12, or View > Tool Windows > Terminal) and then use the following command:
"""
pip install git+URL_to_repository
"""
Where "URL_to_repository" is the package you want to install.
@RednibCoding
RednibCoding / QT5DarkGreyTheme.py
Last active June 20, 2018 08:28
PyQt5 'Fusion' - theme
import sys
# Needed for the example
from PyQt5.QtWidgets import QWidget, QApplication
# Needed for the theme
from PyQt5 import QtCore, QtGui
def setTheme(app):
app.setStyle('Fusion')