Skip to content

Instantly share code, notes, and snippets.

@jjb
jjb / file.md
Last active April 28, 2024 11:59
Using Jemalloc 5 with Ruby.md

For years, people have been using jemalloc with ruby. There are various benchmarks and discussions. Legend had it that Jemalloc 5 doesn't work as well as Jemalloc 3.

Then, one day, hope appeared on the horizon. Someone offered a config for Jemalloc 5.

The recipe would be something like this (shown with official docker ruby image).

FROM ruby:3.1.2-bullseye
import UIKit
final class TransitionDelegate: NSObject,
UIViewControllerTransitioningDelegate {
private let interactiveController = UIPercentDrivenInteractiveTransition()
private let duration = CATransaction.animationDuration()
func presentationController(forPresented presented: UIViewController,
@Misko-2083
Misko-2083 / html-example.sh
Created May 25, 2020 13:53
yad --html dialog example
#!/bin/bash
UI=$(cat <<EOF
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.body {
background-color: #CECECE;
@daveh
daveh / form.html
Last active April 28, 2024 11:56
Send email with PHP (code to accompany https://youtu.be/fIYyemqKR58)
<!DOCTYPE html>
<html>
<head>
<title>Contact</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
</head>
<body>
<h1>Contact</h1>
@AndrewMast
AndrewMast / disable_vanguard.vbs
Last active April 28, 2024 11:54
Commands to disable Riot Vanguard when you aren't playing Valorant
' Disables Vanguard from starting when you boot your computer
Call CreateObject("Shell.Application").ShellExecute("cmd.exe", "/c ""sc config vgc start= disabled & sc config vgk start= disabled""", "", "runas")
@Misko-2083
Misko-2083 / yadtime.sh
Last active April 28, 2024 11:53
A simple YAD (Yet another Dialog) Time and Date bash script
#!/bin/bash
# Pipe
while true
do
echo "1:#$(date '+%T')"
echo "1:$(date '+%1S')"
echo "2:#$(date '+%D %a')"
echo "2:$((60-$(date '+%1S')))"
sleep 1

An h1 header

Paragraphs are separated by a blank line.

2nd paragraph. Italic, bold, and monospace. Itemized lists look like:

  • this one
  • that one
@ChunchunQ
ChunchunQ / nobkgtav.md
Last active April 28, 2024 11:51
NOBK GTA V Troll Modpack

image

Version 1.00

A modpack that turns every NPC into a game/anime/movie character. Also includes many cars and world modifications.

This modpack sometimes crashes the game and i don't know if it can be ever fixed.

KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS