Skip to content

Instantly share code, notes, and snippets.

View anpleenko's full-sized avatar
🏠
Working from home

Alexander Anpleenko anpleenko

🏠
Working from home
View GitHub Profile
@anpleenko
anpleenko / plexDatabaseBackupScript.sh
Created April 5, 2024 07:08 — forked from ssmereka/plexDatabaseBackupScript.sh
Plex Media Server database backup script.
#!/bin/bash
# Backup a Plex database.
# Author Scott Smereka
# Version 1.0
# Script Tested on:
# Ubuntu 12.04 on 2/2/2014 [ OK ]
# Plex Database Location. The trailing slash is
@anpleenko
anpleenko / plexDatabaseRestoreScript.sh
Created April 5, 2024 07:08 — forked from ssmereka/plexDatabaseRestoreScript.sh
Plex Media Server database backup restore script.
#!/bin/bash
# Restore a Plex database.
# Author Scott Smereka
# Version 1.0
# Script Tested on:
# Ubuntu 12.04 on 2/2/2014 [ OK ]
# Plex Database Location. The trailing slash is
@anpleenko
anpleenko / plex_media_permissions_4_noobies.md
Created February 20, 2024 21:03 — forked from pjobson/plex_media_permissions_4_noobies.md
Plex Media Permissions for Linux Noobies

Plex Media Permissions for Linux Noobies

There is no problem with being a noobie and I do not use the term to sligtht or disparage anyone.

This is a way to setup your permissions for running Plex in Linux. Different folks may use different methods.

The permissions concepts provided here apply to OSX, but the users and groups are controlled and modified differently, so much of this will not work properly. I think the command is dscl, but that could be out of date.

There are many ways to setup your permissions scheme in Linux, this methodology describes a way to do it, not everyone will like it, but it works for me, so whatever.

@anpleenko
anpleenko / nvme_mount.md
Created June 2, 2023 19:17 — forked from a-maumau/nvme_mount.md
how to mount m.2 ssd/hdd
@anpleenko
anpleenko / gist:652ce0bf1de010707d4cc37c8bb412db
Created November 20, 2022 07:39 — forked from rais38/gist:5766980
Create patch from stash
git stash show -p stash@{0} > Stash0.patch
@anpleenko
anpleenko / git-clearHistory
Created February 27, 2022 08:56 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@anpleenko
anpleenko / truncate.css
Created February 2, 2021 16:13 — forked from elky/truncate.css
text-overflow ellipsis with 100% width
/*
Demo: https://jsfiddle.net/elky/f6khaf2t/
<div class="element">
<div class="truncate">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@anpleenko
anpleenko / tmux-cheatsheet.markdown
Created October 12, 2020 23:36 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@anpleenko
anpleenko / tmux.md
Created October 12, 2020 23:36 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@anpleenko
anpleenko / setup.md
Created September 12, 2020 07:54 — forked from jdesive/setup.md
Mount NFS share from synology NAS to Ubuntu

Mount Synology NFS share to Ubuntu 16.04

I have all hardware virtualized in ESXi 6.5...
Synology DSM 5.2-5644
Ubuntu 16.04

Start

On your fresh install on Ubuntu 16.04:

  1. Click the Connections icon on the top bar
  2. Goto Edit Connections