Skip to content

Instantly share code, notes, and snippets.

View immontilla's full-sized avatar

Iván Mauricio Montilla Figueroa immontilla

View GitHub Profile
@immontilla
immontilla / adbconnect2zip.ps1
Created February 14, 2019 20:02
Just a Powershell script to download any Adobe Connect recording as a zip file
param([string]$filename="file.zip",[string]$url="")
Invoke-WebRequest -Uri ($url + "output/filename.zip?download=zip") -OutFile $filename
@immontilla
immontilla / ibm-api-connect-ubuntu-windows-10.sh
Created February 7, 2019 10:57
IBM API Connect on Ubuntu-Windows 10
#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
@immontilla
immontilla / mac-high-sierra-app-to-iso.sh
Created December 25, 2018 14:30
MAC OS X High Sierra ISO Creation
#!/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
#!/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
#
@immontilla
immontilla / LE-cert-verification-commands.sh
Last active September 30, 2018 08:02
Verifying Let's Encrypt certificates via command line
################################################################
#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 }'
> 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