Skip to content

Instantly share code, notes, and snippets.

View lidopaglia's full-sized avatar

Lido Paglia lidopaglia

View GitHub Profile
@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"
},
{
@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 / 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 / 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"
#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 / 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 '
@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 / 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 / improve_fonts.txt
Created April 1, 2020 17:10 — forked from j1cs/improve_fonts.md
Improve fonts archlinux
### Update
Make your Arch fonts beautiful easily!
This is what I do when I install Arch Linux to improve the fonts.
You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):
Install some fonts, for example:
sudo pacman -S ttf-dejavu ttf-liberation noto-fonts
Enable font presets by creating symbolic links:
@lidopaglia
lidopaglia / fix-infinality.md
Created April 1, 2020 17:15 — forked from cryzed/fix-infinality.md
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08: