Skip to content

Instantly share code, notes, and snippets.

View hypest's full-sized avatar
😎
Working from anywhere

Stefanos Togoulidis hypest

😎
Working from anywhere
View GitHub Profile
@hypest
hypest / caps-arrow-del-enter.json
Last active April 23, 2024 06:31
Karibiner caps lock for arrow keys, del, enter mod
{
"description": "(Stefanos) CAPS LOCK for ijkl arrow keys, [m,] for del/backspace, caps-space for enter.",
"manipulators": [
{
"conditions": [
{
"name": "caps_lock pressed",
"type": "variable_if",
"value": 1
}
@hypest
hypest / p2_dense_userstyle.css
Last active May 16, 2023 11:38
CSS to make P2 mode dense
/* ==UserStyle==
@name wordpress.com - 5/15/2023, 5:11:36 PM
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A custom userstyle to make P2 more dense visually. Use via the Stylus extension on Firefox/Chrome.
@author Me
==/UserStyle== */
@-moz-document domain("wordpress.com") {
body {
nativefier --name "Gmail" https://mail.google.com --strict-internal-urls
@hypest
hypest / Roadmap revalidation loop.md
Last active January 17, 2023 11:47
Roadmap update loop
flowchart LR
    Revalidation((Roadmap Revalidation))
    ExternalSignals(External Signals:\nApp Reviews\nHE Input\nGH tickets)
    ImpicitExternalSignals(Implicit External Signals:\nFeatures performance)
    Internal(Internal Signals:\nRising WPCOM Products\nIdentified Opportunity)

    Revalidation --> Roadmap
    ExternalSignals --> Revalidation
 ImpicitExternalSignals --> Revalidation
@hypest
hypest / redux-store_index.js
Last active May 17, 2022 14:40
Gutenberg Redux action logger
function createSimpleLogger( storeName ) {
return ( store ) => ( next ) => ( action ) => {
const result = next( action );
console.log( {
storeName,
action,
result,
} );
return result;
};
@hypest
hypest / gist:d64a190a424448634fa04c99aa6b5378
Created March 18, 2022 20:20
Sign Google Chrome on Patched Macos Catalina (if it crashes on app start, also happens after auto-update)
xattr -cr /Applications/Google\ Chrome.app
sudo codesign -f -s - /Applications/Google\ Chrome.app
@hypest
hypest / gist:8ffc618cb6fd4f87fbe8f1c64d906d96
Created February 12, 2022 00:28
git shallow clone single branch
git clone --branch <branch_name> --depth 1 <repo_url>
@hypest
hypest / unshallow.sh
Created November 7, 2021 20:38
Unshallow shallow checkout
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && git fetch --all
@hypest
hypest / gist:9fa5879859095263fc9f27e339b9731b
Created September 9, 2021 11:01
symbolicate stacktrace from Metro
GB_VERSION=v1.60.1 && TEMPMAP=$(mktemp) && wget -q https://raw.githubusercontent.com/wordpress-mobile/gutenberg-mobile/$GB_VERSION/bundle/ios/App.js.map -O $TEMPMAP && npx metro-symbolicate $TEMPMAP < stacktrace.txt
@hypest
hypest / patch.diff
Created February 16, 2021 13:18
Fallback to text JS for gutenberg-mobile
diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json
index bcb2ee95f9..69adc453fa 100644
--- a/packages/react-native-editor/package.json
+++ b/packages/react-native-editor/package.json
@@ -87,7 +87,7 @@
"postrn-bundle": "cd ../.. && patch-package --reverse --patch-dir packages/react-native-editor/metro-patch",
"prebundle": "npm run i18n-cache:force",
"bundle": "npm run bundle:android && npm run bundle:ios",
- "bundle:android": "mkdir -p bundle/android && npm run rn-bundle -- --platform android --dev false --entry-file index.js --assets-dest bundle/android --bundle-output bundle/android/App.text.js --sourcemap-output bundle/android/App.text.js.map && ./gutenberg/node_modules/hermes-engine/`node -e \"const platform=require('os').platform();console.log(platform === 'darwin' ? 'osx-bin' : (platform === 'linux' ? 'linux64-bin' : (platform === 'win32' ? 'win64-bin' : 'unsupported-os')));\"`/hermes -emit-binar