Skip to content

Instantly share code, notes, and snippets.

@jvenator
jvenator / gist:9672772a631c117da151
Last active April 28, 2024 01:09
PDFtk Server Install Workaround for Mac OS X

Installing PDFtk Server edittion on your Mac

This workaround install is necessary because PDFtk was pulled from homebrew-cask due to issues with it aggressively overwriting file permissions that could impact other installed libraries. See this homebrew-cask issue.
The following steps worked on Mac OS X 10.10.1 with a standard brew installation for the PDFtk Mac OS X server libary version 2.02.
All Terminal commands separated by a full line space. Some commands wrap into multiple lines.

Download and extract the Mac OS X server install pacakge

@khskekec
khskekec / libre-link-up-http-dump.md
Last active April 28, 2024 01:08
HTTP dump of Libre Link Up used in combination with FreeStyle Libre 3
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 28, 2024 01:08
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@lohhans
lohhans / README-PTBR.md
Last active April 28, 2024 01:06 — forked from PurpleBooth/README-Template.md
Um modelo para fazer um bom README.md

Título do projeto

Um parágrafo da descrição do projeto vai aqui

🚀 Começando

Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.

Consulte Implantação para saber como implantar o projeto.

/* eslint-disable no-var,newline-before-return */
var removeDuplicates = true
/**
* This function should work for any instagram post.
* Use it by opening Chrome's javascript console and pasting all of this code. (see link below)
* https://developers.google.com/web/tools/chrome-devtools/console/
*
* All comments are not immediately visible. This will automatically click the "show more" button for you.
* It could take some time depending on how many comments there are.
@Edu4rdSHL
Edu4rdSHL / luks-upgrade.md
Created July 13, 2019 22:28 — forked from kravietz/luks-upgrade.md
Ubuntu LUKS cryptsetup upgrade

If you installed your #ubuntu with full-disk #encryption a while, you may want to upgrade your #luks header version to enjoy improved #security and stronger password hashing algorithms.

Boot from USB

You can't change LUKS header from a live system - you need to boot a live Ubuntu USB to be able to access the encrypted partition. First, create a bootable USB stick using a regular Ubuntu installer image.

  • Just get the latest installer ISO available
  • You need the full installer, the mini network installer won't work
  • You may need to disable Secure Boot in BIOS temporarily to boot from USB
import shutil, tempfile, modal, uuid, os, boto3, ffmpeg, logging
from enum import Enum
from pydantic import BaseModel
from typing import Optional, Dict, List, Any
from concurrent.futures import ThreadPoolExecutor, as_completed
app_image = (
modal.Image.debian_slim()
.apt_install("ffmpeg")
.pip_install("ffmpeg-python", "boto3")
@leocomelli
leocomelli / git.md
Last active April 28, 2024 00:54
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@liu246542
liu246542 / gangao.dpl
Last active April 28, 2024 00:52
各种直播源
DAUMPLAYLIST
1*file*http://cloud-play.hhalloy.com/live/cf4d66edc142b2f0cc8c71bca56b2268.m3u8
1*title*中视新闻[HD]
2*file*http://cloud-play.hhalloy.com/live/a4aa25e01a432729323f4d0778605887.m3u8
2*title*DWTV
3*file*http://cloud-play.hhalloy.com/live/1aab6cf57296bdefc6f4bea94702782a.m3u8
3*title*新加坡亚洲新闻台
4*file*http://cloud-play.hhalloy.com/live/4677cf6625ce01b236bbb58f99094d51.m3u8
4*title*寰宇新闻[HD]
5*file*http://cloud-play.hhalloy.com/live/7c52797bf1ca2da52c212bdead1d607c.m3u8
@guillaumevincent
guillaumevincent / README.md
Last active April 28, 2024 00:51
Windows Service with Python 3.5 and pyinstaller