This file contains hidden or 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
| $createdfolders = 0 | |
| $movedfiles = 0 | |
| Get-ChildItem -Recurse | Where-Object { !$_.PSIsContainer } | ForEach-Object -Process { | |
| $path = $_.FullName | |
| $shell = New-Object -COMObject Shell.Application | |
| $folder = Split-Path $path | |
| $file = Split-Path $path -Leaf | |
| $shellfolder = $shell.Namespace($folder) |
This file contains hidden or 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
| pipeline | |
| { | |
| environment | |
| { | |
| REPO_OWNER = "Acme" | |
| REPO_NAME = "Foo" | |
| ARTIFACT_NAME = "Dependency.zip" | |
| } | |
| stages |
This file contains hidden or 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
| :root { | |
| --tab-height: 24px !important; | |
| } | |
| .tab { | |
| height: var(--tab-height) !important; | |
| } | |
| .tab:not(:hover) .closebox { | |
| display: none; | |
| } |
This file contains hidden or 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
| #!/usr/bin/env python2.7 | |
| import sys | |
| from PIL import Image | |
| im = Image.open(sys.argv[1]) | |
| w, h = im.size | |
| colors = [] | |
| for x in range (w): | |
| for y in range(h): | |
| rgb = im.getpixel((x,y)) | |
| if rgb not in colors: |
This file contains hidden or 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
| #!/bin/sh | |
| if [ -d "$1" ]; | |
| then | |
| sudo rsync -aAXv --progress --exclude={"/files/*","/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/home/*/.cache/*","/home/*/Sync/*","/home/*/.mozilla/*"} / "$1"; | |
| else | |
| echo $'usage:\n'$0' </path/to/target/directory>'; | |
| echo $'\nError: invalid target directory, cancelling backup..'; | |
| fi |