This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sourceFolder = "E:\path\to\folder" | |
$epubs = Get-ChildItem -Path $sourceFolder -Filter "*.epub" | |
foreach ($epub in $epubs) { | |
$destination = Join-Path -Path $sourceFolder -ChildPath ($epub.BaseName + ".mobi") | |
Copy-Item -Path $epub.FullName -Destination $destination | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log <hash>.. --oneline //HEAD is implicit | |
git log --after="2014-02-12T16:36:00-07:00" | |
git log --before="2014-02-12T16:36:00-07:00" | |
git log --since="1 month ago" | |
git log --since="2 weeks 3 days 2 hours 30 minutes 59 seconds ago" | |
git log --merges --first-parent main \ | |
--pretty=format:"%h %<(10,trunc)%aN %C(white)%<(15)%ar%Creset %C(red bold)%<(15)%D%Creset %s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from pytube import Playlist | |
from pytube import YouTube | |
import jsonpickle | |
from dataclasses import dataclass | |
@dataclass | |
class Metadata: | |
albumArtist: str | |
artist: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -r | grep 'origin/dependabot/' | while read -r branch ; do git cherry-pick $(git rev-parse $branch) ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Initialise new repository on the command line | |
vi README.md | |
git init | |
git add README.md | |
git commit -m "Initial commit" | |
git remote add origin git@github.com:<org/user>/<reponame>.git | |
git push -u origin master |