We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
#!/bin/bash | |
user_name=$1 | |
echo ${user_name} | |
echo "Deleting Access Key" | |
aws iam delete-access-key --access-key-id $(aws iam list-access-keys --user-name ${user_name} \ | |
| jq -r '.AccessKeyMetadata[] | .AccessKeyId' ) --user-name ${user_name} |
function getTrilateration(position1, position2, position3) { | |
var xa = position1.x; | |
var ya = position1.y; | |
var xb = position2.x; | |
var yb = position2.y; | |
var xc = position3.x; | |
var yc = position3.y; | |
var ra = position1.distance; | |
var rb = position2.distance; | |
var rc = position3.distance; |
import sys | |
import urllib | |
import re | |
import random | |
from lxml import etree | |
class Downloader(): | |
''' | |
Class to retreive HTML code | |
and binary files from a |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
# file: /etc/nginx/sites-available/example.com | |
# nginx configuration for example.com | |
server { | |
listen 80; | |
server_name example.com; | |
access_log /srv/www/example.com/logs/access.log; | |
error_log /srv/www/example.com/logs/error.log; | |
# pass root to django |
from django import template | |
from django.core.urlresolvers import reverse | |
register = template.Library() | |
@register.simple_tag | |
def add_active(request, name, by_path=False): | |
""" Return the string 'active' current request.path is same as name | |
Keyword aruguments: |