Skip to content

Instantly share code, notes, and snippets.

@tgr
tgr / .gitignore
Last active November 20, 2023 04:51
Iframe caching test
.venv/
*.html
jquery.js
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
import json
import re
from datetime import datetime
URL = 'https://trends.builtwith.com/cms/MediaWiki'
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
int main(int argc, char *argv[])
{
unsigned long value;
char *terminatedAt;

Keybase proof

I hereby claim:

  • I am tgr on github.
  • I am tiszagergo (https://keybase.io/tiszagergo) on keybase.
  • I have a public key ASBqVvIhp7t7a81cS8qFOHYm37b0xKd3-7cWGkcuXUCyrAo

To claim this, I am signing this object:

# Execute this in the root of the mmv repo
# Find and replace script symbols
find {resources,tests/qunit}/mmv -name \*.js -exec sed -i '' \
-e 's/TextInputMenuWidget/TextInputMenuSelectWidget/g' \
-e 's/MenuWidget/MenuSelectWidget/g' \
-e 's/MenuItemWidget/MenuOptionWidget/g' \
-e 's/MenuSectionItemWidget/MenuSectionOptionWidget/g' \
-e 's/OutlineWidget/OutlineSelectWidget/g' \
-e 's/OutlineItemWidget/OutlineOptionWidget/g' \
@tgr
tgr / pre-push
Created May 31, 2013 17:51
git pre-push hook to make sure local commits cannot be pushed
#! /bin/bash
REMOTE="$1"
URL="$2"
Z40=0000000000000000000000000000000000000000
IFS=' '
while read local_ref local_sha remote_ref remote_sha
do
if [[ $local_sha == $Z40 ]]; then