Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity : ComponentActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
WindowCompat.setDecorFitsSystemWindows(window, false) | |
super.onCreate(savedInstanceState) | |
setContent { | |
ColorPickerTheme { | |
Surface( | |
modifier = Modifier.fillMaxSize(), | |
color = MaterialTheme.colorScheme.background | |
) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
traefik: | |
restart: unless-stopped | |
image: traefik:v2.0.2 | |
ports: | |
- "80:80" | |
- "443:443" | |
labels: | |
- "traefik.http.services.traefik.loadbalancer.server.port=8080" |
I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.
So below I made a list of leetcode problems that are as close to grokking problems as possible.
UPDATED: 2024-04-09
- Reddit mirror: https://www.reddit.com/r/iOSDowngrade/comments/j1x7iv/downgrade_and_dualboot_status_of_almost_all_ios/
- GitHub Gist mirror: https://gist.github.com/LukeZGD/9d781f1b03a69fa46869384a9407a41a
- As of updating this post, there is a downgrade tool that utilizes a SEP exploit released. However its device support is currently limited: https://limefix.tech/?product=limefix-sep-utility-testing
- Save SHSH blobs for signed iOS versions using TSS Saver or blobsaver
- GitHub repo for futurerestore nightly: https://github.com/futurerestore/futurerestore
- Delay OTA Guide (updating only): https://ios.cfw.guide/updating-blobless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Simple mpv script to translate subtitle using crow (online) or sdcv (offline) dictionaries. | |
-- INSTALLATION: | |
-- To install it, first install crow (https://crow-translate.github.io) and/or sdcv (http://dushistov.github.io/sdcv/) on your marchine with your favorite dicts and then, | |
-- copy this file to '~/.config/mpv/scripts/' (Linux) or '%AppData%\mpv\scripts\' (Windows). | |
-- sdcv help: | |
-- you can download offline dicts from http://download.huzheng.org/Quick/ (or anywhere else) and copy extracted dic folder to '~/.stardict/dic/' | |
-- CONFIGURATION: | |
local config = { |
The following is based on 2 GCP / GKE How to Guides:
- https://cloud.google.com/stackdriver/docs/managed-prometheus/setup-managed
- https://cloud.google.com/stackdriver/docs/managed-prometheus/query
What this adds is additional checks / verification commands that can be run to help troubleshoot.
- provisioned GKE autopilot cluster v1.26.5 with all defaults
alias k=kubectl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Chat Deck Viewer | |
// @namespace https://uc.feildmaster.com/ | |
// @version 0.1.1 | |
// @description Translate deck codes into buttons | |
// @author feildmaster | |
// @match https://*.undercards.net/* | |
// @exclude https://*.undercards.net/*/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=undercards.net | |
// @require https://raw.githubusercontent.com/UCProjects/UnderScript/master/src/checker.js |
# install (old) nodejs package and npm
$ sudo apt-get install nodejs npm
# install coffee-script (globally)
$ sudo npm install -g coffee-script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A set of custom made large numbers for a 16x2 LCD using the | |
LiquidCrystal librabry. Works with displays compatible with the | |
Hitachi HD44780 driver. | |
The Cuicuit: | |
LCD RS pin to D12 | |
LCD Enable pin to D11 | |
LCD D4 pin to D5 | |
LCD D5 pin to D4 |
NewerOlder