Skip to content

Instantly share code, notes, and snippets.

View janxkoci's full-sized avatar

Jeňa Kočí janxkoci

View GitHub Profile
@nonamed01
nonamed01 / fuckForticlient.sh
Last active January 23, 2026 17:16
fuckForticlient, a command-line client to connect to SAML fortivpn servers by using openfortivpn and the --cookie-in-stdin parameter
#!/bin/bash
# Uncomment the following line to debug the script:
#set -x
#####################################################################################
# fuckForticlient.sh
#
# Script to authenticate against Fortinet SAML servers using Firefox and
# openfortivpn. This replaces Forticlient for GNU/Linux completely.
# Because openfortivpn does not support SAML login (yet), this script uses Firefox
# to authenticate, grabs SVPNCOOKIE and then calls openfortivpn to setup
@veekaybee
veekaybee / chatgpt.md
Last active February 25, 2026 08:47
Everything I understand about chatgpt

ChatGPT Resources

Context

ChatGPT appeared like an explosion on all my social media timelines in early December 2022. While I keep up with machine learning as an industry, I wasn't focused so much on this particular corner, and all the screenshots seemed like they came out of nowhere. What was this model? How did the chat prompting work? What was the context of OpenAI doing this work and collecting my prompts for training data?

I decided to do a quick investigation. Here's all the information I've found so far. I'm aggregating and synthesizing it as I go, so it's currently changing pretty frequently.

Model Architecture

@cvoltz
cvoltz / dropbox.patch
Created August 9, 2019 14:54
Patch to dropbox.py to get the correct PID when running Dropbox via flatpak
--- dropbox.py
+++ dropbox.py
@@ -134,11 +134,12 @@
FatalVisibleError("Platform not supported")
def is_dropbox_running():
- pidfile = os.path.expanduser("~/.dropbox/dropbox.pid")
-
try:
- with open(pidfile, "r") as f:
@sephraim
sephraim / import_vcf_into_df.R
Created March 28, 2017 22:02
Import VCF file into data frame in R
library(vcfR)
# Import VCF
my.vcf <- read.vcfR('my.vcf.gz')
# Combine CHROM thru FILTER cols + INFO cols
my.vcf.df <- cbind(as.data.frame(getFIX(my.vcf)), INFO2df(my.vcf))
@rpavlik
rpavlik / PushBulletBookmarklet.js
Last active October 30, 2020 16:41 — forked from Ashish879/PushBulletBookmarklet.js
PushBullet Bookmarklet
(function() {
var API_KEY = "YOUR_API_KEY_GOES_HERE";
// code for IE7+, Firefox, Chrome, Opera, Safari - forget IE6
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST", "https://api.pushbullet.com/v2/pushes", true);
xmlhttp.setRequestHeader('Content-Type', 'application/json');
xmlhttp.setRequestHeader('Authorization', "Bearer " + API_KEY);
/// @todo needs oauth2 update? ugh.
@s-leroux
s-leroux / pgist.sh
Created June 24, 2016 09:46
Post GIST
# 0. Your file name
FNAME=some.file
# 1. Somehow sanitize the file content
# Remove \r (from Windows end-of-lines),
# Replace tabs by \t
# Replace " by \"
# Replace EOL by \n
CONTENT=$(sed -e 's/\r//' -e's/\t/\\t/g' -e 's/"/\\"/g' "${FNAME}" | awk '{ printf($0 "\\n") }')
@Ashish879
Ashish879 / PushBulletBookmarklet.js
Last active November 12, 2018 14:07
PushBullet Bookmarklet
/***********************************************
* If you don't have any proxy restrictions calling PushBullet directly is the recommended approach.
* To use this script replace the "<INSERT_API_KEY_HERE>" section with your API KEY
* A bookmarklet is created like a regular bookmark. The below javascript code goes in the URL area.
************************************************/
javascript:(function()%7Bfunction%20callback()%7B(function(%24)%7Bvar%20jQuery%3D%24%3Bvar%20API_KEY%20%3D%20%22<INSERT_API_KEY_HERE>%22%3Bvar%20newPush%20%3D%20%7B%7D%3BnewPush%5B%22type%22%5D%20%3D%20%22link%22%3B%20newPush%5B%22title%22%5D%20%3D%20document.title%3BnewPush%5B%22url%22%5D%20%3D%20document.URL%3B%24.ajax(%7Btype%3A%20%22POST%22%2Cheaders%3A%20%7B%22Authorization%22%3A%20%22Bearer%20%22%20%2B%20API_KEY%7D%2Curl%3A%20%22https%3A%2F%2Fapi.pushbullet.com%2Fv2%2Fpushes%22%2Cdata%3A%20newPush%7D)%7D)(jQuery.noConflict(true))%7Dvar%20s%3Ddocument.createElement(%22script%22)%3Bs.src%3D%22https%3A%2F%2Fajax.googleapis.com
@davfre
davfre / bamfilter_oneliners.md
Last active December 9, 2025 09:48
SAM and BAM filtering oneliners
@dconnolly
dconnolly / README.md
Last active January 23, 2026 23:20
All 100 Chromecast background images that are rotated through, linked to their original locations on Google hosting. Links to 2560 width versions, where available.
@rxaviers
rxaviers / gist:7360908
Last active February 26, 2026 05:37
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: