Skip to content

Instantly share code, notes, and snippets.

@markasoftware
markasoftware / enterprise_token.rb
Last active September 28, 2024 15:57
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.
@ChenyangGao
ChenyangGao / qrcode_cookie_115
Last active September 28, 2024 15:56
115扫码登录,可选择 app,获取 cookie
@sullyo
sullyo / collect_code.sh
Created September 22, 2024 18:49
Clones a github repo and puts all the code into a single text file perfect for LLMs
#!/bin/bash
# Check if a GitHub URL is provided as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <github_url>"
exit 1
fi
# Store the GitHub URL
GIT_URL="$1"
@einedev
einedev / nextjs-github-page-deploy.md
Last active September 28, 2024 15:52
How to Deploy your Next.JS Project to Github Pages
✏️ Changelog
- 09 APR 2024: first publish

📓 Guide: Deploy your web project on Github Page step by step

☕ Author: Eine

@0xjac
0xjac / private_fork.md
Last active September 28, 2024 15:50
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@xorrior
xorrior / wmic_cmds.txt
Last active September 28, 2024 15:49
Useful Wmic queries for host and domain enumeration
Host Enumeration:
--- OS Specifics ---
wmic os LIST Full (* To obtain the OS Name, use the "caption" property)
wmic computersystem LIST full
--- Anti-Virus ---
wmic /namespace:\\root\securitycenter2 path antivirusproduct
@plembo
plembo / dellchromelinux.md
Last active September 28, 2024 15:43
Linux on a Dell Chromebook 11

Linux on a Dell Chromebook 11

NOTE: Last time I saw the Dell Chromebook, it was on a pile of electronics bound for the county recycling center. The N3060 CPU's 2 cores were just too sluggish for it to be usable during that overseas trip mentioned below. I leave this gist here mostly out of nostalgia.

My retail (not enterprise) Dell Chromebook 11 (an Inspiron model 3181, not the 3180 or 3189) went EOL shortly after I purchased it new from Best Buy. Since then it saw some hard use in the family kitchen as a recipe lookup device, but was finally retired when replaced by a (relatively) newer Android tablet (that also reached EOL shortly thereafter).

With an overseas trip looming, I decided to look into refurbishing the Chromebook for use as a privacy hardened travel laptop. Frankly, the thought of TSA and Customs manhandling my trusty portable workstation was too much to bear.

I mostly followed the detailed instructions in the Chrultrabook Docs, using the firmware supplied

@ghostbear
ghostbear / Spotify - How to reduce and limit the cache size (Windows - Mac).md
Last active September 28, 2024 15:43
[Spotify] How to limit the cache size (Windows/Mac OS)

Credit to MadHatter

WINDOWS

Use your text editor of choice or if you don't have one use Windows Notepad
Opening with Notepad may or may not result in a fancy mess

  1. Close Spotify
  2. Open File Explorer and paste the following into the address bar %appdata%/Spotify¤
  3. Open the file named prefs with your text editor
  4. Change the numeric value following storage.size= . If storage.size= doesn't exist add it manually to the end of the file and assign numeric value. This value represents megabytes. One gigabyte equals 1024 megabytes. In the end, it should look something like this storage.size=1024
  5. Save the file