Skip to content

Instantly share code, notes, and snippets.

@dirtycajunrice
dirtycajunrice / plex.conf
Last active July 14, 2022 14:35
Plex-Apache-Reverse-Proxy
# requires a2enmod proxy proxy_http proxy_wstunnel rewrite ssl
<VirtualHost *:80>
ServerName plex.domain.tld
ServerAlias plex.domain2.tld
Redirect / https://plex.domain.tld
</VirtualHost>
<VirtualHost *:443>
@domwrap
domwrap / Google Music All Access Family Plan for G-Suite GMail Vanity Domains.md
Last active August 24, 2023 02:26
Google Music All Access Family Plan for G-Suite / GMail Vanity Domains

Google Music All Access Family Plan for G-Suite / GMail Vanity Domains

Synopsis

I had wondered about this some weeks ago before finally trying it out today. I'm surprised nobody else had tried already. I was successful enough to be satisfied for my own uses. YMMV.

Result is I have a new Play Music account with Family Sharing which I can share with my G-Suite users, with all my playlists* moved over, and without anyone needing to maintain a separate email account.

This whole process took me about an hour, including moving across 15 playlists, but not including MX record propagation.

@arieljannai
arieljannai / pycharm.bat
Created January 8, 2017 11:07
Add PyCharm to context menu (right click menu)
@echo off
@rem throw this file in jetbrains installation folder, it takes the last created PyCharm folder (the latest ide update) for the script
FOR /F "delims=" %%i IN ('dir /b /ad-h /t:c /od -filter "PyCharm*"') DO SET a=%%i
SET PyCharmPath=C:\Program Files (x86)\JetBrains\%a%\bin\PyCharm64.exe
echo %PyCharmPath%
echo Adding file entries
a. –XX:+UseParNewGC – Use parallel GC in the young generation
b. –XX:–UseParNewGC – Use serial GC in young generation
c. –XX:+UseParallelGC - Use parallel GC in the young generation, serial in old generation
d. –XX:+UseSerialGC – Use serial generational GC
e. –XX:+UseParallelOldGC – Use parallel GC in both young and old generation.
f. –XX:+UseConcMarkSweepGC – Use Concurrent Mark Sweep GC in old generation.
g. –XX:+AlwaysTenure – Always create objects in old generation.
h. –XX:+UseG1GC – Use G1 garbage collector
i. –XX:PretenureSizeThreshold=<n bytes> - Allocate objects greater than n bytes in size directly in old generation
j. –Xms=<nM/m/g/G> – This option lets you specify minimum memory that is allocated to your Java heap.
@alirobe
alirobe / reclaimWindows10.ps1
Last active October 19, 2024 05:31
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@u0d7i
u0d7i / disable_vim_auto_visual_on_mouse.txt
Last active July 26, 2024 06:24
Disable vim automatic visual mode on mouse select
Disable vim automatic visual mode on mouse select
issue: :set mouse-=a
add to ~/.vimrc: set mouse-=a
my ~/.vimrc for preserving global defaults and only changing one option:
source $VIMRUNTIME/defaults.vim
set mouse-=a
@jansanchez
jansanchez / gist:ce5b0ca1c5e538f4b266
Last active February 28, 2024 00:27
How to install NVIDIA video drivers in Elementary OS
@josephspurrier
josephspurrier / drop_encrypt.go
Last active March 24, 2020 17:48
Golang - Drag and Drop AES Encryption and Decryption
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"fmt"
"io"
"io/ioutil"
"os"
@olasd
olasd / stream_to_youtube.sh
Created March 28, 2014 19:58
Stream video to youtube via ffmpeg
#! /bin/bash
#
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube
@woods
woods / gen-key-script
Last active October 31, 2024 23:23
Creating gpg keys non-interactively
Key-Type: 1
Key-Length: 2048
Subkey-Type: 1
Subkey-Length: 2048
Name-Real: Root Superuser
Name-Email: root@handbook.westarete.com
Expire-Date: 0