Skip to content

Instantly share code, notes, and snippets.

@bitnetwork
bitnetwork / wget.js
Last active March 22, 2020 13:37 — forked from udawtr/wget.vbs
wget.js - similar to wget but written in jscript
//wget.js - similar to wget but written in vbscript
//based on a script by Chrissy LeMaire
//forked by Bit
var shell = new ActiveXObject("WScript.shell");
//Usage
if (WScript.Arguments.length < 1) {
shell.Popup("Usage: wget.js <url> (file)");
WScript.Quit();
@robinsmidsrod
robinsmidsrod / sysrcd.ipxe
Last active February 19, 2025 09:06
SystemRescueCD iPXE menu script and monkeypatch for preloading sysrcd.dat with iPXE instead of loading from local storage
#!ipxe
set sysrcd-version 4.7.1
echo Booting SystemRescueCD ${sysrcd-version} x86 for ${initiator-iqn}
# Kernel command-line options are documented here:
# http://www.system-rescue-cd.org/Sysresccd-manual-en_Booting_the_CD-ROM#Network_boot_using_PXE
set base-url sysrcd-${sysrcd-version}-x86/
kernel ${base-url}isolinux/altker${archs} setkmap=no net.ifnames=0 backstore=off
initrd ${base-url}isolinux/initram.igz
initrd ${base-url}sysrcd.dat /sysrcd.dat
# Load the ramdisk again as a file inside the ramdisk, so our custom init script
@rolandshoemaker
rolandshoemaker / pilot-all
Last active May 3, 2021 12:42
*WIP* Certificate authorities and their sub CA sizes according to Google's Pilot CT log. The first file shows information for all certificates in Pilot (including expired), the second file shows information for only non-expired certificates. Hacky code here: https://github.com/rolandshoemaker/ca-adoption-scanner/blob/master/cmd/ca-sizes/main.go
# Size rank: 1
+ Equifax, Direct leaves: 32755, Total leaves: 1850722, Direct sub CAs: 7, Total sub CAs 39
∟ GeoTrust Global CA, Direct leaves: 31, Total leaves: 1767974, Direct sub CAs: 23
∟ RapidSSL CA, Direct leaves: 721323
∟ RapidSSL SHA256 CA - G3, Direct leaves: 383200
∟ GeoTrust DV SSL CA, Direct leaves: 301677
∟ GeoTrust DV SSL CA - G4, Direct leaves: 117370
∟ GeoTrust SSL CA, Direct leaves: 61454
∟ Volusion, Inc. DV SSL CA, Direct leaves: 46989
∟ GeoTrust SSL CA - G3, Direct leaves: 41678
@maxim
maxim / gh-dl-release
Last active April 18, 2025 11:37
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@rraptorr
rraptorr / ct-submit.py
Last active November 26, 2024 08:13
Simple Certificate Transparency certificate submission client
#!/usr/bin/python
import sys
import argparse, json, base64, struct
import urllib2
from datetime import datetime
LOGS = {
'icarus': 'https://ct.googleapis.com/icarus',
'pilot': 'https://ct.googleapis.com/pilot',
@rglastra
rglastra / gist:3ef9582c6292470a1743
Last active September 2, 2022 16:23
Check available certs in ca-certificates.crt by subject.
#!/bin/bash
echo "All certificates in ca-certificates.crt, listed by subject:"
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt
echo "All certificates in ca-certificates.crt, listed by subject, check for presence of VeriSign's 'Class 3 Public Primary - G5':"
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt | grep "G5"
@drolfe
drolfe / ADD User Account to iLO.xml
Last active August 11, 2023 23:14
HP iLO XML Scripts
HPONCFG all << end_marker
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="Dontcare" PASSWORD="UsingAutologin">
<USER_INFO MODE="write">
<ADD_USER
USER_NAME="daniel"
USER_LOGIN="daniel"
PASSWORD="daniel123">
<ADMIN_PRIV value ="Yes"/>
<REMOTE_CONS_PRIV value ="Yes"/>

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

@MyITGuy
MyITGuy / Deployment.Properties.txt
Created March 18, 2014 20:31
Example deployment.properties file
#deployment.properties
# Security Tab
# Enable Java content in the browser
deployment.webjava.enabled=true
deployment.webjava.enabled.locked
# Security Level
deployment.security.level=MEDIUM
deployment.security.level.locked
@stuartleeks
stuartleeks / ImportAzureVmsIntoRdcMan-2.ps1
Last active June 3, 2022 19:53
PowerShell script to create a Remote Desktop Connection Manager configuration file for all Windows Azure Virtual Machines and PaaS role instances in a subscription.Requires Azure PowerShell cmdlets: http://www.windowsazure.com/en-us/documentation/articles/install-configure-powershell/. See this blog post for more information: http://blogs.msdn.c…
$rdcmanName = "Azure VMs"
$outputFileName = Get-Location | Join-Path -ChildPath "AzureVMs.rdg"
$xml = [xml]'<?xml version="1.0" encoding="utf-8"?>
<RDCMan programVersion="2.7" schemaVersion="3">
<file>
<credentialsProfiles />
<properties>
<expanded>True</expanded>
<name>Azure VMs</name>