Skip to content

Instantly share code, notes, and snippets.

@bigga
bigga / enterprise_token.rb
Created March 13, 2024 18:23 — 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.
@bigga
bigga / gist:5263c31c85428843f0f00260e5d2ab01
Created June 29, 2022 03:40 — forked from t3chnoboy/gist:8322246
Convert all files in folder to utf-8 using iconv
# http://stackoverflow.com/questions/4544669/batch-convert-latin-1-files-to-utf-8-using-iconv
find . -type f -exec bash -c 'iconv -f iso-8859-1 -t utf-8 "{}" > /path/to/destination/"{}"' \;
@bigga
bigga / Split-File.ps1
Created March 29, 2022 15:19 — forked from awayken/Split-File.ps1
Split files using Powershell, modified from: http://stackoverflow.com/a/11010158/215200
# Modified from: http://stackoverflow.com/a/11010158/215200
$fromFolder = "D:\FOLDER\"
$rootName = "FILENAME"
$ext = "EXT"
$from = "{0}{1}.{2}" -f ($fromFolder, $rootName, $ext)
$fromFile = [io.file]::OpenRead($from)
$upperBound = 100MB
@bigga
bigga / geoserver-install.sh
Last active June 21, 2019 08:22 — forked from iacovlev-pavel/geoserver-install.sh
Install GeoServer on Ubuntu 18.04
#Updated to cover Geoserver 2.15.1
#Added sudo to apt-get lines
sudo apt-get update
sudo apt-get install openjdk-8-jre
# PostgreSQL and PostGIS
sudo apt-get install postgresql postgresql-contrib postgis postgresql-10-postgis-2.4
# Create "geoserver" database
@bigga
bigga / geoserver-startup.sh
Last active July 20, 2019 10:10 — forked from iacovlev-pavel/geoserver-startup.sh
Geoserver init script
#! /bin/sh
### BEGIN INIT INFO
# Provides: geoserver
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: GeoServer OGC server
### END INIT INFO