git clone https://github.com/Neilpang/acme.sh.git
cd acme.sh
./acme.sh --installgit clone https://github.com/Neilpang/acme.sh.git
cd acme.sh
./acme.sh --install| @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 | 
| 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 | 
| #!/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: | 
| #!/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 | 
| @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 | 
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]/[/\]/\\}"