Skip to content

Instantly share code, notes, and snippets.

View bubeamos's full-sized avatar

Amos, Chidiebube bubeamos

  • Canada
View GitHub Profile
@Swalloow
Swalloow / dynamo_delete_all.py
Created May 18, 2018 06:38
Boto3 DynamoDB delete all items
import boto3
dynamodb = boto3.resource('dynamodb', 'region-name')
table = dynamodb.Table('table-name')
scan = table.scan(
ProjectionExpression='#k',
ExpressionAttributeNames={
'#k': 'name'
}
@code-sleuth
code-sleuth / setup.sh
Created March 21, 2018 09:18
set up my flask api on aws instance
#!/bin/bash
sudo apt-get update
sudo apt-get install python3 python3-pip postgresql postgresql-contrib nginx virtualenv
mkdir ~/cp3
cd ~/cp3
virtualenv --python=python3 venv
git clone https://github.com/code-sleuth/yummy-recipes-api.git yummy-api
cd yummy-api
touch .env
@ahmetb
ahmetb / gcrgc.sh
Last active March 10, 2025 21:51
Script to clean up Google Container Registry images pushed before a particular date
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@arunoda
arunoda / gist:7790979
Last active October 20, 2025 08:27
Installing SSHPass

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X