This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created using hebcal and gawk | |
# hebcal -g --no-special -x | gawk '{ split($0, a, / /) ; date=a[1]; gsub(/-/, "", date); $1=""; desc=$0; sub(/ /, "", desc); print "holiday.en-IL" NR ".name=" desc ; print "holiday.en-IL" NR ".date=" date; }' | |
holiday.en-IL1.name=Tu BiShvat | |
holiday.en-IL1.date=20240125 | |
holiday.en-IL2.name=Family Day | |
holiday.en-IL2.date=20240209 | |
holiday.en-IL3.name=Purim Katan | |
holiday.en-IL3.date=20240223 | |
holiday.en-IL4.name=Shushan Purim Katan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# International Holiday Data provided by Holidata.net | |
# https://holidata.net/en-US/2021.json | |
# https://holidata.net/en-US/2022.json | |
# | |
# Copyright 2006 - 2021, Tomas Babej, Paul Beckingham, Federico Hernandez. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// https://gist.github.com/magnetikonline/650e30e485c0f91f2f40 | |
class DumpHTTPRequestToFile { | |
public function execute($targetFile) { | |
$data = sprintf( | |
"%s %s %s\n\nHTTP headers:\n", | |
$_SERVER['REQUEST_METHOD'], | |
$_SERVER['REQUEST_URI'], | |
$_SERVER['SERVER_PROTOCOL'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compile with `gcc -I/usr/include getxkblayout.c -lX11 -lxkbfile` | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <X11/XKBlib.h> | |
#include <X11/extensions/XKBrules.h> | |
int main(int argc, char **argv) { | |
Display *dpy = XOpenDisplay(NULL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# open-in-firefox-nightly.sh - open URL from Termux command line in Firefox Nightly Android browser | |
# | |
# Works with file:// URLs too, unlike with termux-open{-url}. | |
# | |
exec am start --user 0 -a android.intent.action.VIEW -n org.mozilla.fenix/.IntentReceiverActivity -d "$1" >/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// This program reads a sourcemap from stdin | |
// and replaces the "mappings" property with | |
// human readable content. It writes the output | |
// to stdout. | |
// | |
// 1. install the dependencies: | |
// npm i concat-stream vlq | |
// | |
// 2. optional: install jq for pretty printing json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef _dunstctl dunstctl | |
# Depends on: gAWK (rule), jq (history-pop) | |
local curcontext="$curcontext" ret=1 | |
local -a state line subs | |
if [[ -v XDG_CONFIG_HOME || -n "$XDG_CONFIG_HOME" ]]; then | |
local DUNSTRC="$XDG_CONFIG_HOME/dunst/dunstrc" | |
else | |
local DUNSTRC=$HOME/.config/dunst/dunstrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
# tcpdump regular output color wrapper | |
# usage: tcpdump [options] | awk -f tcpdump.awk | |
BEGIN { | |
yellow="\033[33m" | |
reset="\033[0m" | |
teal="\033[36m" | |
lightred="\033[91m" | |
magenta="\033[35m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[skin] | |
description=Ajnasz Blue Theme. Midnight Commander skin from Ajnasz. | |
[Lines] | |
horiz=─ | |
vert=│ | |
lefttop=┌ | |
righttop=┐ | |
leftbottom=└ | |
rightbottom=┘ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Channel hopping shell script | |
# GPLv2 | |
# Portions of code graciously taken from Bill Stearns defragfile | |
# http://www.stearns.org/defragfile/ | |
# | |
# [email protected] | |
# Defaults | |
BANDS="IEEE80211B" |
NewerOlder