Skip to content

Instantly share code, notes, and snippets.

View hightemp's full-sized avatar
🎯
Focusing

Anton Panov hightemp

🎯
Focusing
View GitHub Profile
@pklaus
pklaus / StatusIcon.py
Created February 15, 2010 20:36
StatusIcon – A Simple Tray Icon Application Using PyGTK
#!/usr/bin/env python
# found on <http://files.majorsilence.com/rubbish/pygtk-book/pygtk-notebook-html/pygtk-notebook-latest.html#SECTION00430000000000000000>
# simple example of a tray icon application using PyGTK
import gtk
def message(data=None):
"Function to display messages to the user."
@ramusus
ramusus / rails_admin.ru.yml
Created February 10, 2012 10:14
Russian translation for RailsAdmin
# Russian. Updated 2012-07-18
ru:
admin:
home:
name: "Главная"
pagination:
previous: "&laquo; Предыдущая"
next: "Следующая &raquo;"
truncate: "…"
@borriglione
borriglione / gist:2237588
Created March 29, 2012 13:45 — forked from quafzi/gist:2234563
Magento Snippets

Magento Snippets

Download extension manually using pear/mage

Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/

./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent

Clear cache/reindex

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 16, 2025 19:00
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@mackstann
mackstann / gist:4229933
Created December 7, 2012 01:16
Gigantic recursive directory lister
// http://www.olark.com/spw/2011/08/you-can-list-a-directory-with-8-million-files-but-not-with-ls/
#define _GNU_SOURCE
#include <dirent.h> /* Defines DT_* constants */
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/syscall.h>
@kyuumeitai
kyuumeitai / pdf2jpg.sh
Created January 28, 2013 13:43 — forked from yura/pdf2jpg.sh
#!/bin/bash
# Script to convert PDF file to JPG images
#
# Dependencies:
# * pdftk
# * imagemagick
PDF=$1
@kujohn
kujohn / portforwarding.md
Last active April 3, 2025 15:00
Port forwarding in Mavericks

Port Forwarding in Mavericks


Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.

####1. anchor file Create an anchor file under /etc/pf.anchors/<anchor file> with your redirection rule like:

<?php
/**
* Callable typehints are only supported in php >= 5.4.
*
* For PHP 5.3, remove callable typehint, use is_callable($callback) instead.
*/
/**
* Returns true if the given predicate is true for all elements.
*/
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class
@felixfischer
felixfischer / russian-banks.txt
Last active October 27, 2021 20:54
List of Russian Banks
"AJSIAJSIAJ BANK EVRAZIYa" (OOO)
"ALOR BANK" (OAO)
"ANKOR BANK" (OAO)
"AZIATSKO-TIKhOOKEANSKIJ BANK" (OAO)
"BANK "MBA-MOSKVA" OOO
"BANK KREMLEVSKIJ" OOO
"BANK24.RU"(OAO)
"BMV BANK" OOO
"BNP PARIBA" ZAO
"BRATSKIJ ANKB" OAO