Skip to content

Instantly share code, notes, and snippets.

View silverqx's full-sized avatar
:octocat:
exploration

Silver Zachara silverqx

:octocat:
exploration
  • Slovakia
  • 19:47 (UTC +01:00)
View GitHub Profile
@silverqx
silverqx / keybase.md
Created March 29, 2018 21:00
Keybase proof

Keybase proof

I hereby claim:

  • I am silverqx on github.
  • I am silverzachara (https://keybase.io/silverzachara) on keybase.
  • I have a public key whose fingerprint is EFAC C3B7 5352 7557 18F9 95CE 7AF6 0D54 9724 DEEF

To claim this, I am signing this object:

@silverqx
silverqx / qbittorrent_init.bat
Last active October 1, 2017 20:15
Compile qBittorrent with msys2 mingw
rem not needed in mingw builds
rem export PATH="/e/c/qbittorrent_32_mingw_shared/install_msvc/base/include:$PATH"
rem export PATH="/e/c/qbittorrent_32_mingw_shared/install_msvc/base/lib:$PATH"
rem I do not remember if this is needed :), but if yes, so will be needed during openssl compile
export INCLUDE="/e/c/qbittorrent_32_mingw_shared/install_msvc/base/include:$INCLUDE"
export LIB="/e/c/qbittorrent_32_mingw_shared/install_msvc/base/lib:$LIB"
export PATH="/e/c/qbittorrent_32_mingw_shared/install_msvc/base/bin:$PATH"; \
export CXXFLAGS="-L/e/c/qbittorrent_32_mingw_shared/install_msvc/base/include"; \
INCLUDEPATH += $$quote(E:/c/qbittorrent_64/install_msvc/base/include)
INCLUDEPATH += $$quote(E:/c/qbittorrent_64/install_msvc/base/include/boost-1_64)
LIBS += $$quote(-LE:/c/qbittorrent_64/install_msvc/base/lib)
# BOOST DEFINES
# Disable this if building against libtorrent 1.1.x (RC_1_1)
DEFINES -= BOOST_ASIO_SEPARATE_COMPILATION
DEFINES -= BOOST_USE_WINAPI_VERSION=0x0501
DEFINES -= BOOST_SYSTEM_STATIC_LINK=1
@silverqx
silverqx / gist:1243530
Created September 26, 2011 21:59 — forked from jgornick/gist:249442
ZF: Zend_Application_Resource_Acl
# Adding a role
# resources.acl.roles.{roleName}.id = {roleId}
resources.acl.roles.guest.id = "G"
# Assigning parents to a role
# resources.acl.roles.{roleName}.parents = {parentRoleIds} (multiple in csv)
resources.acl.roles.user.id = "U"
resources.acl.roles.user.parents = "G"
# Adding a resource
require_once 'Zend/Application/Resource/ResourceAbstract.php';
/**
* TODO: short description.
*
* TODO: long description.
*
*/
class My_Resource_Database extends Zend_Application_Resource_ResourceAbstract
{