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
param([string]$filename="file.zip",[string]$url="") | |
Invoke-WebRequest -Uri ($url + "output/filename.zip?download=zip") -OutFile $filename |
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
#Add nodeJS repository | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
#Add yarn repository | |
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update | |
#Install dev dependencies | |
sudo apt-get install gcc g++ make | |
#Install nodeJS & yarn | |
sudo apt-get install nodejs yarn |
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
#!/bin/bash | |
hdiutil info | grep /dev/disk | grep partition | cut -f 1 | xargs hdiutil detach | |
hdiutil attach /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/HighSierra | |
hdiutil create -o /tmp/HighSierra -size 8g -layout SPUD -fs HFS+J -type SPARSE | |
hdiutil attach /tmp/HighSierra.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build | |
asr restore -source /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase | |
ditto -V /Volumes/HighSierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation/ | |
ditto -V /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist | |
ditto -V /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg | |
hdiutil detach /Volumes/HighSierra |
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
#!/usr/bin/perl | |
use lib qw(/usr/local/lib/rip-lib/lib/perl5/); | |
#------------------------------------------------------------------------- | |
# Rip - RegRipper, CLI version | |
# Use this utility to run a plugins file or a single plugin against a Reg | |
# hive file. | |
# | |
# Output goes to STDOUT | |
# Usage: see "_syntax()" function | |
# |
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
################################################################ | |
#Commands to check Let's Encrypt certificates status after renew | |
################################################################ | |
#Concise - Its output is the expire date | |
echo | openssl s_client -connect blog.immontilla.eu:443 2>/dev/null | openssl x509 -noout -enddate | |
#Certificate main fields (subject, start date, expire date, issuer and status) | |
curl -v https://blog.immontilla.eu 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }' |
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
> nyc mocha -t 0 test/*.js && cucumber-js | |
#org.example.mynetwork | |
✓ Alice can add assets that she owns | |
✓ Alice cannot add assets that Bob owns | |
✓ Bob can add assets that he owns | |
✓ Bob cannot add assets that Alice owns | |
✓ Alice can submit a transaction from her assets |