Skip to content

Instantly share code, notes, and snippets.

View rezen's full-sized avatar

Andres Hermosilla rezen

View GitHub Profile
rezen / aws_actions.txt
Last active June 16, 2023 10:55
It's nice having a list of AWS IAM actions
require_once(__DIR__ . '/vendor/autoload.php');
$config = new OpenAPI\Client\Configuration;
$apiInstance = new OpenAPI\Client\Api\ContainerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client([
rezen /
Created July 31, 2018 20:36
Serverless lambda hack for python

The serverless-offline module handles node.js modules, but sls invoke will handle modules for python. So just create a node.js module with the same name as the python module, and a method with the same same which calls sls invoke ... and wallah!

'use strict';
* @description
* Frequently strings are dirty and need to
* have some HTML removed. Often times you may
* want to control the filtering a bit more, for
* example removing all elements except anchors.
#!/usr/bin/env bash
set -e
if [[ "$@" == *"--nofmt"* ]]; then
rezen /
Created April 5, 2017 18:50 — forked from eskil/
Example of generating CA certs and CA signed certs using python m2crypto.
Tools for creating a CA cert and signed server certs.
Divined from
The mk_temporary_xxx calls return a NamedTemporaryFile with certs.
Usage ;
# Create a temporary CA cert and it's private key
cacert, cakey = mk_temporary_cacert()
#!/usr/bin/env bash
# @author Andres Hermosilla
# @notes
# Jenkins ssl
# @todo
# - Setup security with LDAP
# - Add optional systems such as selenium

Keybase proof

I hereby claim:

  • I am rezen on github.
  • I am rezen ( on keybase.
  • I have a public key whose fingerprint is C4C1 2B93 6D91 CD53 5DEB D31B C2E6 DEA0 5DA0 698A

To claim this, I am signing this object:

:: Make sure to download and install dotnet45+ before running the script!
:: Install Chocolatey!
:: @todo Add
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString(''))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
:: Browsers
choco install -y firefox
choco install -y googlechrome
choco install -y ie11