Skip to content

Instantly share code, notes, and snippets.

View phramz's full-sized avatar
🙈

Maximilian Reichel phramz

🙈
View GitHub Profile

claude-statusline.sh

A custom status line for Claude Code that replaces the default status bar with a rich, gitstatus-inspired display.

image

What it shows

Git info (when inside a repo):

@phramz
phramz / HOWTO.md
Created July 17, 2023 12:32
Multiple PHP Versions with Direnv & Homebrew on MacOS

Step 1) Install Direnv

If you're not already installed Direnv you can do it using Homebrew:

brew install direnv

Do not forget to properly setup the shell hook for your Bash, ZSH, etc. (whatever shell you use) ... see https://direnv.net/docs/hook.html

Step 2) Install PHP

@phramz
phramz / 05_geth-console-testdrive.js
Created September 20, 2017 08:38
solutions.hamburg | web3 example | DO NOT USE IN PRODUCTION
web3.eth.accounts;
web3.personal.unlockAccount(web3.eth.accounts[0], "solutions.hamburg", 3600);
// abi def
var helloworldJsonDef = [{
"constant": true,
"inputs": [{"name": "a", "type": "uint256"}, {"name": "b", "type": "uint256"}],
"name": "add",
"outputs": [{"name": "result", "type": "uint256"}],
"payable": false,
@phramz
phramz / 04_Testament.sol
Created September 20, 2017 08:24
solutions.hamburg | solidity example | DO NOT USE IN PRODUCTION
pragma solidity ^0.4.13;
contract Testament {
address public owner;
uint256 public lastSeen;
address public myBuddy;
address public myGirl;
address public myChild;
@phramz
phramz / 03_Web3HelloWorld.sol
Last active September 20, 2017 08:24
solutions.hamburg | solidity example | DO NOT USE IN PRODUCTION
pragma solidity ^0.4.13;
contract HelloWorld {
event Greeting (
address indexed from,
string indexed name,
string message
);
function HelloWorld() {}
@phramz
phramz / 01_AbiExample.sol
Last active September 20, 2017 08:25
solutions.hamburg | solidity example | DO NOT USE IN PRODUCTION
contract AbiExample {
function bar(bytes3[2] xy) {}
function baz(uint32 x, bool y) returns (bool r) {
r = x > 32 || y;
}
}
@phramz
phramz / .bash_profile
Created April 9, 2016 08:58
gpg-agent bash startup
if test -f $HOME/.gpg-agent-info && \
kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then
. $HOME/.gpg-agent-info
export GPG_AGENT_INFO
export SSH_AUTH_SOCK
else
eval `/usr/local/bin/gpg-agent --daemon --write-env-file`
fi
export GPG_TTY=`tty`