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 / macos-dock-spaces.sh
Created February 11, 2025 16:48
Macos Dock spaces
# On the terminal, use the following to add space to the app links:
defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}' && killall Dock
# On the terminal, use the following to add space to the persistent app icons:
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' && killall Dock
@hypest
hypest / caps-arrow-del-enter.json
Last active November 12, 2024 09:23
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