brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| #!/bin/bash | |
| export TKN=$(curl -X POST 'http://localhost:8080/auth/realms/master/protocol/openid-connect/token' \ | |
| -H "Content-Type: application/x-www-form-urlencoded" \ | |
| -d "username=admin" \ | |
| -d 'password=admin' \ | |
| -d 'grant_type=password' \ | |
| -d 'client_id=admin-cli' | jq -r '.access_token') | |
| curl -X GET 'http://localhost:8080/admin/realms/master' \ |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| var serialized_obj = [ | |
| 0,1,0,0,0,255,255,255,255,1,0,0,0,0,0,0,0,4,1,0,0,0,34,83,121,115,116,101,109,46,68,101,108, | |
| 101,103,97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,3,0,0,0,8,68,101,108, | |
| 101,103,97,116,101,7,116,97,114,103,101,116,48,7,109,101,116,104,111,100,48,3,3,3,48,83,121,115,116,101,109,46, | |
| 68,101,108,101,103,97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,43,68,101,108,101, | |
| 103,97,116,101,69,110,116,114,121,34,83,121,115,116,101,109,46,68,101,108,101,103,97,116,101,83,101,114,105,97,108,105, | |
| 122,97,116,105,111,110,72,111,108,100,101,114,47,83,121,115,116,101,109,46,82,101,102,108,101,99,116,105,111,110,46,77, | |
| 101,109,98,101,114,73,110,102,111,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,9,2,0,0, |
| # Description: Boxstarter Script | |
| # Author: Jess Frazelle <[email protected]> | |
| # Last Updated: 2017-09-11 | |
| # | |
| # Install boxstarter: | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # | |
| # You might need to set: Set-ExecutionPolicy RemoteSigned | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: |
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
| <# | |
| .SYNOPSIS | |
| Installs PowerShell scripts as Windows Services. | |
| .DESCRIPTION | |
| Installs or removes PowerShell script services. | |
| When installing, any additional command line arguments besides the mandatory ones are supplied as arguments to the script you are installing, and credentials for the service will be prompted for. | |
| The service will be installed for automatic start, however the initial state is 'Stopped' | |
| This tool will additionally pass the switch -Service to the target script which it should implement to know it is running as a service. |
| # Nerd Fonts for your IDE | |
| # https://www.nerdfonts.com/font-downloads | |
| brew tap homebrew/cask-fonts && brew install --cask font-3270-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-fira-mono-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-go-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-lgc-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-monofur-nerd-font | |
| brew tap homebrew/cask-fonts && brew install --cask font-overpass-nerd-font |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real
| #!/usr/bin/env python3 | |
| """ | |
| Claude Code PreToolUse Hook: Compositional Bash Command Approval | |
| PROBLEM | |
| ------- | |
| Claude Code's static permission system uses prefix matching: | |
| "Bash(git diff:*)" matches "git diff --staged" but NOT "git -C /path diff" | |
| "Bash(timeout 30 pytest:*)" matches that exact timeout, not "timeout 20 pytest" |