Skip to content

Instantly share code, notes, and snippets.

View lidopaglia's full-sized avatar

Lido Paglia lidopaglia

View GitHub Profile
@lidopaglia
lidopaglia / sync_playlists_to_users.py
Created September 18, 2019 16:00 — forked from JonnyWong16/sync_playlists_to_users.py
Sync Plex playlists to shared users.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Description: Sync Plex playlists to shared users.
# Author: /u/SwiftPanda16
# Requires: plexapi, requests, xmltodict
import requests
import xmltodict
@lidopaglia
lidopaglia / dotfiles-install.sh
Last active May 23, 2019 14:12
Backup existing homedir files and install dotfiles as bare git repo
#!/bin/bash
git clone --bare https://github.com/lidopaglia/dotfiles.git $HOME/.dotfiles
function dot {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .dotfiles-backup
dot checkout
if [ $? = 0 ]; then
echo "Checked out dotfiles.";
else
@lidopaglia
lidopaglia / xiong-chiamiov.sh
Created April 9, 2019 13:15
from xiong-chiamiov.zsh theme in oh-my-zsh
# user, host, full path, and time/date
# on two lines for easier vgrepping
# entry in a nice long thread on the Arch Linux forums: https://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;30m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}'%D{"%a %b %d, %H:%M"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
%{\e[0;34m%}%B└─%B[%{\e[1;35m%}$%{\e[0;34m%}%B]>%{\e[0m%}%b '
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
#Given the value from "msExchRecipientDisplayType" attribute
#in active directory will translate to the MailboxType
# https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_exchon-mso_o365b/recipient-type-values/7c2620e5-9870-48ba-b5c2-7772c739c651
function Get-MailboxType ($DisplayType){
switch ($DisplayType) {
-2147483642 {"RemoteUserMailbox"}
-2147481850 {"RemoteRoomMailbox"}
-2147481594 {"RemoteEquipmentMailbox"}
0 {"UserMailbox (shared)"}
@lidopaglia
lidopaglia / killadobe.sh
Created October 18, 2017 15:06 — forked from CyberPunkCodes/killadobe.sh
Mac Bash script to kill Adobe Create Cloud and other processes that Adobe forces on us.
#!/bin/bash
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n"
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist
echo "\n\n--- Done! ---\n\n"
@lidopaglia
lidopaglia / YIFY.json
Created September 16, 2017 13:10
Handbrake preset
{
"VersionMajor" : 23,
"PresetList" : [
{
"PictureForceWidth" : 0,
"PictureHeight" : 0,
"PictureDeblockCustom" : "qp=0:mode=2",
"SubtitleAddForeignAudioSubtitle" : false,
"PictureDeinterlacePreset" : "default",
"AudioEncoderFallback" : "ca_aac",
@lidopaglia
lidopaglia / .travis.yml
Created March 2, 2017 15:57 — forked from TangChr/.travis.yml
Travis CI: Build and test Jekyll website using HTMLProofer
language: ruby
rvm: 2.3.3
branches:
only:
- master
script: bundle exec rake test
@lidopaglia
lidopaglia / keybindings.json
Last active December 16, 2016 21:42
Custom settings for running Visual Studio Code on macOS
// Place your key bindings in this file to overwrite the defaults
// 🎩 tip: https://blogs.technet.microsoft.com/heyscriptingguy/2016/12/07/make-visual-studio-code-more-like-the-integrated-scripting-environment/
[
{ "key": "f8", "command":"workbench.action.terminal.runSelectedText",
"when": "editorTextFocus && editorLangId == 'powershell'" },
{
"key": "shift+cmd+d", "command": "workbench.action.terminal.focus",
"when": "editorTextFocus"
},
{
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist>
<array>
<dict>
<key>AudioList</key>
<array>
<dict>
<key>AudioBitrate</key>
<string>160</string>

Keybase proof

I hereby claim:

  • I am lidopaglia on github.
  • I am lidopaglia (https://keybase.io/lidopaglia) on keybase.
  • I have a public key whose fingerprint is 1AB0 CD4C D566 07B1 8B85 784E 889E 1BBD 2986 FF6D

To claim this, I am signing this object: