Skip to content

Instantly share code, notes, and snippets.

View dreadwarrior's full-sized avatar
📚
Currently totally into books 😊

Tommy Juhnke dreadwarrior

📚
Currently totally into books 😊
View GitHub Profile
@dreadwarrior
dreadwarrior / gist:1046529
Created June 25, 2011 14:14
How to cleanup outdated TYPO3 projects
# assume your development projects are located in /home/your_name/public_html
cd ~/public_html
# show currently extracted typo3_src directories
ls | grep typo3_src
# example output:
# typo3_src-4.3.3
# typo3-src-4.5.2
# assume you want to remove the 4.3.3 src, find projects which are using this src
find . -maxdepth 2 -lname '*4.3.3*'
# example output:
@dreadwarrior
dreadwarrior / gist:1086730
Created July 16, 2011 20:25
Compiz Dbus Viewport switching
dbus-send --print-reply --dest=org.freedesktop.compiz /org/freedesktop/compiz/wall/screen0/right_key org.freedesktop.compiz.activate
@dreadwarrior
dreadwarrior / gist:1086784
Created July 16, 2011 20:59
Use the HP 6830s Accelerometer to switch the Viewport on Compiz by tapping the screen sides
#!/usr/bin/python
#
# This program is under GPLv3 license --
# http://www.gnu.org/licenses/gpl-3.0.html
#
# original script source: http://people.ksp.sk/~mic/Projects/Rotate
# If you think, that this script is usefull, please send me a postcard to
# adress:
# Michal Nanasi
# Azalkova 1
@dreadwarrior
dreadwarrior / SettingsService.php
Created November 2, 2011 09:07
TYPO3 extbase settings service
<?php
/**
* This is just a shortcut to be able to access it within github
*
* (c) Sebastian Schreiber
*
* copied from here: http://pastie.org/1605142
* @see http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2011-February/008691.html
*/
@dreadwarrior
dreadwarrior / BaseController.php
Created January 18, 2012 13:43 — forked from naag/BaseController.php
Multiple argument validation in Extbase
<?php
class Tx_MyExt_Controller_BaseController extends Tx_Extbase_MVC_Controller_ActionController {
/**
* @see Tx_Extbase_MVC_Controller_ActionController::callActionMethod()
*/
protected function callActionMethod() {
$this->validateAll();
parent::callActionMethod();
@dreadwarrior
dreadwarrior / gist:1827537
Created February 14, 2012 15:24
TYPO3 extbase CompareFieldValidator
<?php
/***************************************************************
* Copyright notice
*
* (c) 2011 Thomas Juhnke (tommy@van-tomas.de)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@dreadwarrior
dreadwarrior / gist:3972979
Created October 29, 2012 11:07
Git: archive/package from a given repository with a given tag into a tar.gz
git archive --format=tar --prefix=myCoolTool/ --remote=file:///home/path/to/myCoolTool/ tags/v1.0 | gzip >myCoolTool_v1.0.tar.gz
@dreadwarrior
dreadwarrior / GnomeIsh.epf
Last active August 29, 2015 14:00
Jeeeyul's Eclipse Themes Preset: GnomeIsh
#Jeeeyul's Eclipse Themes Preset
#Sat Apr 19 23:28:00 CEST 2014
ACTIVE_PART_STACK__CLOSE_BUTTON_COLOR=120.0, 0.023391811, 0.67058825
INACTIVE_PART_STACK__HOVER_TEXT_COLOR=0.0, 0.0, 0.0
WINDOW__STATUS_BAR_FILL_COLOR=0.0, 0.0, 0.92941177, 0|0.0, 0.0, 0.92941177, 100
ACTIVE_PART_STACK__HOVER_FILL_COLOR=0.0, 0.0, 0.92941177, 0|0.0, 0.0, 0.92941177, 100
INACTIVE_PART_STACK__UNSELECTED_BORDER_COLOR=0.0, 0.0, 1.0, 0|0.0, 0.0, 1.0, 100
INACTIVE_PART_STACK__SELECTED_BORDER_COLOR=200.0, 0.01898734, 0.61960787, 0|200.0, 0.01898734, 0.61960787, 100
ACTIVE_PART_STACK__UNSELECTED_BORDER_SHOW=
ACTIVE_PART_STACK__BORDER_COLOR=200.0, 0.01898734, 0.61960787, 0|200.0, 0.01898734, 0.61960787, 100
@dreadwarrior
dreadwarrior / Bookmark.rst
Last active August 29, 2015 14:00
Debian/apt: See why a package is installed
$ apt-cache rdepends --recurse $package

probably gives too many packages

I would add --installed option to restrict to installed packages. -i option restricts to pre-dependence and dependence related packages.

But a package may be installed because it is recommended by another package. To include such recommendation relateded packages, I suppose this would give the right ones: