Skip to content

Instantly share code, notes, and snippets.

View daephx's full-sized avatar
💢

Daemon daephx

💢
View GitHub Profile
@daephx
daephx / !FFmpegExamples.md
Last active November 12, 2022 14:36
[FFmpeg Examples] Common FFmpeg Commands #Commands #Examples

FFmpeg Examples

Personal collection of basic examples / scripts.

FFmpeg Documentation
A complete, cross-platform solution to record, convert and stream audio and video.

Table of contents

@daephx
daephx / Backup-RepoList.ps1
Last active November 12, 2022 14:15
Generate a list of clone commands for repositories located in some directory.
# Script located in '.vscode\'
# Testing repos are in 'Github\"
$Git = Get-Command git.exe
$Path = "$PSScriptRoot\..\Github\"
$Backup = "$PSScriptRoot\GitList.txt"
$Repos = @()
Get-ChildItem $Path -Directory | ForEach-Object {
if (Test-Path "$($_)\.git") {
@daephx
daephx / Split-Filetypes.ps1
Last active November 12, 2022 19:50
[Split-Filetypes] Create Directories and move files for each files extension. #PowerShell
<#
.SYNOPSIS
Create Directories and move files for each files extension.
#>
param([string]$Directory = $PWD)
function Move-File($x, $foldername) {
If (!(Test-Path $Directory\$foldername)) {
New-Item -ItemType Directory -Path $Directory -Name $foldername -ErrorAction Ignore | Out-Null
@daephx
daephx / remove_empty_folder.py
Last active November 12, 2022 14:12
[Remove Empty Folder] Recursively delete empty directories #Python #Scripts
"""
This script will recursively delete empty directories.
Script will default to the current directory,
Handled input with care,
A successful operation CANNOT be undone!
"""
import argparse
@daephx
daephx / New-Gitignore.ps1
Last active November 12, 2022 19:50 — forked from colorqualia/gitignore.ps1
[New-Gitignore] Generate a new ignore file via 'gitignore.io'. #PowerShell
<#
.SYNOPSIS
Generate a new ignore file via 'gitignore.io'
.LINK
https://www.toptal.com/developers/gitignore
#>
#Requires -Version 3.0
Function New-Gitignore {
@daephx
daephx / !VBScriptExamples.md
Last active November 12, 2022 14:13
[VBScript Examples] #Examples
@daephx
daephx / clone-gists.py
Last active November 23, 2023 10:36 — forked from SpotlightKid/clone-gists.py
Clone all gists of GitHub username given on the command line.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Clone all gists of GitHub user with given username.
Clones all gist repos into the current directory, using the gist id as the
directory name. If the directory already exists as a git repo, try to perform a
'git pull' in it.
"""
@daephx
daephx / Format-Relative.ps1
Last active November 12, 2022 19:50
[Powershell Examples] #PowerShell #Examples
<#
.SYNOPSIS
Diffrent methods for displaying relative path
#>
# Existing Path
$PWD | Resolve-Path -Relative
# Replace String
$Path -replace [regex]::Escape((Get-Location).Path), '.'
@daephx
daephx / Github-Markdown.md
Last active November 12, 2022 14:03
[Github Markdown] Examples of alignment using github flavored markdown #Examples #HTML
@daephx
daephx / CIP-GeneratorsPy.ipynb
Last active November 12, 2022 14:16
[Concepts in Programming] #Python #Jupyter #Learning
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.