declare -A signatures=( [JPEG]='^\xFF\xD8\xFF' [PNG]='^\x89PNG\x0D\x0A\x1A\x0A' [SVG]='^<svg' [GIF]='^GIF' [BMP]='^BM' [PSD]='^8BPS' [SWF]='^<FWS')
for key in "${!signatures[@]}"
do
echo "$key => ${signatures[$key]}"
escaped="${signatures[$key]/[/\]/\\}"
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
| @echo off | |
| setlocal | |
| CALL :GETPARENT PARENT | |
| IF /I "%PARENT%" == "powershell" GOTO :ISPOWERSHELL | |
| IF /I "%PARENT%" == "pwsh" GOTO :ISPOWERSHELL | |
| endlocal | |
| echo This script must be run from Powershell console. Quitting... | |
| echo. >&2 | |
| echo ERROR: This batch file must be run from a PowerShell prompt >&2 |
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/bash | |
| # to use this execute in console | |
| # sudo /bin/bash -c \ | |
| # "$(curl -fsSL https://gist.githubusercontent.com/VadimDor/083e6bb65079492e713fea17f20561ef/raw/xxx-hash-of-actial-version-xxx/brew.sh)" | |
| # where xxx-hash-of-actial-version-xxx you can see here in raw view | |
| # .---------- constant part! | |
| # vvvv vvvv-- the code from above |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/bash | |
| # Intended to be set as cron job for LetsEncrypt certificate renew. | |
| # Sends colorized html-emails on successful renewal or by errors | |
| # Licence: LGPLv2 | |
| # Author: | |
| # Vadim Dorezuk https://github.com/VadimDor/ | |
| # Usage: download, change emails parameters below, localize messages, enjoy | |
| # Depends on: |
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
| fs = require 'fs' | |
| InputDialog = require '@aki77/atom-input-dialog' | |
| untildify = require 'untildify' | |
| {CompositeDisposable} = require 'atom' | |
| {showError} = require './helper' | |
| [GistListView, GistClient] = [] | |
| module.exports = AtomGist = | |
| subscriptions: null | |
| client: null |
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
| @echo off | |
| setlocal EnableDelayedExpansion EnableExtensions | |
| for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do ( | |
| set "DEL=%%a" | |
| ) | |
| rem For coloring thanks to JFL | |
| rem https://stackoverflow.com/questions/4339649/how-to-have-multiple-colors-in-a-windows-batch-file/5344911#5344911 | |
| rem Prepare a file ".colored" with only one dot for coloring |