5 ms·
Micro keypad to do your regular Git push/pull/add/commit actions
- deleted 2y ago[deleted]
- wellthisisgreat 2y agoHN, what are your favorite QMK / ZMK etc. compatible macropads ?
- marcellus23 2y agoIndia only for now. How could this work without needing software? Does it literally just type out the command when you press the button?
- bodhi_mind 2y agoRelax, it doesn’t need to actually do that because it installs malware and steals all your keys /s?
- Gys 2y agoProbably indeed an usb keyboard device. Great idea! I would like a big red button for deploys :) Edit: a big red button that is disabled on Fridays. To enforce relaxed weekends
- gus_massa 2y ago[Sorry for ruining the fun in an industrial setup, the big red button is the emergency stop. If someone is in danger, you just push the big red button to stop the machine.]
- genezeta 2y agoLike a rubberducky but with a button? ( https://shop.hak5.org/products/usb-rubber-ducky https://shop.hak5.org/products/usb-rubber-ducky )
- rtkwe 2y agoBasically. Just non malicious. It's a macro pad with an unusually long macro.
- deleted 2y ago[deleted]
- mikeInAlaska 2y agoIs this an actual problem to be solved? I would not want our repo "attached" to devices capable of one click operations.
- kvdveer 2y agoAny keyboard with macro functionality is capable of one click operations. Any IDE is capable of one click operations. Any shell with history is capable of two-click operations. It's just a keyboard button. It can do the same harm any developer can already do.
- ge96 2y agoAlexa: commit this code for me better, dead man's switch tied to your heart, $rm -rf your computer
- acheron 2y agoIn the early 90s, Gateway had a keyboard called "Anykey" that let you program macros into the keyboard firmware. We programmed several DOS commands into ours. It had two full sets F1-F12 of function keys, both along the side like an old Model F, and along the top. So the F-keys on the side we used for DOS macros.
- OrvalWintermute 2y agoThe Logitech G15 keyboard which has about 2 major versions, is capable of some nifty keystroke / macro functionality too. I have one of them somewhere. Extensive amount of G-keys :) here is the pop-up version https://www.trustedreviews.com/reviews/logitech-g15-gaming-keyboard https://www.trustedreviews.com/reviews/logitech-g15-gaming-k... and here is the fixed display version https://www.amitbhawani.com/blog/logitech-g15-gaming-keyboard/ https://www.amitbhawani.com/blog/logitech-g15-gaming-keyboar... Am not connected to either of these sites.
- lillesvin 2y agoI'm assuming it's a simple MCU that registers as a USB keyboard and types out the commands followed by Enter. If it's supposed to do commit + push in one press, then I wonder how it handles commit messages?
- NewJazz 2y agoOpen an editor?
- hot_gril 2y agocat /dev/urandom |
- SAI_Peregrinus 2y ago`git commit -m "fixes and improvements"`
- _cenw 2y agoNot the first person to have this mid idea. Just get a VIA compatible numpad or one of the many boards for OSU.
- sigmonsays 2y agoapril 1st already?
- afandian 2y agoFun idea, but adding and committing is the time when I want to be going slow and paying the most attention! What files did I change, were all the changes on purpose, have I described all of the changes. Buttons for pulling and creating branches would be good though. And break glass to `git reset --hard` would provide some nice ceremony.
- _kb 2y agoAnd a `git push -f` on physically separated key switches that require two people to operate.
- rtkwe 2y agoMe at the end of a contentious code review: "TURN YOUR KEY SENIOR!" https://youtu.be/rLMCjuge6oE https://youtu.be/rLMCjuge6oE
- hinkley 2y agoThe only way to win is not to play. See also: Samir you're breaking the car! (For today's 10000, that's a bloopers real of a professional racer that was done as a prank by a rival and which ended up causing him some problems)
- hinkley 2y agoDo you know of any software systems that do 'double key lockout' like this? I've wanted one for a long time but I am having a failure of imagination on how to implement it. Or I should say, I see the trap in the two or three most obvious variants which makes them even less effective because you create a Confused Deputy situation with the person you expect to sign off. Example: If I file a PR to change a production flag, and I tell you what (I think) I just did, you're likely to approve my change because I've primed you to see what I wanted you to see, and you miss the same bug I missed. You're going to trust my judgement when the whole point of not allowing me to just push without a second pair of eyes is that you cannot trust my judgement 100.00% of the time. If I'm 99.9% trustworthy you're likely to stop looking at my ideas expecting to see a problem. I believe if we don't send each other code we are more likely to get that 4th 9. But I could still be wrong thanks to the Primacy Effect mentioned above.
- radlad 2y agoWhy would I get this over something like a Stream Deck?
- joemi 2y agoCost would be my guess. This costs less than US$20, whereas stream decks usually cost quite a bit more than that.
- squigz 2y agoA Stream Deck is a bit overkill I think, but macro keypads are cheap enough that I'm also not sure why I'd opt for this product over one of those.
- radlad 2y agoThanks for the mention - I've always thought Stream Decks were kind of interesting, but overkill. It turns out a macro keyboard is what I really wanted.
- amelius 2y agoI want something to push when I git-push. And I want something to pull when I git-pull.
- kedean 2y agoSo a "Git Bop It"?
- deleted 2y ago[deleted]
- rpastuszak 2y agoMy first thought: Get a Playdate and use the crank!
- whiplash451 2y agoWake me up when it’s a pedal under your desk
- mihaigalos 2y agoI'm using this in my .zshrc: function cd { builtin cd "$@" && [ -d .git ] && git pull || true; exa -all --group-directories-first; } alias acp='git add -u &&-c "git log --color --pretty=format:\"%s\" --abbrev-commit -- |>/tmp/git_log_sk && git commit --gpg-sign --edit -F /tmp/git_log_sk && rm /tmp/git_log_sk" && git push -u origin HEAD' The cd automatically pulls if it's a git repo. The acp is shorthand for "add+commit+push" with sk as a fuzzy finder for a commit message editing (vim integrations).
- hk1337 2y agoCould that perhaps work better in .gitconfig than a shell function? I know for me, I could not use "acp" as the alias because it would conflict with the oh-my-zsh aws plugin to load profile credentials.
- svilen_dobrev 2y agoi have this: https://github.com/svilendobrev/svd_bin/blob/master/vcs/vcs.sh https://github.com/svilendobrev/svd_bin/blob/master/vcs/vcs.... covering ~10 most-used operations , for 5 diff. vcs - git, bzr, mercurial, svn, ... - guessing which one according to .git/.bzr/.. etc $ v u ... does update $ v s ... does status $ v i -m fixx ... does commit AND push $ v a ... does adding $ v d ... does diff .. etc some have subvariants.. depends on vcs
- w-ll 2y agoI already have tons of aliases for git, One of my fav's when I developed on a Mac was to also take a photo every time I pushed. I forgot about it for about a year, going into that archive was hilarious.
- deleted 2y ago[deleted]
- koolba 2y agoThey should make a YOLO button that does a “git add . && git commit -m yolo && git branch -f master && git push origin master —-force”