This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <limits.h> | |
#include <sys/mount.h> | |
char * | |
ramdisk(const char *ns, const char *sz) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AutoSave = (function(){ | |
var timer = null; | |
function getEditor(){ | |
var elems = document.getElementsByTagName("textarea") | |
if (elems.length <= 0) | |
return null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Dump raw data to a unsigned char array. */ | |
void c_array_dump(FILE *stream, const char *label, unsigned char *data, size_t size) | |
{ | |
int pos; | |
fprintf(stream, "const unsigned char %s[] = {\n\t", label); | |
for (pos = 0; pos < size ; ++pos) { | |
fprintf(stream, "0x%02X", (unsigned char) data[pos]); | |
if (pos+1 != size) | |
fprintf(stream, ", "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import requests | |
import ipaddress | |
import sys | |
parser = argparse.ArgumentParser(description="checks if ip address in fastly ip range") | |
parser.add_argument("ip", metavar='IP', type=ipaddress.IPv4Address, nargs='+', | |
help="ip addresses to check") | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import( | |
"context" | |
"log" | |
"time" | |
"os" | |
"github.com/gofiber/fiber/v2" | |
"github.com/open-policy-agent/opa/ast" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import os | |
def generate_github_action(source, filename): | |
""" | |
Snyk IAC scanning tool currently has the limitation of only scanning | |
a single file at a time. This script will generate the github | |
action steps needed to scan all our IAC code. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lighthouse = require('lighthouse'); | |
const chromeLauncher = require('chrome-launcher'); | |
function launchChromeAndRunLighthouse(url, opts, config = null) { | |
return chromeLauncher.launch({chromeFlags: opts.chromeFlags}).then(chrome => { | |
opts.port = chrome.port; | |
return lighthouse(url, opts, config).then(results => { | |
// use results.lhr for the JS-consumable output | |
// https://github.com/GoogleChrome/lighthouse/blob/master/types/lhr.d.ts | |
// use results.report for the HTML/JSON/CSV output as a string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import datetime | |
import random | |
import socket | |
import ssl | |
import string | |
import time | |
import traceback | |
from urllib.parse import urlparse | |
from pprint import pprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import json | |
import subprocess | |
import linecache | |
import os | |
import sys | |
from pprint import pprint | |
import tempfile | |
import csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#OpenDaylight - Vulnerability Management | |
[TOC] | |
##Motivation | |
The OpenDaylight project has gained enough momentum and popularity that the responsible management of security issues in the upstream community is warranted. OpenDaylight has in fact had its first [CVE](http://seclists.org/bugtraq/2014/Aug/75) assigned via an independent security researcher, who at the time had no process to follow. This **must** change. | |
NewerOlder