Skip to content

Instantly share code, notes, and snippets.

@pwittchen
pwittchen / check_litellm.sh
Last active March 26, 2026 00:56
bash script for checking litellm vulnerability in the current OS (macOS/Linux)
#!/usr/bin/env bash
#
# check_litellm.sh — Detect current or past installation of compromised
# litellm versions (1.82.7, 1.82.8) from the March 2026 supply chain attack.
#
# Works on macOS and Linux. Checks pip, pip3, poetry, conda, and common
# virtual-environment locations.
#
# Usage: bash check_litellm.sh
#
@pwittchen
pwittchen / index.html
Last active February 2, 2026 18:04
ms-teams-test.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Teams Link Opener</title>
<script src="https://res.cdn.office.net/teams-js/2.28.0/js/MicrosoftTeams.min.js"></script>
<style>
#teamsStatus {
padding: 15px;
@pwittchen
pwittchen / instructions.md
Created December 25, 2024 11:54 — forked from uasghar-smile/instructions.md
Adding an SSH key to GitHub (Mac OS X or Linux)

You need to do this if you try this command:

ssh -T git@github.com

and you get something that says

git@github.com: Permission denied (public key).
@pwittchen
pwittchen / create-fat-framework.sh
Created March 15, 2022 22:59 — forked from sundeepgupta/create-fat-framework.sh
Script to create a universal or "fat" binary for an iOS framework.
#!/bin/bash
# Adapted from http://stackoverflow.com/questions/24039470/xcode-6-ios-creating-a-cocoa-touch-framework-architectures-issues/26691080#26691080
# and https://gist.github.com/cromandini/1a9c4aeab27ca84f5d79
# Create a new aggregate target.
# For the automatically generated scheme, change its build config to "release".
# Ensure this target's "product name" build setting matches the framework's.
# Add a run script with `source "${PROJECT_DIR}/path_to_this_script`
@pwittchen
pwittchen / switch_fn_keys_keychron_k3.sh
Created October 3, 2021 16:14
by setting this param in the file /etc/modprobe.d/hid_apple.conf it's possible to toggle F keys with FN key
echo "options hid_apple fnmode=0" | sudo tee -a /etc/modprobe.d/hid_apple.conf
@pwittchen
pwittchen / server.py
Created July 24, 2020 13:27
dummy python server
from http.server import BaseHTTPRequestHandler, HTTPServer
host="localhost" ; port=8080
class HTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200) ; self.end_headers() ; self.wfile.write(b'ok')
print("http server is running at " + host + ":" + str(port))
HTTPServer((host, port), HTTPRequestHandler).serve_forever()
# to remote host
cat localfile.conf | ssh user@hostname 'cat -> /tmp/remotefile.conf'
# from remote host
ssh user@hostname 'cat /tmp/remotefile.conf' > /tmp/localfile.conf
@pwittchen
pwittchen / t470s.md
Created April 24, 2018 16:27 — forked from okapies/t470s.md
Ubuntu 16.04 on ThinkPad T470s

This is a document describing how to install Ubuntu 16.04 LTS on ThinkPad T470s.

My Hardware

  • CPU: Intel Core i7-7600U (2.80GHz, 4MB cache)
  • Graphics: Intel HD Graphics 620
  • Display: 14” WQHD (2560 X 1440) IPS Non-Touch Anti-Glare
  • Memory: 24GB DDR4 2133 MHz (8GB Onboard + 16GB)
  • SSD: PCIe-NVMe 256G OPAL 2.0
  • Wireless: Intel Dual Band Wireless AC (2x2) 8265 Bluetooth 4.1
  • Fingerprint Reader
# Reference:
https://www.cloudgear.net/blog/2015/5-minutes-kubernetes-setup/
# install homebrew and cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install virtualbox
brew cask install virtualbox
# install dockertoolbox
@pwittchen
pwittchen / coworking.md
Created January 27, 2018 01:36 — forked from mackuba/coworking.md
Lista coworkingów w Krakowie

Coworking w Krakowie

Studio Kreatywnej Współpracy

http://www.studioprzylea.pl

Adres: ul. Królewska 2/2

  • miesiąc - 420 + VAT
  • 10 dni - 230 + VAT