Skip to content

Instantly share code, notes, and snippets.

View a13z's full-sized avatar

Alfonso Gonzalez a13z

  • AIlntelligence
  • London
View GitHub Profile
@a13z
a13z / aws_personalize_delete_dsg.py
Created February 21, 2024 09:54 — forked from james-jory/aws_personalize_delete_dsg.py
Deletes an Amazon Personalize dataset group, including all of its associated resources
#!/usr/bin/env python
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
"""
Deletes one or more Amazon Personalize dataset groups, including all of their associated resources:
- Recommenders
- Campaigns
- Filters
@a13z
a13z / jq-cheetsheet.md
Created January 29, 2021 15:52 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@a13z
a13z / HybridBank.sol
Created June 15, 2020 17:34
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=true&gist=
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/ownership/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./aave/interfaces/IAToken.sol";
import "./aave/interfaces/ILendingPool.sol";
import "./aave/interfaces/ILendingPoolAddressesProvider.sol";
contract HybridBank is Ownable {
@a13z
a13z / HybridBank.sol
Created June 15, 2020 17:31
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.17+commit.d19bba13.js&optimize=true&gist=
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/ownership/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./aave/interfaces/IAToken.sol";
import "./aave/interfaces/ILendingPool.sol";
import "./aave/interfaces/ILendingPoolAddressesProvider.sol";
contract HybridBank is Ownable {
@a13z
a13z / iterm2-solarized.md
Created March 5, 2020 16:14 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@a13z
a13z / bootstrap.sh
Created February 26, 2020 20:16 — forked from gmaliar/bootstrap.sh
Spinning up a Kubernetes cluster
# Some tools that make it easier to work with our templates
brew install gettext --force
brew install kubectl
brew install kops
brew install kubernetes-helm
brew install terraform
brew install awscli
brew install jq
awscli configure --profile kops
### Keybase proof
I hereby claim:
* I am dramagods on github.
* I am dramagods (https://keybase.io/dramagods) on keybase.
* I have a public key ASDUeb3bekA6qMe3kwU9g1v_vVsuqv_ElYbS3yk1EOhIDgo
To claim this, I am signing this object:
#
# Set the build number to the current git commit count.
# If we're using the Dev scheme, then we'll suffix the build
# number with the current branch name, to make collisions
# far less likely across feature branches.
# Based on: http://w3facility.info/question/how-do-i-force-xcode-to-rebuild-the-info-plist-file-in-my-project-every-time-i-build-the-project/
#
git=`sh /etc/profile; which git`
appBuild=`"$git" rev-list --all |wc -l`
if [ $CONFIGURATION = "Debug" ]; then
@a13z
a13z / install-comodo-ssl-cert-for-nginx.rst
Created September 29, 2015 14:41 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert