Skip to content

Instantly share code, notes, and snippets.

View GuyMicciche's full-sized avatar

Guy Micciche GuyMicciche

View GitHub Profile
@zlovatt
zlovatt / CEP Debugging in vscode.md
Last active February 23, 2023 07:54
CEP Debugging in vscode

Setup

  • in .vscode folder in your project root, create a file launch.json
{
  "version": "0.1.0",
  "configurations": [
    {
      "name": "[Your Tool] Debugger",
 "type": "chrome",
@abix-
abix- / OneNote.ps1
Last active March 3, 2023 16:51
Converting between OneNote Tables and PowerShell PSObject
function Get-1NotePage {
<#
.SYNOPSIS
Finds the ID of a OneNote page
.DESCRIPTION
http://thebackend.info/powershell/2017/12/onenote-read-and-write-content-with-powershell/
.EXAMPLE
Get-1NotePage -Name "PowerShell Test"
#>
[cmdletbinding()]
@kurlov
kurlov / mkv embed soft subtitles
Created December 16, 2017 23:41
ffmpeg command to add .srt based subtitles to an .mkv file
ffmpeg -i in.mkv -f srt -i in.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s srt out.mkv
@navels
navels / plex_season_rename_bookmarklet.js
Created November 23, 2017 18:30
Bookmarklet to rename TV show seasons in Plex
javascript:(function(){var inputId='plex-season-title-hack';var input=document.getElementById(inputId);if(!input){var html= '<label for="'+inputId+'">Title</label><div class="input-group"><input type="text" name="title" id="'+inputId+'"></div></div></div>';document.getElementById('lockable-summary').parentElement.insertAdjacentHTML('afterend', html);}})();
@nlac
nlac / splitter.js
Last active March 20, 2024 02:05
A small js snippet to split a merged audio track to parts by silence analysis. Based on ffmpeg "silencedetect" filter and node.js.
/**
* This javascript snippet is able to split a merged audio track to parts by silence analysis
* It is based on ffmpeg (https://ffmpeg.org), especially on the silencedetect filter (https://ffmpeg.org/ffmpeg-filters.html#silencedetect)
*
* Assumptions:
* - nodejs is installed
* - ffmpeg is installed
*
* Usage:
* - fill the options object
@blenderdeluxe
blenderdeluxe / vray_subdivision_to_multiple_objects.py
Created April 12, 2017 23:14
Add vray subdivision to multiple objects in Maya
#Run script in python view on script editor
#Select all objects that need apply vray subdivision
#Execute in maya python console makeVrayAttributes(1)
import maya.cmds as cmds
import maya.mel as mel
def makeVrayAttributes(startID=1):
sel = cmds.ls(sl=1)
currentID=startID
@seanriceaz
seanriceaz / PS-SavePairsOfLayers.jsx
Last active October 3, 2016 18:08
This script will loop through layers in the first two layer groups in a photoshop file toggling them one by one and exporting a png of each flattened combination
// This script will loop through layers in the first two layer groups
// in a photoshop file toggling them one by one and exporting a png of
// each flattened combination
// NOTE: Start the file with all the grouped layers set invisible,
// but the groups themselves visible, and any non-grouped layets you want
// to put in all the files visible.
#target photoshop
@har07
har07 / BaseViewModel.cs
Last active February 24, 2023 17:16
Xamarin.Form : Binding item's IsVisible according to ListView selection
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
namespace BasicListView
{
public class BaseViewModel : INotifyPropertyChanged
{