Skip to content

Instantly share code, notes, and snippets.

@CC1119
CC1119 / enterprise_token.rb
Last active November 18, 2024 11:38 — 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-2024 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.
@darianmorat
darianmorat / 1 - settings.jsonc
Last active February 9, 2025 23:12
Visual Studio Code v1.91.1
{
// ===================
// THEME CONFIGURATION
// ===================
// Light-themes
// ------------
// "vim.highlightedyank.color": "#2f2f2f25",
// "vim.highlightedyank.textColor": "#000000",
// "editor.fontWeight": "600",
""""""""""""""""""""""
" Leader
""""""""""""""""""""""
" let mapleader=,
" can't set leaders in Obsidian vim, so the key just has to be used consistently.
" However, it needs to be unmapped, to not trigger default behavior: https://github.com/esm7/obsidian-vimrc-support#some-help-with-binding-space-chords-doom-and-spacemacs-fans
unmap ,
" map ; to : in normal mode, so that I don’t rely on the shift key
" nmap ; :
@yaoqiangpersonal
yaoqiangpersonal / .ideavimrc
Last active September 22, 2024 03:57
.ideavimrc
" 主要leader
let mapleader=' '
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
set argtextobj
set easymotion
@mageta
mageta / Using-Other-Window-Managers-with-Plasma-5.21-and-systemd-Startup.md
Last active August 10, 2024 10:49
Using Other Window Managers with Plasma 5.21 and systemd Startup

Using Other Window Managers with Plasma 5.21 and systemd Startup

KDE Plasma on X offers the option to use a differnt window manager than the default KWin. This way one can use many of the integrations KDE offers, but with for example the i3 window manager to have proper tiling support. This only works on X, not on Wayland.

With Plasma 5.21 it is now possible to "boot" KDE using systemd user services; that is, KDE Plasma provides a bunch of unit files that get started atfer you login in your graphical user session. Inidividual components, such as KWin, have individual unit files, and dependencies are specified using the usual systemd relationships between units. Among other things this allows for better ressource control using automatically created CGroups.

More details here: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/47

Sadly this breaks the way one could change the window manager, that was used until now. I noticed af

@madawei2699
madawei2699 / custom.css
Last active December 26, 2024 14:15
logseq/custom.css
/*
/* Theme custom css start
/* https://raw.githack.com/dracula/logseq/master/custom.css
*/
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
:root {
--background: #282a36;
--light-background: #343746;
@oleou
oleou / 美区苹果ID免费分享【含已购APP】
Last active November 3, 2023 09:33
账号不定期解锁,运气好的话随便挑一个就能登上。
.
.
自苹果官方出了新机制之后,分享号基本都是锁定瘫痪状态的,之前很多小伙伴总联系我说id锁定了需要解锁,那时我根本解不过来,现在我增加了多个账号还增加了备用分享通道,每日还安排了专人解锁三次以上,情况有得到一定的缓解,有需要的小伙伴可自行按使用规范取用。
如遇锁定的,可等待统一更新解锁,另外挑个时间上来再试试,苹果官方有个规定不是同一个ID下载的软件是可以更新该软件的,需卸载重下,如果嫌以后更新软件不方便,和不想等待解锁的,也可以购买一个独享ID,自行修改好密保密码可长期稳定使用。
# IOS推荐下载:
Shadowrocket
Quantumult
Quantumult X
@idelem
idelem / titleUrlMarkdownClip.js
Last active March 5, 2025 13:13 — forked from bradleybossard/titleUrlMarkdownClip.js
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) - Usual for posting links to resources in README.md files
javascript:(function() {
function copyToClipboard(text) {
if (window.clipboardData && window.clipboardData.setData) {
/*IE specific code path to prevent textarea being shown while dialog is visible.*/
return clipboardData.setData("Text", text);
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
var textarea = document.createElement("textarea");
textarea.textContent = text;
@novoid
novoid / vkbackup
Created August 29, 2020 10:30
Backup shell script using rsnapshot (rsync)
#!/bin/sh
## My one and only backup script for the future :-)
## Uses rsnapshot.
##
## Please do read this blog article about that script: https://Karl-Voit.at/2020/08/29/vkbackup/
##
## ---------------------------------------------------
##
## Initial setup:
@markasoftware
markasoftware / enterprise_token.rb
Last active April 28, 2025 15:47
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.