git config core.sparsecheckout true
nano .git/info/sparse-checkout# .git/info/sparse-checkout
/*
!/wp-content/uploads/20*
| mklink /d "symlinkdirname" "C:\Users\User\Path\to\dir" |
| param( | |
| [string]$DirectoryPath = ".", | |
| [string]$CsvFilePath = ".\directory_list.csv" | |
| ) | |
| # Function to check if a directory is already listed in the CSV | |
| function Read-DirectoryRow { | |
| param( | |
| $DataTable, | |
| [string]$DirectoryName |
| from bs4 import BeautifulSoup | |
| import pandas as pd | |
| # Step 1: Parse the favorites_5_16_24.html file | |
| with open('favorites_5_16_24.html', 'r', encoding='utf-8') as file: | |
| soup = BeautifulSoup(file, 'html.parser') | |
| # Extract all links | |
| links = soup.find_all('a') | |
| bookmarks = [{'name': link.get_text(), 'url': link['href']} for link in links] |
| # .\python_embeded\python.exe .\python_embeded\Scripts\pip.exe install jurigged | |
| .\python_embeded\python.exe -m jurigged --watch ComfyUI/custom_nodes/ComfyUI_MaraScott_nodes/ -v ComfyUI/main.py --listen local.marascott.ai --port 8188 |
| Get-ChildItem -Path "C:\Path\To\Dir" -Recurse | Select @{Name="MB Size";Expression={ "{0:N1}" -f ($_.Length / 1MB) }}, Fullname, LastWriteTime | Export-CSV -Path "C:\Path\To\Dir\list.csv" -NoTypeInformation |
| <?php | |
| echo "ABSTRACT : DECLARE CLASS THE WAY YOU WANT", "\n\n"; | |
| abstract class AbstractClass | |
| { | |
| // Our abstract method only needs to define the required parameters | |
| abstract protected function prefixName($name); | |
| } | |
| class ConcreteClass extends AbstractClass |
git config core.sparsecheckout true
nano .git/info/sparse-checkout# .git/info/sparse-checkout
/*
!/wp-content/uploads/20*
| git rev-list --reverse master | ruby -ne 'i ||= 0; i += 1; puts $_ if i % 1 == 0' | xargs -I{} git push other_remote +{}:refs/heads/other_branch |
| # Adjust the following variables as necessary | |
| REMOTE=origin | |
| BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| BATCH_SIZE=500 | |
| # check if the branch exists on the remote | |
| if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then | |
| # if so, only push the commits that are not on the remote already | |
| range=$REMOTE/$BRANCH..HEAD | |
| else |