Skip to content

Instantly share code, notes, and snippets.

View rudowastaken's full-sized avatar

Rudolf Halas rudowastaken

View GitHub Profile
@rudowastaken
rudowastaken / .tmux.conf
Created May 23, 2018 12:52
.tmux.conf
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# start with window 1 (instead of 0)
set -g base-index 1
# start with pane 1
set -g pane-base-index 1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>FireCode</string>
<key>settings</key>
<array>
<dict>
<key>name</key>

Keybase proof

I hereby claim:

  • I am HRcc on github.
  • I am rudolfhalas (https://keybase.io/rudolfhalas) on keybase.
  • I have a public key whose fingerprint is 4474 0E37 0930 1C92 C733 A53C F8C5 47BF EEB2 39A9

To claim this, I am signing this object:

/*******************************************************************************
1. DEPENDENCIES
*******************************************************************************/
var gulp = require('gulp'); // gulp core
sass = require('gulp-sass'), // sass compiler
uglify = require('gulp-uglify'), // uglifies the js
jshint = require('gulp-jshint'), // check if js is ok
rename = require("gulp-rename"); // rename files
concat = require('gulp-concat'), // concatinate js
@rudowastaken
rudowastaken / white2transparent_in_PS
Last active August 29, 2015 13:57
Removing white background, Photoshop
1. copy the image to a new layer and delete the background layer
2. copy the image to a new layer again and INVERT it
3. copy the inverted layer into the clipboard, and switch off its visibilty for now
4. go back the the +ve image and create a layer mask
5. press ALT whilst clicking on the mask thumbnail
6. paste the inverted image, then click back to the image thumbnail in the layer palette
7. duplicate this new layer until necessary (5 times?) and delete the inverted layer you created at the start
8. merge down the layers one by one (Ctrl-E) choosing to "apply mask" each time
@rudowastaken
rudowastaken / vertical_align
Created January 15, 2014 16:28
Vertical align anything
#To make it even more simple, we can write it as a mixin with its vendor prefixes:
@mixin vertical-align {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
@rudowastaken
rudowastaken / deploy.hr
Created January 1, 2014 12:05
Deployment script ignoring .htaccess
#!/bin/zsh
#
# Edit login and server to correct values
#
rsync -avg --exclude='.htaccess' . login@server:/web
@rudowastaken
rudowastaken / .htaccess
Last active April 18, 2019 18:43
ModRewrite for Laravel project deployment @ websupport.sk Use in the application root
DirectorySlash Off
Options +FollowSymlinks -Indexes -MultiViews
AddDefaultCharset utf-8
DirectoryIndex /public/index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f