Skip to content

Instantly share code, notes, and snippets.

@xxxVxxx
xxxVxxx / aws_usage.py
Created February 5, 2016 12:25 — forked from Bouke/aws_usage.py
Catch login failures / captcha input
#!/usr/bin/env python
"""
A script to query the Amazon Web Services usage reports programmatically.
Ideally this wouldn't exist, and Amazon would provide an API we can use
instead, but hey - that's life.
Basically takes your AWS account username and password, logs into the
website as you, and grabs the data out. Always gets the 'All Usage Types'
@xxxVxxx
xxxVxxx / How to download streaming video
Created February 5, 2016 12:19 — forked from danfinlay/How to download streaming video.md
How to download a streaming video with Google Chrome
#How to download streaming video
Streaming just means a download that they don't want you to keep. But Chrome's developer tools make it easy to access what's really going on under the hood.
##Open Developer Tools
From the page where you want to download some things, go into your chrome menu to open the developer tools. You can either:
1. (On a mac): Command-option-J
2. (On a PC): Control-alt-J
@xxxVxxx
xxxVxxx / README.md
Created February 4, 2016 16:02 — forked from jewzaam/README.md

##Yet another gist to provide Graphite support for Dashing Pull data from Graphite and present in Dashing. Support both graph and number widget.

Quick install:

dashing install 5088efcc94de2fecad5e

Set the graphite host/port and names of metrics in jobs/graphite.rb

@xxxVxxx
xxxVxxx / gist:9648264fd6f41bbb1f65
Last active November 25, 2022 06:52
boto3 aws find all IAM accesskeys details for the account
import boto3
boto3.setup_default_session(profile_name='IAM')
resource = boto3.resource('iam')
client = boto3.client("iam")
KEY = 'LastUsedDate'
for user in resource.users.all():
@xxxVxxx
xxxVxxx / gist:3377d29a5cfa32246196
Last active August 29, 2015 14:22
python sqlalchemy mysql data dump in json format as required by datatables in this case
#!/usr/bin/python
'''
Install pip/sqlalchemy/mysqldb
sudo apt-get install python-pip
sudo apt-get install python-dev libmysqlclient-dev
pip install sqlalchemy
@xxxVxxx
xxxVxxx / gist:b8c3cd97d4e6823d0330
Last active August 29, 2015 14:20
vim74 govim neocomplete with lua5.1 ubuntu

####SETUP VIM with LUA support (needed for neocomplete)

sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common 
sudo apt-get build-dep vim-gnome
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
sudo rm -rf /usr/local/share/vim

sudo rm /usr/bin/vim
sudo mkdir /usr/include/lua5.1/include
sudo mv /usr/include/lua5.1/*.h /usr/include/lua5.1/include/