This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Option 1: Global install via npm (deprecated, use native installer instead) | |
| npm install -g @anthropic-ai/claude-code@latest | |
| # In case of an error message 'not empty' just delete the first path in the message. Example: | |
| rm -rf ~/.nvm/versions/node/v24.11.0/lib/node_modules/@anthropic-ai/claude-code | |
| # Option 2: Run directly without install | |
| npx @anthropic-ai/claude-code@latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| ############################################################################### | |
| # | |
| # ONLY USE STANDARD TRADITIONAL CORE PERL. | |
| # NO CPAN MODULES. NO MODERN PERL. NO use v5.XX. NO Moose, Moo, Try::Tiny, | |
| # Path::Tiny, or ANY non-core module. Stick to what ships with perl itself: | |
| # strict, warnings, File::Basename, File::Path, File::Copy, Getopt::Long, | |
| # Cwd, POSIX, etc. | |
| # | |
| ############################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # V13 | |
| # This file versioned as gist:https://gist.github.com/kwmiebach/b0d03afde427a33acf62f994c8f960fa | |
| # For the latest version go to above link, then click `raw`, then copy paste from the browser. | |
| # Deep linking it does not work. | |
| # INSTALL FROM GIST as tmux conf file if none exists yet (this could probably fetch an old version): | |
| # curl https://gist.githubusercontent.com/kwmiebach/b0d03afde427a33acf62f994c8f960fa/raw/.tmux.conf > ~/.tmux.conf && cat ~/.tmux.conf | head -n5 | grep V | |
| # RELOAD: tmux source-file ~/.tmux.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Find out available website settings and website fields. | |
| The fields are recognized with a fuzzy algorythm, so there might be | |
| too many and some might be missing? | |
| Run this in an odoo shell of the odoo instance: | |
| ''' | |
| installed_langs = env['res.lang'].search([('active', '=', True)]) | |
| print("Installed languages:", installed_langs.mapped('code')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .PHONY: help | |
| help: | |
| # Keep this comment line, it is imortant so awk ignores the help target. | |
| @echo "Available targets:" | |
| @echo " help\t\t Show this help message" | |
| @awk '/^[^.][a-zA-Z0-9_-]+:/{t=$$1;getline;if($$0~"@echo"){gsub(/^[^"]*"|".*$$/,"",$$0);printf " %-20s %s\n",substr(t,1,length(t)-1),$$0}}' $(MAKEFILE_LIST) | |
| .PHONY: it | |
| it: | |
| @echo "Start bash in the container as user 1000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* chrome n3 */ | |
| a.fw-bold.text-truncate { | |
| font-size: 30px | |
| } | |
| span.min-w-0.text-truncate { | |
| font-size: 30px | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # GitHub SSH Key Updater | |
| # --------------------- | |
| # SECURITY WARNING: This script grants SSH access to your machine! | |
| # Only add keys from GitHub users you absolutely trust with full SSH access to your system. | |
| # Each added public key will allow that user to log into your machine via SSH. | |
| # | |
| # Purpose: | |
| # Fetches and merges public SSH keys from a GitHub user into your ~/.ssh/authorized_keys file, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| cd %USERPROFILE%\Desktop | |
| mkdir "system.{ED7BA470-8E54-465E-825C-99712043E01C}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # (c) CompuMatter, LLC, ServerMatter | |
| # no warranty expressed or implied - use as is. | |
| # See https://www.youtube.com/watch?v=4hjskxkapYo | |
| # versioned here: https://gist.github.com/kwmiebach/6565ad1b43f3c781b23fce6ba80f59ea | |
| # history of the gist: | |
| # 2023-09-28 downloaded from https://cloud.compumatter.biz/s/fxfYM9SkamBtGqG - unchanged | |
| # purpose of this script: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ####################################################################################### | |
| # Bash function get_toml_value() to get the value of a key in a section of a TOML file. | |
| # Versioned here: https://gist.github.com/kwmiebach/e42dc4a43d5a2a0f2c3fdc41620747ab | |
| # Call it like this: | |
| # value=$(get_toml_value "./conf/config.toml" "server_b" "domain") | |
| # Result should be "my123.example.com" in the case of this example file: | |
| # --------------------------- | |
| # [server_a] | |
| # proto = "https" | |
| # domain = "test.example.net" |
NewerOlder