Skip to content

Instantly share code, notes, and snippets.

View drushadrusha's full-sized avatar
🌴
on vacation

drusha drushadrusha

🌴
on vacation
View GitHub Profile
@xbeta
xbeta / README.md
Last active January 29, 2026 09:20
Macbook Pro Bluetooth + WiFi 2.4GHz interference fix for Mavericks
@Granitosaurus
Granitosaurus / countries
Created September 30, 2014 16:25
World country data: name, gec, iso2, iso3, numeric iso, stanag and internet domain)
[
{
"gec": "AF",
"internet": ".af",
"iso2": "AF",
"iso3": "AFG",
"iso_num": "004",
"name": "Afghanistan",
"stanag": "AFG"
},
@eyecatchup
eyecatchup / apple-meta-insanity.html
Created February 8, 2015 12:28
Insanity of Apple-specific meta tags..
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Apple Meta Insanity</title>
<!--
APPLE WEB APP META TAGS
-->
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active August 10, 2026 16:02
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Last update: Nov 2025.

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl ecparam -genkey -name secp384r1 | openssl ec -aes256 -out rootCA.key
@aallan
aallan / mac-vendor.txt
Last active September 29, 2026 08:13
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
1 - Install Home Brew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2 - Install aircrack-ng:
brew install aircrack-ng
3 - Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport//Figure out which channel you need to sniff:
@fikeminkel
fikeminkel / DNSTxtRecord.swift
Created April 26, 2017 20:56
Swift 3.1 DNS TXT record lookup
import dnssd
struct DNSTxtRecord {
typealias DNSLookupHandler = ([String: String]?) -> Void
static func lookup(_ domainName: String, completionHandler: @escaping DNSLookupHandler) {
var mutableCompletionHandler = completionHandler // completionHandler needs to be mutable to be used as inout param
let callback: DNSServiceQueryRecordReply = {
(sdRef, flags, interfaceIndex, errorCode, fullname, rrtype, rrclass, rdlen, rdata, ttl, context) -> Void in
//https://stackoverflow.com/questions/44471749/golang-enter-ssh-sudo-password-on-prompt-or-exit
package main
import (
"bufio"
"fmt"
"io"
"log"
"net"
"strings"