Skip to content

Instantly share code, notes, and snippets.

Avatar
💢
Nani!?!

Daemon daephx

💢
Nani!?!
  • A Cardboard Box
View GitHub Profile
@daephx
daephx / clone-gists.py
Last active Apr 16, 2020 — forked from SpotlightKid/clone-gists.py
Clone all gists of GitHub username given on the command line.
View clone-gists.py
#!/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 / !VBScriptExamples.md
Last active Mar 24, 2020
[VBScript Examples] #Examples
View !VBScriptExamples.md
@daephx
daephx / New-Gitignore.ps1
Last active Aug 14, 2020 — forked from colorqualia/gitignore.ps1
[New-Gitignore] Generate a new ignore file via 'gitignore.io'. #Powershell #Scripts
View New-Gitignore.ps1
<#
.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 / remove_empty_folder.py
Last active Dec 7, 2020
[Remove Empty Folder] Recursively delete empty directories #Python #Scripts
View remove_empty_folder.py
"""
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 / Split-Filetypes.ps1
Last active Apr 15, 2021
[Split-Filetypes] Create Directories and move files for each files extension. #Powershell #Scripts
View Split-Filetypes.ps1
<#
.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 / Backup-RepoList.ps1
Last active Mar 11, 2020
Generate a list of clone commands for repositories located in some directory.
View Backup-RepoList.ps1
# Script located in '.vscode\'
# Testing repos are in 'Github\"
$Git = Get-Command git.exe
$Path = "$PSScriptRoot\..\Github\"
$Backup = "$PSScriptRoot\GitList.txt"
$Repos = @()
gci $Path -Directory | % {
if (test-path "$($_)\.git") {
@daephx
daephx / !FFmpegExamples.md
Last active Apr 6, 2021
[FFmpeg Examples] Common FFmpeg Commands #Examples #Utilities
View !FFmpegExamples.md