Skip to content

Instantly share code, notes, and snippets.

@paulyc
paulyc / sendRawEth.c
Last active May 22, 2021 05:15 — forked from austinmarton/sendRawEth.c
Send a raw Ethernet frame in Linux
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/
#include <arpa/inet.h>
#include <linux/if_packet.h>
#include <stdio.h>
@paulyc
paulyc / PrintBootCampESDInfo.swift
Created May 25, 2020 00:56 — forked from nuomi1/PrintBootCampESDInfo.swift
macOS and BootCamp Latest
#!/usr/bin/env swift
//
// REPL.swift
//
// Created by nuomi1 on 8/5/18.
// Copyright © 2018年 nuomi1. All rights reserved.
//
import Foundation
@paulyc
paulyc / list27.txt
Created December 19, 2020 21:24 — forked from anonymous/list27.txt
000(023Rb|001Rb)
001(017La|002Rb)
002(021La|003Rb)
003(021La|004La)
004(009Rb|005Lb)
005(004Ra|005La)
006(008La|007La)
007(009Rb|007La)
008(009Ra|008La)
009(010Ra|026Ra)
@paulyc
paulyc / wl_monitor.sh
Created May 18, 2019 16:34 — forked from mkaminsky11/wl_monitor.sh
Enables monitor mode for wl driver(Broadcom)
#!/bin/sh
# so, by default, monitoring and injection cannot be used with Broadcom wl wifi drivers (such as those for Macs)
# this makes it impossible to do stuff like crack wifi passwords with aircrack-ng
# fortunately, there is a solution burried in https://www.broadcom.com/docs/linux_sta/README.txt
echo 1 > /proc/brcm_monitor0 #enables monitor mode. That's it!
# prism0 is now like "mon0" (monitor mode)
@paulyc
paulyc / InReTechnicalTerminology.md
Last active July 1, 2020 06:47
In Re: Controversial Technical Terminology

My personal opinion on the whole ‘master/X’ terminology in tech is-- good riddance-- and I don’t write master/X because I don’t want to write the word ‘slave’, or that I think the word ‘master’ necessarily refers to slavery--I am using it as a segue to my point, which is that the technical terminology has been abused so badly throughout the years as to be now completely meaningless to the point of being confusing, which is another excellent reason to abandon it.

See: Git. There’s master, and there’s…..???? I don’t see any slave branches. ‘Main’ among pretty much anything else sounds more appropriate. There’s ATA, where ‘master’ and ‘slave’ are the equivalent of ‘#1’ and ‘#2’--the master and slave devices do not communicate at all with each other, only with the controller and it is a completely meaningless designation other than you cannot have a #2 without a #1.

From one-sided to meaningless to BIND: you can lose all the slaves you want but if you lose the master, you’re fucked, and its idea of master-mast

@paulyc
paulyc / InReMassBranchRenaming.md
Created June 18, 2020 19:53
In Re: Mass Branch Renaming

Unless I'm missing something they're gonna have to make it a lot easier to rename default branches in bulk operations. Personally I'm going with 'flockleader' but I think it would take me at least 40 hours to rename all of them in my thousands of forks.

@paulyc
paulyc / broadcom-wl-dkms.sh
Created February 10, 2020 18:41 — forked from stevenmirabito/broadcom-wl-dkms.sh
Installs the broadcom-wl kernel module with DKMS
#!/bin/bash
# Installs the broadcom-wl kernel module with DKMS
# Tested under Fedora 23, will likely work with other versions/distros
# Author: Steven Mirabito <smirabito@csh.rit.edu>
# Create a work directory
mkdir -p /tmp/broadcom
cd /tmp/broadcom
# Download the module from Broadcom (http://www.broadcom.com/support/?gid=1)
@paulyc
paulyc / broadcom-wl-dkms.sh
Created February 10, 2020 18:41 — forked from stevenmirabito/broadcom-wl-dkms.sh
Installs the broadcom-wl kernel module with DKMS
#!/bin/bash
# Installs the broadcom-wl kernel module with DKMS
# Tested under Fedora 23, will likely work with other versions/distros
# Author: Steven Mirabito <smirabito@csh.rit.edu>
# Create a work directory
mkdir -p /tmp/broadcom
cd /tmp/broadcom
# Download the module from Broadcom (http://www.broadcom.com/support/?gid=1)
@paulyc
paulyc / star-trek-all.tsv
Created February 9, 2020 14:50 — forked from mislav/star-trek-all.tsv
List of Star Trek: The Original Series episodes ranked by their meta-score aggregated from several sites
S-EP episode title score
1-01 The Man Trap -33
1-02 Charlie X 26
1-03 Where No Man Has Gone Before 34
1-04 The Naked Time 64
1-05 The Enemy Within 30
1-06 Mudd's Women -31
1-07 What Are Little Girls Made Of? -1
1-08 Miri -30
1-09 Dagger of the Mind 8
@paulyc
paulyc / bcm57765or57785fix
Created February 8, 2020 23:41 — forked from samgooi4189/bcm57765or57785fix
Fixing Broadcom Corporation BCM57765/57785 SDXC/MMC Card Reader
Follow the WORKAROUND:
1. Add a comand to /etc/rc.local, add the following line above "exit 0":
setpci -s 00:1c.2 0x50.B=0x41
2. Add the same comand to /etc/apm/resume.d/21aspm (which does not exist yet):
setpci -s 00:1c.2 0x50.B=0x41
3. Add the following to /etc/modprobe.d/sdhci.conf:
options sdhci debug_quirks2=4
4. Re-generate initrd:
sudo update-initramfs -u -k all
5. Reboot or reload sdhci module: