This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch --commit-filter ' | |
if [ "$GIT_AUTHOR_EMAIL" = "foo" ]; | |
then | |
GIT_AUTHOR_EMAIL="bar"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; | |
fi' HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --raw | grep -e "^Author: " -e "^Commit: " | sort | uniq -c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -a --merged remotes/origin/next | grep -v -E "master|next|release" | grep "public" | cut -d "/" -f 3 | xargs -n 1 git push --delete public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class indexController extends Controller { | |
public $head = 1; | |
var $name = "Vytvoření účtu"; | |
/** | |
* Automatický text pro template - titulek (TITLE) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
" Use pathogen to easily modify the runtime path to include all | |
" plugins under the ~/.vim/bundle directory | |
call pathogen#helptags() | |
call pathogen#infect() | |
" change the mapleader from \ to , | |
let mapleader="," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su - postgres | |
service postgresql stop | |
mv /var/lib/postgresql /srv/postgresql | |
sudo chown -R postgres:postgres /srv/postgres/ | |
ln -s /srv/postgresql /var/lib/postgresql | |
chown -R postgres:postgres /var/lib/postgresql | |
service postgresql start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 1 > /proc/sys/vm/drop_caches | |
echo 2 > /proc/sys/vm/drop_caches | |
echo 3 > /proc/sys/vm/drop_caches | |
sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn render | |
[{{poster :poster} :data :as notification}] | |
...) | |
vs. | |
(defn render | |
[notification] | |
(let [poster (-> notification :data :poster)] | |
...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; VERSION 0 | |
(defn- validate-request= | |
[input] | |
(if (valid? ...) | |
(rop/succeed input) | |
(rop/fail {:status 400}))) | |
(defn- create-user! | |
[{:keys [conf request] :as input}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns datetime | |
(:require [cljs-time.format :refer [formatter unparse parse formatters]] | |
[clojure.string :as string])) | |
(def human-date-fmt (formatter "dd. MM. yyyy")) | |
(defn fmt | |
"Formats a given `datetime` by a given `fmt` or a default formatter." | |
([datetime fmt] | |
(when-not (string/blank? datetime) |
OlderNewer