Skip to content

Instantly share code, notes, and snippets.

View shizeeg's full-sized avatar

Shizeeg Unadequatov shizeeg

View GitHub Profile
@shizeeg
shizeeg / PKGBUILD
Created March 10, 2014 07:47
yetris Customizable Tetris(tm) for the terminal
# Maintainer: Lucas de Sena <lucas DOT ta23 @ gmail DOT com>
# Developer: Alexandre Dantas <alex DOT dantas92 @ gmail DOT com>
# Contributor: Shizeeg Unadequatov <shizeeque @ gmail DOT com>
pkgname=yetris-git
pkgver=2.0.1.r0.g4e1be22
pkgrel=2
pkgdesc="Customizable Tetris(tm) for the terminal"
arch=('x86_64' 'i686')
url="http://www.github.com/alexdantas/yetris/"
@shizeeg
shizeeg / show_room_occupants_count.patch
Created May 13, 2014 16:15
"show_room_occupants_count" option for mcabber
diff -r 0355be54e3a9 mcabber/mcabber/commands.c
--- a/mcabber/mcabber/commands.c Sun May 11 18:02:41 2014 +0200
+++ b/mcabber/mcabber/commands.c Tue May 13 20:02:43 2014 +0400
@@ -2074,10 +2074,12 @@
strncpy(buffer, "Room members:", 127);
scr_WriteIncomingMessage(bjid, buffer, 0, HBB_PREFIX_INFO, 0);
+ int cnt = 0;
resources = buddy_getresources(bud);
for (p_res = resources ; p_res ; p_res = g_slist_next(p_res)) {
#!/bin/sh
CONV='enconv -L ru -x utf8 '
# GET='curl -s --range=1-1024
#GET='wget -q -O - '
GET='elinks -source -force-html '
for arg in ${@}; do
if grep -q "http" <<<"${arg}" ;then
LINK="${arg}"
@shizeeg
shizeeg / txt2html.py
Last active August 29, 2015 14:17
worst code ever
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
txt2html.py. v0.0.4
Copyright (C) 2013-15 sh!zeeg <shizeeg@ya.ru>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@shizeeg
shizeeg / ftpscrot.sh
Last active December 15, 2015 15:18
Take screenshot, upload to narod.ru then show link on the terminal.
#!/bin/sh
# http://help.yandex.ru/narod/creating/ftp.xml
#
LOGIN=
PASS=
LFTP=/usr/bin/lftp
SCROT=/usr/bin/scrot
SCROTOPTS=
REMOTEDIR=
IMGDIR="/tmp/"
@shizeeg
shizeeg / xdg-dirs.c
Last active December 15, 2015 22:39
XDG Directories.
/****************************************************************************
* xdg-dirs show XDG environment variables.
* Copyright (C) 2013 sh!zeeg <shizeeg@ya.ru>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@shizeeg
shizeeg / PKGBUILD
Last active December 16, 2015 06:59
luasocket-git PKGBUILD for Arch Linux updated according latest official AUR Guidelines.
# Maintainer: Alfredo Palhares <masterkorp@masterkorp.net>
# Contributor: Shizeeg Unadequatov <shizeeque@gmail.com>
# Please submit your patches to:
# https://github.com/masterkorp/pkgbuilds
pkgname=luasocket-git
_gitname=luasocket
pkgver=20130605
pkgrel=2
@shizeeg
shizeeg / PKGBUILD
Created April 17, 2013 09:24
swiften-git version 20130408 from AUR work with spectrum2-git
# Maintainer: ntkoopman ???
# Contributor: Shizeeg Unadequatov <shizeeque@gmail.com>
pkgname=swiften-git
pkgver=20130408
pkgrel=1
pkgdesc="XMPP Client Library"
arch=('i686' 'x86_64')
url="http://swift.im/"
license=('GPL3')
@shizeeg
shizeeg / PKGBUILD
Last active December 16, 2015 18:19
Toolkit engine for DirectFB. Fixed PKGBUILD.
# Contributor: Georgios N. Tsalikis <aliverius@tsalikis.net>
# Contributor: Shizeeque Unadequatov <shizeeque@gmail.com>
pkgname=lite-git
pkgver=20121223
pkgrel=1
pkgdesc="A toolkit engine for DirectFB"
arch=('i686' 'x86_64')
url="http://www.directfb.org"
license="LGPL"
@shizeeg
shizeeg / PKGBUILD
Created April 28, 2013 08:53
Terminal emulator for directfb. Fixed PKGBUILD.
# Maintainer: Jesse Jaara <gmail.com: jesse.jaara>
# Contributor: Shizeeg Unadequatov <shizeeque@gmail.com>
pkgname=dfbterm-git
pkgver=20121217
pkgrel=1
pkgdesc="Terminal emulator for directfb. Git version"
arch=('i686' 'x86_64')
url="http://www.directfb.org"
license=('LGPL')