Skip to content

Instantly share code, notes, and snippets.

View fedir's full-sized avatar
🌤️
The sun is behind every cloud

Fedir RYKHTIK fedir

🌤️
The sun is behind every cloud
View GitHub Profile
@Natim
Natim / cutfdu.py
Created February 14, 2014 15:32
Faster count uniq cut file (for flake8 or log for instance) (Thx @boblefrag for http://snippet.gabory.fr/snippet/9/)
# From http://snippet.gabory.fr/snippet/9/
# Similar to `cut -d ":" -f 1 | sort | uniq -c | sort -n`
#
# Usage: flake8 venv | python cutfdu.py
# Mock : flake8 venv | cut -d ":" -f 1 | sort | uniq -c | sort -n
#
# From Natim with love (2014-02-14)
import itertools
import sys
@alienlebarge
alienlebarge / 01-GruntJS-Patternlab-TYPO3.md
Last active August 29, 2015 13:57
How we use GruntJS with patternlab and TYPO3 TemplaVoilà
@phbergsmann
phbergsmann / gist:9975380
Created April 4, 2014 14:04
NGINX configuration for TYPO3 with HHVM and PHP-FPM Fallback
server {
listen 80;
server_name localhost;
root /var/www;
client_max_body_size 32M;
location = /clear.gif {
empty_gif;
expires max;
@fedir
fedir / basicLinuxSecurity.sh
Created February 17, 2015 09:13
Basic Linux Security
apt-get install fail2ban
apt-get update
apt-get upgrade
passwd
.platform-android4_1 {
/*Any styles for android 4.1*/
}
.platform-android4_3 {
/*Any styles for android 4.3*/
}
.platform-android4_4 {
/*Any styles for android 4.4*/
@capaj
capaj / app-config.js
Created May 27, 2015 09:07
useful config for your angular apps
app.config(function($compileProvider) {
if (!location.host.match(/localhost/)) {
$compileProvider.debugInfoEnabled(false);
}
})
set :application, "appname"
set :repository, "git@github.com:username/project.git"
# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, "/var/apps/#{application}"
set :scm, :git
set :branch, "master"
set :typo3_local_folders, %W(fileadmin typo3temp uploads)
set :typo3_source, %W(index.php t3lib typo3)
namespace :deploy do
desc "Set up the expected application directory structure on all boxes"
task :setup, :except => { :no_release => true } do
sudo <<-CMD
mkdir -p #{deploy_to} #{releases_path} #{shared_path}
CMD
typo3_local_folders.each do |asset|
@danfrost
danfrost / customise.php
Created November 29, 2011 12:40
How to use TYPO3 hooks to customise what is displayed in a given listing.
# 1. Make an empty extension
# 2. ext_tables.php
<?php
require_once t3lib_extMgm::extPath('dblist_hook') . '/class.user_tx_belisthook.php';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['getTable'][] = 'user_tx_belisthook';
?>
@irnnr
irnnr / README.md
Last active October 2, 2015 02:14
TYPO3 Dynamic Return Type code completion