Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
############ 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. |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
this file contains a simple script for connecting to mongodb
database for deleting all the data from a collection and importing data to a collection:
bun importDevData.ts --delete
bun importDevData.ts --import
import dotenv from "dotenv";
import mongoose from "mongoose";
import fs from "fs";
/**
@Composable | |
fun ClockText() { | |
val currentTimeMillis = remember { | |
mutableStateOf(System.currentTimeMillis()) | |
} | |
LaunchedEffect(key1 = currentTimeMillis) { | |
while (true) { | |
delay(250) | |
currentTimeMillis.value = System.currentTimeMillis() |
#!/bin/bash | |
<<ABOUT_THIS_SCRIPT | |
------------------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/2cf20236e665fcd7ec41311d50c89c0e |
# PHP / Ruby | |
# Regex find key and value pair in JSON formated string | |
# Match 1: Key | |
# Match 2: Value | |
# https://regex101.com/r/zR2vU9/4 | |
# http://rubular.com/r/KpF3suIL10 | |
# http://stackoverflow.com/questions/14349889/how-to-use-a-regular-expression-to-extract-json-fields/35129815#35129815 | |
(?:\"|\')(?<key>[^"]*)(?:\"|\')(?=:)(?:\:\s*)(?:\"|\')?(?<value>true|false|[0-9a-zA-Z\+\-\,\.\$]*) |
#!/bin/sh | |
set -e | |
vendor/bin/phpunit | |
(git push) || true | |
git checkout production | |
git merge master |