Skip to content

Instantly share code, notes, and snippets.

View vladimyr's full-sized avatar
💭
fantom slobode

Dario Vladović vladimyr

💭
fantom slobode
View GitHub Profile
@vladimyr
vladimyr / glibc-check.sh
Last active April 20, 2021 00:10 — forked from fasterthanlime/glibc-check.sh
Prints the various glibc versions required by an executable
#!/bin/bash
# This scripts lets you check which minimum GLIBC version an executable requires.
# Simply run './glibc-check.sh path/to/your/binary'
#
# You can set `MAX_VER` however low you want, although I (fasterthanlime)
# feel like `2.13` is a good target (For reference, Ubuntu 12.04 has GLIBC 2.15)
MAX_VER="${MAX_VER:-2.13}"
BINARY="$1"
#!/bin/sh
base_url=https://manned.org
page="$1"
hash=$(curl -sSL "$base_url/$page" | grep -oP '(?<=data-hash=")[^"]{8}')
mdoc=$(curl -sSL "$base_url/$page/$hash/src")
echo "$mdoc" | man /dev/stdin
#!/bin/bash
set -euo pipefail
pushd "$HOME/.tldr/cache/pages" >/dev/null 2>&1
pages=$(rg -o 'linux.die.net/man/([^/])/([^>]+)' -r '$2.$1' | sort)
for page in $pages; do
tldrpage=$(echo $page | cut -d':' -f1)
manpage=$(echo $page | cut -d':' -f2)
@vladimyr
vladimyr / index.html
Created August 3, 2020 13:45
Kaltura demo player
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Brightcove demo player</title>
</head>
<body>
<iframe id="kaltura_player_1596463167" src="https://cdnapisec.kaltura.com/p/2968292/sp/296829200/embedIframeJs/uiconf_id/46147462/partner_id/2968292?iframeembed=true&playerId=kaltura_player_1596463167&entry_id=0_l7g2xtsz" width="528" height="327" allowfullscreen webkitallowfullscreen mozAllowFullScreen allow="autoplay *; fullscreen *; encrypted-media *" frameborder="0"></iframe>
</body>
</html>
@vladimyr
vladimyr / index.html
Created August 3, 2020 12:50
SproutVideo demo video
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SproutVideo demo player</title>
</head>
<body>
<iframe class='sproutvideo-player' src='https://videos.sproutvideo.com/embed/069cd9b41c1ae1c28f/807cdbe1e3b75f18' width='630' height='354' frameborder='0' allowfullscreen></iframe>
</body>
</html>
@vladimyr
vladimyr / index.html
Last active August 3, 2020 13:21
Brightcove demo player
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Brightcove demo player</title>
</head>
<body>
<div style="position: relative; display: block; max-width: 960px;"><div style="padding-top: 56.25%;"><iframe src="https://players.brightcove.net/6175969021001/SrrwvPcsoN_default/index.html?videoId=6176149862001" allowfullscreen="" allow="encrypted-media" style="position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%;"></iframe></div></div>
</body>
</html>
diff --git a/Formula/latexindent.rb b/Formula/latexindent.rb
index 0492afe2f6..aa9ab37310 100644
--- a/Formula/latexindent.rb
+++ b/Formula/latexindent.rb
@@ -1,14 +1,44 @@
class Latexindent < Formula
desc "Add indentation to LaTeX files"
- homepage "https://github.com/cmhughes/latexindent.pl"
+ homepage "https://ctan.org/pkg/latexindent"
url "https://github.com/cmhughes/latexindent.pl/archive/V3.8.2.tar.gz"
@vladimyr
vladimyr / versions.rb
Created April 11, 2020 14:37
Homebrew cask macOS versions
SYMBOLS = {
catalina: "10.15",
mojave: "10.14",
high_sierra: "10.13",
sierra: "10.12",
el_capitan: "10.11",
yosemite: "10.10",
mavericks: "10.9",
}.freeze