Skip to content

Instantly share code, notes, and snippets.


Blake Jakopovic blakejakopovic

View GitHub Profile
merill / Get-LowTls.kql
Last active Nov 25, 2021
Gets a list of sign-ins that use older versions of TLS. This can be queried using either PowerShell or by querying log analytics. Learn more about AAD TLS deprecation today
View Get-LowTls.kql
// Interactive sign-ins only
| where AuthenticationProcessingDetails has "Legacy TLS"
and AuthenticationProcessingDetails has "True"
| extend JsonAuthProcDetails = parse_json(AuthenticationProcessingDetails)
| mv-apply JsonAuthProcDetails on (
where JsonAuthProcDetails.key startswith "Legacy TLS"
| project HasLegacyTls=JsonAuthProcDetails.value
| where HasLegacyTls == true
tekin / .gitattributes
Last active Aug 27, 2021
An example .gitattributes file that will configure custom hunk header patterns for some common languages and file formats. See for more details.
View .gitattributes
# Stick this in your home directory and point your Global Git config at it by running:
# $ git config --global core.attributesfile ~/.gitattributes
# See for more details
*.c diff=cpp
*.h diff=cpp
*.c++ diff=cpp
*.h++ diff=cpp
cfromknecht /
Last active Jun 28, 2021
Stricter Graph Pruning

edge count:

lncli describegraph | jq '.edges | length'


node count:

lncli describegraph | jq '.nodes | length'
stevemoser / IncompatibleAppsList.plist
Created Jun 20, 2019
List of 235 apps incompatible with macOS Catalina 10.15
View IncompatibleAppsList.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<key>Application Name</key>
<string>Sxs Memory Card Driver</string>
shrayasr / fu-garmin-bulk-delete.js
Created Mar 28, 2018
Bulk delete activities in Garmin Connect
View fu-garmin-bulk-delete.js
function foo() {
console.log("foo - start")
setTimeout(function() {
var li = $(".list-item")[0]
var delButton = $(li).find("button.js-activity-delete")
var confirmDelButton = $(li).find("button.delete-yes")
console.log(delButton, confirmDelButton)
theinventor / bad-events.txt
Created Feb 22, 2018
Things you might want to watch for in windows eventlog
View bad-events.txt
9,%,%,0,%did not respond within the timeout period%,High
11,%,%,0,%controller error%,High
1000,%Microsoft-Windows-DHCP-Server%,%,0,%The DHCP service received the unknown option%,Critical
1064,%Microsoft-Windows-DHCP-Server%,%,0,%There are no IP addresses available for BOOTP clients%,Critical
1069,%Microsoft-Windows-DHCP-Server%,%,0,%Iashlpr cannot contact the NPS service%,Critical
1070,%Microsoft-Windows-DHCP-Server%,%,0,%Iashlpr initialization failed%,Critical
1142,%Microsoft-Windows-DHCP-Server%,%,0,%The DHCP server is unable to reach the NPS server%,Critical
3,%Microsoft-Windows-DNS-Server-Service%,%,0,%The DNS server has shut down%,Critical
10,%Microsoft-Windows-DNS-Server-Service%,%,0,%The DNS server could not start because it is dependent on the NTDS service which is not started%,Critical
luisloaiza / send_sms.js
Created Jan 31, 2018 — forked from bachvtuan/send_sms.js
Send SMS Amazon SNS Nodejs
View send_sms.js
AWS implementation of SMS messaging
A simple sample that can become a lib.
// npm install aws-sdk -g
const AWS = require('aws-sdk');
keithga / DeviceCollPerformance2
Created Jan 26, 2018
Replacement script for Add-CMDeviceCollectionDirectMembership
View DeviceCollPerformance2
Example of how to create a Device Collection and populate it with computer objects
The Faster way. <Yea!>
$CollBaseName = 'MyTestCol_0C_{0:D4}',
thomaswitt / VPNConfigurationProfiles.mobileconfig
Last active Nov 18, 2021
An OnDemand VPN iOS profile for iPad and iPhone that automatically connects you to different VPNs (e.g. Meraki, FRITZ!Box and Streisand) | Blog-Entry:
View VPNConfigurationProfiles.mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<!-- Home: Manual -->

#petya #petrWrap #notPetya


Ransomware attack.


This gist was built by the community of the researchers and was scribed by Kir and Igor from the QIWI/Vulners. We are grateful for the help of all those who sent us the data, links and information. Together we can make this world a better place!

Gist updates