Skip to content

Instantly share code, notes, and snippets.

@phwd
phwd / gist:1ca5abe6fe3a5a730f36f9ef179d43b3
Created June 8, 2024 02:06
Macbook shutdown when closed lid
pmset -g log | grep ShutdownCause
ShutdownCause SMC shutdown cause: -82:
# https://github.com/apple-oss-distributions/PowerManagement/
# https://georgegarside.com/blog/macos/shutdown-causes/
"Thermal shutdown for overtemp", -81
"Proximity temperature exceeds limits" -86
@phwd
phwd / ReactNative.js
Created January 13, 2024 18:43 — forked from steipete/ReactNative.js
Facebook Group App's ReactNative
This file has been truncated, but you can view the full file.
__SSTOKENSTRING = "@generated SignedSource<<dbe928e1275c495c1922c1bf063ffb70>>";
! function(e) {
function t(e) {
function t() {
var t = Array.prototype.map.call(arguments, function(e) {
if (null == e) return null === e ? "null" : "undefined";
if ("string" == typeof e) return '"' + e + '"';
try {
return JSON.stringify(e)
} catch (t) {
@phwd
phwd / gist:33d94c8430d7e1a63cb74e8bbcfa47d9
Created June 25, 2023 19:10
Oculus go won't turn on despite charging
unplug your oculus go it doesn’t have any juice then hold the power button (while disconnected) for 11 to 12 seconds after that, just plug your headset back and the charging status screen should appear.
https://www.reddit.com/r/OculusGo/comments/ack5ob/my_oculus_go_wont_turn_on_despite_charging/
@phwd
phwd / gist:49c2c6247d1cadc9e5ae0948be1cf358
Last active July 29, 2023 21:22
Getting Oculus Go working from factory reset to homescreen without controllers
"eplying on this because i did it, i will note this does not work well and seems kinda up too luck if it works or not,(make sure the headset is factory reset and check at every step if developer mode is enabled) then boot hold vol- and power till the weird screen comes up click the first option it will be boot somethin i forgot.. but after that it will boot and say setup on the phone dont do that, hold vol+/- for a good while it didnt work first try for me but after like 5 or so tries it finally worked and brought me too a wifi connect screen, connect too your wifi using the vol+ as your select key then it will say updating please continue on your phone, let it sit on that screen for a while once you've let it sit for 2-3 min if it does nothing but stay on that screen go too your phone and connect it through there, after i did that it tried too setup wifi on my phone just setup wifi again it may or may not kick you out of the screen like it did nothing just do it again worked for me after 2 times then itl say
@phwd
phwd / gist:9d4e493863b1d627df183415127d0484
Created May 5, 2023 18:21
100% Fixed If WhatsApp Backup Stuck at 0/99/100
For iOS.
(Do not delete the app, this obviously loses your data!)
1. Disable the setting in iCloud for WhatsApp (aka delete the current backup)
2. *Key*: wait for an Apple iOS update and update the phone
3. Backup now should work again.
Extra: The backup is (has been) most likely working and WhatsApp iOS isn't syncing properly.
Check whether the WhatsApp backup size in iCloud and in the WhatsApp application
are the same.
@phwd
phwd / fbptr-20200219.txt
Created July 8, 2022 05:14 — forked from avanpo/fbptr-20200219.txt
Facebook PTR records
69.63.177.37 testvpn01.tfbnw.net.
69.63.179.36 static-dev.facebook.com.
69.63.183.110 mlb01.01.sea1.tfbnw.net.
66.220.144.7 itoolsfile.facebook.com.
66.220.144.38 corpout1.snc1.tfbnw.net.
66.220.144.40 corpout3.snc1.tfbnw.net.
66.220.144.41 vpn01.snc1.tfbnw.net.
66.220.144.51 secfw01.snc1.tfbnw.net.
66.220.144.128 66-220-144-128.mail-mail.facebook.com.
66.220.144.129 66-220-144-129.mail-mail.facebook.com.
@phwd
phwd / notes.md
Created February 23, 2021 20:40 — forked from bcherny/designing-data-intensive-application-notes.md
Notes: Designing Data-Intensive Applications

Chapter 1: Reliable, Scalable, and Maintainable Applications

  • Data Systems
    • Dimensions to consider when thinking about data systems: access patterns, performance characteristics, implementations.
    • Modern data systems often blur the lines between databases, caches, streams, etc.
  • Reliability
    • Systems should perform the expected function at a given level of performance, and be tolerant to faults and user mistakes
    • Fault: One component of a system deviating from its spec. Prefer tolerating faults over preventing them (except for things like security issues). Faults stem from hardware failures, software failures, and human error (in a study, config errors caused most outages).
    • Failure: The system as a whole not working
  • Scalability
@phwd
phwd / exploit.py
Created January 6, 2019 12:45 — forked from hub2/exploit.py
Flaglab Real World CTF
#!/usr/bin/env python3
import requests
import sys
from bs4 import BeautifulSoup
from urllib.parse import urljoin
import random
import logging
import time

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@phwd
phwd / a.md
Created February 7, 2017 06:19 — forked from mala/a.md
Chrome ExtensionのLive HTTP Headersの調査(CoolBar.Pro導入 Extensionが何を行うかの調査)

Chrome ExtensionのLive HTTP Headersを調査した。Firefox用のものではない。Firefox用のものではない。

11/7追記

English version: https://translate.google.com/translate?sl=ja&tl=en&js=y&prev=_t&hl=ja&ie=UTF-8&u=https%3A%2F%2Fgist.github.com%2Fmala%2Fe87973df5029d96c9269d9431fcef5cb&edit-text=&act=url

Summary in english.