Skip to content

Instantly share code, notes, and snippets.

@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active May 10, 2024 05:05
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@bluetidepro
bluetidepro / remove-advertisers.js
Last active December 29, 2023 06:27
Auto click "remove" on all facebook advertisers and Twitter interests
// I did this in Chrome...
//
// Go to https://www.facebook.com/ads/preferences/
// Click the "Advertisers" section to open it up.
// Click "See more" once
// Before doing anything else, just keep clicking space bar to trigger the "see more" button
// Do this for a bit until all the advertisers are loaded
// then run this below in the dev tools console...
// (It will take a few minutes, depending how many you have, and your browser may lock up, but once it's done you will see it auto clicked the "remove" X in the top right for all of them)
@nbenns
nbenns / betterenum.scala
Created June 19, 2017 15:03
better scala enum with play reads/writes
import play.api.libs.json._
sealed trait Color
object Color {
type Red = Red.type
type Green = Green.type
type Blue = Blue.type
case object Red extends Color
case object Green extends Color
@justincbagley
justincbagley / How_to_Convert_Markdown_to_PDF.md
Last active April 28, 2024 22:28
How To Convert Markdown to PDF

How to convert markdown to PDF:

This post reviews several methods for converting a Markdown (.md) formatted file to PDF, from UNIX or Linux machines.

Using Pandoc:

$ pandoc How_I_got_svg-resizer_working_on_Mac_OSX.md -s -o test1.pdf
@joshschmelzle
joshschmelzle / ffmpeg-cut-out-video.cmd
Created November 29, 2016 18:17
Cut a video without re-encoding with ffmpeg
ffmpeg -i input.mp4 -c copy -ss 00:04:25.000 -to 00:09:25.000 output.mp4

z0rt

ABOUT THE AUTHOR: F. Michael "z0rtalert" Winsby is a self-identified geek, skater, performance artist, Monty Python enthusiast and chief engineer at his startup xeNify. When not drinking away his woes of a youth wasted on MMORPGs or getting yelled at by his pug-faced mail-order wife, he is blogging his way toward becoming the top-rated Scrum Ninja in the Western Hemisphere!

Noodling With Nodules, Part III: A New Paradigm For CRUD

In Part I, we bid goodbye to outdated things like Java, collections and threads, and rewrote a sample CRUD app using the flexible new Nodules stack, with a brief introduction to the Zephram IDE. In part II of this tutorial, we learned how combining Nodules with the bit.orgy toolkit can drastically change the way you think about CRUD and ETL. Since then, several readers have written in to mention that the stack becomes significantly more powerful if the Bizsynth smeat framework is used to handle all the i/o logic.

Progra

@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter
@revmischa
revmischa / shitlink.pl
Last active November 11, 2015 02:29
Irssi script to prevent clicking of low-quality links on the internet
with table_stats as (
select psut.relname,
psut.n_live_tup,
1.0 * psut.idx_scan / greatest(1, psut.seq_scan + psut.idx_scan) as index_use_ratio
from pg_stat_user_tables psut
order by psut.n_live_tup desc
),
table_io as (
select psiut.relname,
sum(psiut.heap_blks_read) as table_page_read,
@Ciantic
Ciantic / JooqModule.scala
Last active September 11, 2017 16:57
injection with DB.getConnection fails
import javax.inject.{Singleton, Inject}
import com.google.inject.AbstractModule
import play.api.db.{DBApi}
import play.api.{Logger, Configuration}
import org.jooq.util.GenerationTool
import org.jooq.util.jaxb.{Target, Database, Generator}
import play.api.db.evolutions.EvolutionsModule
import play.api.Play.current