Skip to content

Instantly share code, notes, and snippets.

View fastfingertips's full-sized avatar
🧶
knitting..

fastfingertips

🧶
knitting..
  • Istanbul
  • 04:44 (UTC +03:00)
View GitHub Profile
@fastfingertips
fastfingertips / data.yaml
Last active February 7, 2025 02:13
AFK Journey Quiz Solutions - All Questions (https://afkj-quiz-search.vercel.app)
O:
- "After being a boss, you can still your heroes in the Formation interface"
- "After Rowan is defeated, he will move toward from the position where a non-summoned enemy is defeated"
- "Battle lasting and increased percentage have been added to Rowan during a siege battle"
- "Carmilla will take extra damage to Lightbringer heroes"
- "Crown Death Bounds have multiple difficulties, and they cannot be defeated in Endless Mode"
- "Crown Death Bounds will appear in fixed formation"
- "Due to Faction Weakness, While being under Dura's blessing"
- "Each enemy has its unique support effects"
- "Each time you summon allies the level of the Draw force will increase, and the quality of the items available in the store will improve"
@Thomascountz
Thomascountz / ijq.sh
Last active January 31, 2025 23:53
(Yet another) interactive jq, but it's a bash script using fzf
#!/usr/bin/env bash
set -euo pipefail
if [ "${1:-}" = "--help" ]; then
cat << EOF
Usage: ijq [filename]
A wrapper around jq that uses fzf to interactively build jq filters.
@fastfingertips
fastfingertips / block-gists-from-users.md
Last active January 20, 2025 20:24
Block GitHub Gists from Specific Users

Block GitHub Gists from Specific Users using uBlock Origin

If you want to block Gists from certain users on GitHub, you can use custom filter rules for uBlock Origin. This method will hide Gist snippets created by the specified users from appearing on the GitHub website, including on the discover page (https://gist.github.com/discover).

How to Use

  1. Install the uBlock Origin browser extension if you haven’t already.
  2. Open uBlock Origin settings.
  3. Go to the My Filters tab.
  4. Add the following filter rules:
@cpfiffer
cpfiffer / pdf-to-structure.py
Last active January 22, 2025 18:14
Get structured output from PDFs. Goes through a PDF one page at a time -- it is not currently build for multiple pages, but could be extended as needed.
"""
pip install outlines torch==2.4.0 transformers accelerate typing-extensions pillow pdf2image rich requests
may need to install tkinter: https://stackoverflow.com/questions/25905540/importerror-no-module-named-tkinter
sudo apt-get install poppler-utils
"""
from enum import Enum
from io import BytesIO
@rmtbb
rmtbb / iMessageAttachmentsLinksExtractor.sh
Created November 3, 2024 23:16
iMessage Attachments and Links Extractor for macOS
#!/bin/bash
# Define the main export folder
export_folder=~/Desktop/iMessages_Export
mkdir -p "$export_folder"
# Part 1: Generate the CSV file
echo "Generating CSV file..."
sqlite3 ~/Library/Messages/chat.db <<EOF
@rmtbb
rmtbb / ChatGPT Canvas HTML Renderer from Clipboard.url
Last active January 23, 2025 22:45
Bookmarklet that lets you render a full HTML page with any included css and javascript that is currently copied to your clipboard. Also works for SVG code. Useful with ChatGPT Canvas
javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard

Crippling Facebook

Facebook works with advertisers to target you. These instructions are one of the many ways to begin crippling that relationship. When AI targeting is crippled, your psychosecurity improves :)

  1. On your desktop machine, goto https://accountscenter.facebook.com/ads/audience_based_advertising
  2. Maximize the browser window
  3. Press F12 and click on the Console tab
  4. Select the code below, copy it, paste it upon the Console line (The area next to the > character in the Console window), and press enter:
@SMUsamaShah
SMUsamaShah / Hacker_News_Story_Rank_Change_Indicator.user.js
Last active November 6, 2024 13:27
UserScript: Indicate New/Unread HN stories on front page since your last visit.
// ==UserScript==
// @name Hacker News Story Rank Change Indicator
// @namespace http://tampermonkey.net/
// @version 2024-09-07_15-42
// @description Indicate the new stories and stories moving up/down on the front page
// @author SMUsamaShah
// @match https://news.ycombinator.com/
// @match https://news.ycombinator.com/news
// @match https://news.ycombinator.com/news?p=*
// @match https://news.ycombinator.com/?p=*
@adtac
adtac / Dockerfile
Last active November 1, 2024 03:05
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
@blackary
blackary / caching.py
Last active January 9, 2024 06:37
Caching Snowflake queries in Streamlit
def get_pandas_from_sql(sql: str) -> pd.DataFrame:
start = time.start()
with st.expander("Show the SQL query that generated this data"):
st.code(sql, language="sql")
@st.cache_data(ttl=TTL)
def get_df(sql):
dataframe = session.sql(sql).to_pandas()