Skip to content

Instantly share code, notes, and snippets.

View sladewatkins's full-sized avatar
💭
The best way to reach me is through Mastodon, Twitter, or email.

Slade Watkins sladewatkins

💭
The best way to reach me is through Mastodon, Twitter, or email.
View GitHub Profile
@pvieito
pvieito / gist:ee6d2c8934a8f84b9aeb467585277b8a
Last active July 19, 2024 10:41
Consumer keys of official Twitter clients

Twitter API Keys

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active July 23, 2024 17:08
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@MeguminSama
MeguminSama / Discord Experiments.js
Last active July 15, 2024 21:37
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
@Lusamine
Lusamine / Overworld RNG in Gen 8 (SWSH).MD
Last active October 30, 2023 20:14
A hopefully simple-to-understand explanation of how Pokémon Sword/Shield's overworld encounters are generated.

Introduction

Pokémon Sword and Shield carried over wandering overworld Pokémon from the Let's Go games. Unlike LGPE, these overworld wanderers have identifiable origins, and thus it is possible to legality check them by verifying the correlation between certain values in their data similar to gen 3-4 PIDIV.

Overworld data is stored in the save file in the overworld block. This is why you can save in front of a strong spawn or Galarian bird, reset the game, and encounter exactly the same Pokémon.

Can Overworld RNG be abused or manipulated?

It was recently discovered in October 2021 that this is possible to do. Current methods can be done with or without CFW. Additionally, the presence of overworld data allows for the creation of CFW bots that simply scan overworld data for shiny or marked Pokémon without ever engaging in battle.

What Pokémon does Overworld RNG apply to?

The categorization can seem complex, so let me break it down:

# Convert from H264 to H265
ffmpeg -i in.mov -c:v libx265 -an -x265-params crf=20 output.mp4
# Tag as HVC instead of HEV1 so iOS can play it
ffmpeg -i output.mp4 -vcodec copy -acodec copy -tag:v hvc1 output2.mp4
# Bonus: it can take a second to play (no more than H264) so here's how to generate
# a thumbnail of the first frame to embed in your view as a placeholder.
ffmpeg -i output2.mp4 -vf "select=eq(n\,34)" -vframes 1 thumbnail.png
@christianselig
christianselig / navigation-bar.swift
Created October 20, 2021 15:54
How to tweak the navigation bar color to make it consistent with system translucency when setting a color
if #available(iOS 15.0, *) {
let navigationBarAppearance = UINavigationBarAppearance()
navigationBarAppearance.configureWithDefaultBackground()
navigationBarAppearance.backgroundColor = UIColor(hexcode: "0C1019").withAlphaComponent(0.7)
navigationController!.navigationBar.standardAppearance = navigationBarAppearance
navigationController!.navigationBar.compactAppearance = navigationBarAppearance
navigationController!.navigationBar.scrollEdgeAppearance = navigationBarAppearance
} else {
navigationController!.navigationBar.barTintColor = UIColor(hexcode: "0C1019")
}
@taskylizard
taskylizard / fmhy.md
Last active July 24, 2024 11:56
/r/freemediaheckyeah, in one single file (view raw)
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active July 24, 2024 11:48
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@advaith1
advaith1 / nitro.md
Created May 4, 2023 01:06
Discord Nitro Subscription Links