Skip to content

Instantly share code, notes, and snippets.

View JedMeister's full-sized avatar
😀

Jeremy Davis JedMeister

😀
View GitHub Profile
@abraithwaite
abraithwaite / chill-zoom.sh
Last active September 8, 2025 18:17
Zoom in Systemd Cgroups on Linux. Change the max allocations to fit your workstation.
#!/usr/bin/bash -xe
cat <<EOF > "${HOME}/.config/systemd/user/zoom.slice"
[Slice]
AllowedCPUs=0-4
MemoryHigh=6G
EOF
cat /usr/share/applications/Zoom.desktop | sed -E 's#^(Exec=).*$#Exec=/usr/bin/systemd-run --user --slice=zoom.slice /opt/zoom/ZoomLauncher#' > "${HOME}/.local/share/applications/Zoom.desktop"
@brunoais
brunoais / proton
Last active November 1, 2025 01:21 — forked from thingsiplay/proton
Proton script
#!/bin/bash
# Execute Windows programs with Proton from Steams installation folder, without
# starting Steam client.
#
# 1. Create a directory for Proton environment to run in. As an example make a
# folder "proton" in your home directory. This folder must exist in order
# to make Proton work.
#
# 2. Point the variable "env_dir" in this script to that folder or...
@mitchellurgero
mitchellurgero / jenkins.bash
Last active July 22, 2018 04:36
TKLDev Build Scripts / TKLDev Jenkins Build Scripts
#!/bin/bash
#source .bashrc
cd /turnkey/fab/products/$1
echo In products/$1
echo Current Build $2
export FAB_PATH=/turnkey/fab
export FAB_APT_PROXY=http://127.0.0.1:8124
@m-jowett
m-jowett / log.md
Last active July 21, 2025 10:04
Setup LibreOffice Online (Log/Guide) [WIP]

Setup LibreOffice Online (Log/Guide) [WIP]

About

This guide/log is based off my experience attempting to build and install LibreOffice Online and it's dependencies on my system.

The end goal is to get LibreOffice Online integrated with Karoshi Server.

LibreOffice Online is still in development (17/06/16).

@romainl
romainl / gist:9970697
Last active September 27, 2025 02:49
How to use Tim Pope's Pathogen

How to use Tim Pope’s Pathogen

I’ll assume you are on Linux or Mac OSX. For Windows, replace ~/.vim/ with $HOME\vimfiles\ and forward slashes with backward slashes.

The idea

Vim plugins can be single scripts or collections of specialized scripts that you are supposed to put in “standard” locations under your ~/.vim/ directory. Syntax scripts go into ~/.vim/syntax/, plugin scripts go into ~/.vim/plugin, documentation goes into ~/.vim/doc/ and so on. That design can lead to a messy config where it quickly becomes hard to manage your plugins.

This is not the place to explain the technicalities behind Pathogen but the basic concept is quite straightforward: each plugin lives in its own directory under ~/.vim/bundle/, where each directory simulates the standard structure of your ~/.vim/ directory.

@ibolmo
ibolmo / .htaccess
Created June 5, 2009 21:56
markdown and restructuredtext to HTML utility
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (.*)\.(?:md|markdown)$ /utilities/md2html.php?file=%{REQUEST_FILENAME} [QSA,L]
RewriteRule (.*)\.(?:rst)$ /utilities/rst2html.php?file=%{REQUEST_FILENAME} [QSA,L]
</IfModule>