Skip to content

Instantly share code, notes, and snippets.

View thibault-ketterer's full-sized avatar

thibault ketterer thibault-ketterer

  • France
View GitHub Profile
# list ec2 instances everywhere, with creation date and tag,
# output is not really nice beacuse of tags, but it works
for region in $(aws ec2 describe-regions --query "Regions[].RegionName" --output text); do
echo "Region: $region"
aws ec2 describe-instances --region $region --query 'Reservations[].Instances[].[InstanceId, InstanceType, LaunchTime, State.Name, Tags]' --output text
echo
done
@thibault-ketterer
thibault-ketterer / wider-chatgpt.js
Created January 18, 2024 10:19
make chat gpt wider
// ==UserScript==
// @name Makes ChatGPT Conversations wider
// @namespace [http://tampermonkey.net/ ](http://tampermonkey.net/)
// @version 2.0
// @description Makes ChatGPT Conversations wider
// @author reach4thelasers. Thibault Ketterer
// @match https://chat.openai.com/*
// @grant none
// @icon [https://www.google.com/s2/favicons?sz=64&domain=chat.openai.com ](https://www.google.com/s2/favicons?sz=64&domain=chat.openai.com)
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am thibault-ketterer on github.
  • I am thekit (https://keybase.io/thekit) on keybase.
  • I have a public key whose fingerprint is 8AA5 DEEC 0E41 86B8 BE66 0DD3 9F2C 1B0F 0B75 8A03

To claim this, I am signing this object:

@thibault-ketterer
thibault-ketterer / web-servers.md
Created October 7, 2021 09:23 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@thibault-ketterer
thibault-ketterer / git_commit_with_file_date.sh
Created March 15, 2018 15:07
git commit with file date instead of "now"
#!/bin/bash
for file in *;do
dat=$(stat -c %y $file)
echo $dat : $file
git add $file
git commit --date="$dat" $file -m "TK add example $file"
done
@thibault-ketterer
thibault-ketterer / update_kernel_ovh.sh
Last active January 8, 2018 10:15
upgrade kernel @ ovh hosts
#!/bin/bash
# MIT License
#
# Copyright (c) 2017 thibault ketterer
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell