I hereby claim:
- I am kamigerami on github.
- I am kamigerami (https://keybase.io/kamigerami) on keybase.
- I have a public key ASBLyHnejLedhlD4kM7wfXXH93-gar3Om1euhP_tjDMivgo
To claim this, I am signing this object:
#!/usr/bin/ruby | |
# CS50 Harvard PSET 1 - Bad Credit in Ruby. | |
prompt = "Please enter a valid CC number : " | |
input = nil # initialize the variable so you can invoke methods on it | |
input_array = Array.new | |
input_add = Array.new | |
type_of_card = nil | |
loop do | |
puts "#{prompt}" |
#!/usr/bin/python | |
### author : Kami Gerami | |
### This script will setup a new ghost instance under /var/www/domain/nameofyourblog | |
### it will create a nginx conf file under /etc/nginx/sites-enabled/nameofyourblog.domain | |
### it requires template files to be placed under /opt/projects/subtemp.template/{etc,var} | |
import time | |
import web | |
import socket | |
import shutil | |
import os |
# This versions uses ELB loadbalancing | |
# The ELB points to these two HAProxy hosts | |
# The C-name of the Domain points to the ELB | |
# ELB -> HAPROXY 1 or 2 -> Varnish --> HIT or MISS --> HAPROXY 1 or 2 -> Backend 1/2/3 | |
vcl 4.0; | |
import directors; | |
backend haproxy1 { | |
.host = "172.31.xx.235"; # back to HAPROXY-1 internal address | |
.port = "8080"; | |
.probe = { |
I hereby claim:
To claim this, I am signing this object:
- name: Create persistent DNS rules for acepting port 53 | |
lineinfile: | |
path: /etc/sysconfig/iptables | |
state: "{{ item.1 }}" | |
insertbefore: "^-A INPUT (1 - p {{ item.0 }} -- dport 53 -j ACCEPT)?" | |
line: "-A INPUT 1 -p {{ item.0 }} --dport 53 -j ACCEPT" | |
with_nested: | |
- ['TCP', 'UDP'] | |
- ['absent', 'present'] |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
import json | |
import smtplib | |
import datetime | |
from smtplib import SMTPException | |
from email.MIMEText import MIMEText | |
import string |