This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"syscall" | |
"unsafe" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
NewerOlder