Skip to content

Instantly share code, notes, and snippets.

@xthezealot
xthezealot / README.md
Last active March 4, 2025 19:55
Normalize unicode file names (converts UTF-8 NFD to NFC). Required by macOS clients through AFP/NFS/SMB. Tested on Synology DSM 6.2 with built-in Python 2.7.12.

NFCFN.py

Normalize unicode file names (converts UTF-8 NFD to NFC).
Required by macOS clients through AFP/NFS/SMB.

Tested on Synology DSM 6.2 with built-in Python 2.7.12.

Usage

@danjargold
danjargold / whatFilesHaveIShared.gs
Created August 11, 2018 09:31
Google script to list (on a Google Sheet) all files shared in your google drive, including all viewers, editors, and sharing permissions. Credit goes to @woodwardtw (https://gist.github.com/woodwardtw/22a199ecca73ff15a0eb) as this is an improvement on his code which only assesses a single folder and one level of sub-folders down.
function listFolders(folder) {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow(["Name", "Sharing Access", "Sharing Permission", "Get Editors", "Get Viewers", "Date", "Size", "URL", "Download", "Description", "Type"]); //writes the headers
//var folder = DriveApp.getFolderById("INSERT_YOUR_FILE_ID");//that long chunk of random numbers/letters in the URL when you navigate to the folder
//getLooseFiles(folder, sheet);
//getSubFolders(folder, sheet);
//instead of getting folder by ID rather get all folders and cycle through each. Note this will miss loose files in parent directory.
var folder = DriveApp.getFolders()
@Koze
Koze / PrivavteFrameworkDiffs.tsv
Last active January 28, 2019 14:31
macOS 11.13.5 - 10.14 first Beta (18A293u) PrivavteFrameworks diffsv
10.13.5 10.14 Beta (18A293u) Diff
ACDEClient.framework ACDEClient.framework
AOSAccounts.framework AOSAccounts.framework
AOSAccountsLite.framework AOSAccountsLite.framework
AOSKit.framework AOSKit.framework
AOSMigrate.framework AOSMigrate.framework
AOSUI.framework AOSUI.framework
APFS.framework APFS.framework
APTransport.framework APTransport.framework
AVConference.framework AVConference.framework
@Hellowlol
Hellowlol / IMDb top 250
Last active January 18, 2019 19:03
top250
from plexapi.server import PlexServer
from imdbpie import Imdb
baseurl = 'http://10.0.0.97:32400'
token = ''
plex = PlexServer(baseurl, token)
imdb = Imdb()
top = imdb.top_250()
#### systemd script (/etc/systemd/system/plexdrive.service):
[Unit]
Description=Plexdrive
AssertPathIsDirectory=/media/plexdrive/
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/plexdrive -fuse-options allow_other -log-level 2 /media/plexdrive/
ExecStop=/bin/fusermount -u /media/plexdrive/
@hthighway
hthighway / Plex Routing thru SSH Tunnel
Last active August 24, 2022 10:05 — forked from MarMed/README.md
Routing plex traffic through an SSH tunnel
#Routing plex traffic through an SSH tunnel
This guide creates a reverse SSH tunnel to route all Plex server traffic through it.
Step 2 is done on the tunnel, all other steps are done on the plex server.
#1. Setup SSH keys (if you already have key based authenthication setup skip to step 2)
On plex server:
@JonnyWong16
JonnyWong16 / plex_imdb_top_250_collection.py
Last active March 6, 2024 14:13
Automatically create an IMDB Top 250 collection in Plex using an existing movie library
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
#
# Automated IMDB Top 250 Plex collection script by /u/SwiftPanda16
#
# *** Use at your own risk! ***
# *** I am not responsible for damages to your Plex server or libraries. ***
#
#------------------------------------------------------------------------------
anonymous
anonymous / letterboxd_csv.py
Created February 14, 2017 16:21
import csv
import re
import urllib
from couchpotato.core.helpers.variable import tryInt, splitString, removeEmpty
from couchpotato.core.logger import CPLog
from couchpotato.core.media.movie.providers.automation.base import Automation
log = CPLog(__name__)
@rahatarmanahmed
rahatarmanahmed / README.md
Created August 28, 2016 16:29
Imports Letterboxd scores into taste.io

Letterboxd -> Taste.io import script

This script imports your Letterboxd ratings into taste.io.

Usage

Too lazy to make this into an npm package so here's how you could use it. You'll need nodejs and npm.

  1. Save the script
  2. Run npm i through2 JSONStream got cookie x-ray in the script's directory
@alibo
alibo / iran-sanctions_blocker-sites.csv
Last active February 17, 2025 13:58
List of sites which block IPs come from Iran [UPDATING... (July 16, 2020)] #SANCTIONS
Title URI
Flurry by Yahoo https://dev.flurry.com/secure/signup.do
Google NikCollection https://dl.google.com/edgedl/photos/nikcollection-full-1.2.11.dmg
Bitbucket http://bitbucket.org/
SoftLayer http://softlayer.com/
VirtualBox http://download.virtualbox.org/virtualbox/5.0.16/VirtualBox-5.0.16-105871-OSX.dmg
Docker Hub https://hub.docker.com/
Oracle http://oracle.com/
Java http://java.com
Sun http://sun.com