Skip to content

Instantly share code, notes, and snippets.

Mark Culhane markz0r

Block or report user

Report or block markz0r

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View aws_waf_owasp_top_10_rules.main.tf
# Random ID Generator
resource "random_id" "this" {
count = "${lower(var.target_scope) == "regional" || lower(var.target_scope) == "global" ? "1" : "0"}"
byte_length = "8"
keepers = {
target_scope = "${lower(var.target_scope)}"
}
View buggy.sh
#!/bin/bash
# chain_collector.sh [domain] [port]
# output to stdout
if [ $# -ne 2 ]; then
echo "USAGE: chain_collector.sh [domain] [port]"
exit 1
fi
SOURCE="${BASH_SOURCE[0]}"
View PriFa.java
import java.util.Scanner;
public class PrFa {
public static void main(String args[]){
int number;
Scanner sc = new Scanner(System.in);
System.out.println("Enter a number ::");
number = sc.nextInt();
for(int i = 2; i< number; i++) {
View gist:e308510ecba2bb1fc816cedfeceb3efa
import java.util.Scanner;
public class PrFa {
public static void main(String args[]){
int number;
Scanner sc = new Scanner(System.in);
System.out.println("Enter a number ::");
number = sc.nextInt();
for(int i = 2; i< number; i++) {
View gist:7b8e52cba3c9f31328fdacf122af09f6
#!/usr/bin/python
def pt(n):
trow = [1]
y = [0]
for x in range(max(n,0)):
print(trow)
trow=[l+r for l,r in zip(trow+y, y+trow)]
return n>=1
pt(5)
View p.sh
number=$1
i=$2
f=0
while [[ $i -le `expr $number / 2` ]]; do
if test `expr $number % $i` -eq 0
then
f=1
fi
i=`expr $i + 1`
View main_tf_waf.tf
module "aws_waf_owasp_top_10_rules" {
source = "modules/aws_waf_owasp_top_10_rules"
# For a better understanding of what are those parameters mean,
# please read the description of each variable in the variables.tf file:
# https://github.com/traveloka/terraform-aws-waf-owasp-top-10-rules/blob/master/variables.tf
product_domain = "ss"
service_name = "sswaf"
environment = "production"
View google_drive_backup.py
#!/usr/bin/python
from __future__ import print_function
import sys, httplib2, os, datetime, io
from time import gmtime, strftime
from apiclient import discovery
import oauth2client
from oauth2client import client
from oauth2client import tools
from datetime import date
#########################################################################
You can’t perform that action at this time.