Skip to content

Instantly share code, notes, and snippets.

View yisraeldov's full-sized avatar

Yisrael Dov Lebow yisraeldov

View GitHub Profile
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by w3m configure 0.5.2, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/w3m/0.5.2 --disable-debug --disable-dependency-tracking --disable-image
## --------- ##
## Platform. ##
@yisraeldov
yisraeldov / gist:7228873
Created October 30, 2013 08:19
A printed agenda for orgmode, hebrew doesn't work thought in the ps export:(
(setq org-agenda-custom-commands
'(("P" "Printed agenda"
(
(agenda "" ((org-agenda-ndays 1) ;; daily agenda
(org-deadline-warning-days 7) ;; 7 day advanced warning for deadlines
(org-agenda-todo-keyword-format "[ ]")
(org-agenda-scheduled-leaders '("" ""))
(org-agenda-prefix-format "%t%s")))
(tags "+BLOCKED<>\"t\"/+TODO" ;; todos sorted by context
@yisraeldov
yisraeldov / Block access to all but index.php
Last active January 1, 2016 07:29
only allow access to index.php file
# only allow access to index.php file
<Files ~ ".*">
Deny from all
</Files>
<Files index.php>
Allow from All
</files>
@yisraeldov
yisraeldov / countries.sql
Created July 10, 2014 10:42
MYSQL table of coutry codes and names
# This is a list of countries found at http://opengeocode.org/download/countrynames.txt
# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# ************************************************************
@yisraeldov
yisraeldov / paymo.js
Created August 14, 2014 13:52
Paymo 3.0 Javascript wrapper
//Paymo API
/**
* This is a quick wrapper for the Paymo 3.0 API
* Requires (jquery.rest)[https://github.com/jpillora/jquery.rest]
*
* Copyright (c) 2014 Yisrael Dov Lebow <lebow@lebowtech.com>
*
* 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
for f in *.nes ;
do echo $f ;
mednafen -autosave 0 -video.fs 0 -qtrecord mov/"$f.mov" "$f" -qtrecord.vcodec=png & sleep 10 ;
killall mednafen;
ffmpeg -i mov/"$f.mov" mov/"$f.mp4";
rm mov/"$f.mov";
done
@yisraeldov
yisraeldov / -
Created November 20, 2016 09:45
Swap win key and alt key on linux
setxkbmap -option altwin:swap_lalt_lwin
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="us,il"
XKBVARIANT=","
XKBOPTIONS="grp:caps_toggle,grp_led:scroll,altwin:swap_lalt_lwin,numpad:mac"
BACKSPACE="guess"
@yisraeldov
yisraeldov / -
Created December 6, 2016 09:37
Unzip 7z files and add to audacious
for f in *.7z ; do echo $f; 7z e "$f" -o"`basename "$f" .7z`" ; audacious -e "`basename "$f" .7z`" & echo "ok" ; done