Skip to content

Instantly share code, notes, and snippets.

View felipemeres's full-sized avatar

Felipe Meres felipemeres

View GitHub Profile
@dangle
dangle / Obsidian Todoist Script.md
Last active June 29, 2024 19:58
Script for use with Obsidian to pull in a snapshot of a day from Todoist

Obsidian Todoist Script

Description

This takes a day in YYYY-MM-DD format and can be called using the CustomJS plugin with either the Dataview plugin or the Templater plugin.

Styling

In order to get nicer styling, copy the todoist.css file to .obsidian/snippets and enable it under Settings → Appearance.

@QWxleA
QWxleA / Readme.md
Last active May 28, 2024 09:27
Obsidian zotero template for use with "obsidian-zotero-integration" plugin

QWxlea's over-engineered zotero template

Faq

What are these %% begin id-pn2xitti%% and %% end id-pn2xitti %% and ^pn2xitti? These are the persistance-markers of the indivual highlights, and the reference-id to that highlight.

The markers are meant for the importer. It will skip all text within those markers, so they stay when updating a zotero-import. Removing a marked block does not work well, it will not be reimported. Don't know how to fix that. If you want to reimport a highlight-block, best is to change the highlight in zotero (for example change the color). This will update the id, and on the next import the new highlight will be imported.

The reference-id is used like this: [[@name-of-the-note#^pn2xitti]]

@derekmerck
derekmerck / vtracer.Dockerfile
Created December 31, 2022 20:24
Instant VisionCortex vtracer node with Docker
# https://github.com/visioncortex/vtracer
# usage:
# > docker build -f vtracer.Dockerfile -t vtracer:0.5 .
# > docker run -p 8080:8080 vtracer
FROM rust
# install wasm-pack
RUN cargo install wasm-pack
@cemerson
cemerson / archive.org-scanned-book-downloader-bookmarklet.md
Last active June 22, 2024 20:57
Archive.org Scanned Book Downloader Bookmarklet

Archive.org Scanned Book Downloader Bookmarklet

A simple "1-click" javascript approach to downloading a scanned book from archive.org to read at your leisure on the device of your choosing w/out having to manually screenshot every pages of the book by hand. In short it's a glorified "Save Image As..." approach but consolidated down to "1 click". BTW there may be a much better option than this out there - I just built this as an autistic project to see if it would work.

Demo Video

Archive.org SBDL Demo

Obligatory Legal/Disclaimer:

By using this script you agree to delete all book files/images after your 1 hour or 14 days is up! I don't support using this script for any other use cases. After all, none of us have ever kept a library book past it's return date, right?

@herronelou
herronelou / CelestialCam.nk
Created March 1, 2021 08:50
Celestial Camera
Group {
name CelestialCam
knobChanged "if 'celestial_cam' in globals(): celestial_cam.celestial_cam_callback()"
selected true
xpos 6036
ypos 400
addUserKnob {20 User l "Celestial Camera"}
addUserKnob {52 map l "" t "Widget refreshes when putting mouse over it. It can occasionally result in a little jump when the input camera has been modified, as the map will not update until hovered." -STARTLINE T "celestial_cam.LatLongPicker(nuke.thisNode()) if 'celestial_cam' in globals() else type('Dummy', (), \{'makeUI': classmethod(lambda self: None)\})"}
addUserKnob {7 lat l Latitude t "Latitude coordinate of camera location on Earth" R -90 90}
addUserKnob {7 long l Longitude t "Longitude coordinate of camera location on Earth" R -180 180}
@AlexMikhalev
AlexMikhalev / get-obsidian-posts.py
Created January 19, 2021 13:46
Sync notion to obsidian world md
from notion.client import NotionClient
import datetime
import os
from slugify import slugify
import re
import requests
import time
import hashlib
import shutil
import sys
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active June 28, 2024 04:42
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@TheRealKeto
TheRealKeto / FuturerestoreGuide.md
Last active March 14, 2024 18:46
A guide fully covering the process of using Futurerestore to upgrade, downgrade, or re-restore to an unsigned iOS firmware.

Futurerestore Guide

Futurerestore is a tool that allows users to upgrade, downgrade, or re-restore their iOS device to an unsigned firmware through the use of SHSH2 blobs. This guide will teach you how to use Futurerestore in order to upgrade, downgrade, or re-restore to an unsigned firmware.

Before continuing, keep in mind that this guide is based off of this one, and contains information that can change your device's behavior or even damage it. With that in mind, please read the guide fully, as no one but YOU will be held responsible for any damage caused to your device.

Notes and Hints

Throughout the entirety of this guide, keep in mind that:

  • iOS 13.1.3's SEP and Baseband are NOT compatible with iOS 12.x for all devices. This means that you're NOT able to upgrade, downgrade, or re-restore A10-A12X devices back to iOS 12.x. Attempting to use an incompatible SEP and Baseband will cause Futureresto
@jedypod
jedypod / README.md
Last active February 29, 2024 20:33
Nuke ffmpeg Render

Nuke ffmpeg Render

Writeffmpeg is a python script and a node that allows you to render from Nuke directly into ffmpeg. Instead of a 2 step process where you render from Nuke to a temporary image sequence that you then transcode using ffmpeg, this solution writes to a single uint16 cache tiff file and this data gets piped into ffmpeg.

I've included a little screen recordingto help demo how it works.

Files

ffmpeg_render.py Writeffmpeg.nk

Dependencies

to convertDate(textDate)
if length of textDate is 4 then
set textDate to "1/1/" & textDate
end if
set resultDate to my date textDate
return resultDate
end convertDate
to surname(textName)
set r to textName