Skip to content

Instantly share code, notes, and snippets.

@kconner
kconner / macOS Internals.md
Last active April 22, 2024 21:28
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

[19:36:00] <mst> root: can we please have a formal decision on irccloud with an explanation
[19:36:07] <mst> root: people are really quite confused at this point
[19:36:13] <xse> how dare you go against our king's narrative ? those were all mistakes!
[19:36:18] <hodapp> irccloud violated freenode policy
[19:36:18] <oper5erv> should i stay or should i go ?
[19:36:20] <hodapp> it was their fault
[19:36:30] <pinkieval> hodapp: what part of the policy?
[19:36:31] *** Mode #freenode +q *!*@unaffiliated/xse by ChanServ
[19:36:35] <@root> mst: Sure
[19:36:46] <mst> hodapp: I want an official answer, people guessing is boring now
@sirodoht
sirodoht / migrate-django.md
Last active April 20, 2024 09:52
How to migrate Django from SQLite to PostgreSQL

How to migrate Django from SQLite to PostgreSQL

Dump existing data:

python3 manage.py dumpdata > datadump.json

Change settings.py to Postgres backend.

Make sure you can connect on PostgreSQL. Then:

@AgentRev
AgentRev / fuck_win10_reboot.bat
Last active March 17, 2020 04:47
Shut the fuck up you stupid fucking Windows Update reboot shitfuck - run as admin
rem KILL WINDOWS UPDATE REBOOT WITH FIRE!!!
SET mwuo=Microsoft\Windows\UpdateOrchestrator
schtasks /End /TN "\%mwuo%\Reboot"
schtasks /End /TN "\%mwuo%\USO_UxBroker_Display"
schtasks /End /TN "\%mwuo%\USO_UxBroker_ReadyToReboot"
schtasks /Change /TN "\%mwuo%\Reboot" /DISABLE
schtasks /Change /TN "\%mwuo%\USO_UxBroker_Display" /DISABLE
schtasks /Change /TN "\%mwuo%\USO_UxBroker_ReadyToReboot" /DISABLE
icacls "%WINDIR%\System32\Tasks\%mwuo%\Reboot" /deny "*S-1-1-0:F"
icacls "%WINDIR%\System32\Tasks\%mwuo%\USO_UxBroker_Display" /deny "*S-1-1-0:F"
@lg
lg / uap-ac-lite-openwrt.txt
Last active October 22, 2023 12:16
making the ubnt wifi awesome (uap ac lite) w/ openwrt
making the ubnt wifi awesome (uap ac lite) w/ lede (openwrt)
the reasons you would do this:
- you get 802.11r
- you get better roaming
- you get access to some new 5ghz channels
I AM NOT TO BE HELD RESPONSIBLE FOR ANYTHING IN HERE. DO AT YOUR OWN RISK. THANK YOU AND HAVE A LOVELY DAY.
** note that though we're using Lede, it's essentially openwrt minus the drama
% this .csv was exported from pokeminer
T = readtable('./pokeloc.csv');
spawnpoints = T{:,[6,7]};
spawnpoints = unique(spawnpoints,'rows');
spawnrates = zeros([size(spawnpoints,1),150]);
spawnnumber = zeros([size(spawnpoints,1),1]);
anonymous
anonymous / GAME_MASTER_v0_1.protobuf
Created July 16, 2016 16:31
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@van800
van800 / RiderUnityIntegration.cs
Last active November 9, 2017 16:29
Unity3D JetBrains Rider cross-platform Integration
moved to https://github.com/JetBrains/Unity3dRider
@alirobe
alirobe / reclaimWindows10.ps1
Last active April 26, 2024 17:59
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@rdavisau
rdavisau / dark-style-from-vs-2015.json
Created February 25, 2016 04:26
dark-style-from-vs-2015.json
{
"name":"dark-style-from-vs-2015",
"version":"1.0",
"description":"Imported color scheme",
"originator":"Imported from /Users/rdavis/Library/XamarinStudio-5.0/HighlightingSchemes/dark-style-from-vs-2015.vssettings",
"colors":[
{"name": "Background(Read Only)", "color":"#1E1E1E" },
{"name": "Search result background", "color":"#005F60" },
{"name": "Search result background (highlighted)", "color":"#007F80" },
{"name": "Fold Square", "color":"#A5A5A5" },