git remote prune origin
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d
https://pspdfkit.com/blog/2018/how-to-run-your-phoenix-application-with-docker/
docker-compose build
docker-compose up
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
<!DOCTYPE html> | |
<html lang="de"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Quickshift</title> | |
<link rel="apple-touch-icon" sizes="57x57" href="https://www.qshift.eu/apple-icon-57x57.png"> | |
<link rel="apple-touch-icon" sizes="60x60" href="https://www.qshift.eu/apple-icon-60x60.png"> | |
<link rel="apple-touch-icon" sizes="72x72" href="https://www.qshift.eu/apple-icon-72x72.png"> |
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
require 'sinatra' | |
set :bind, '0.0.0.0' | |
get '/foo' do | |
'Hello ' + params[:time] | |
end |
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
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
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 add PIA20086.tif | |
schmierkov@ ~/repos/sensitive-data (master)* 10:25:52 $ git commit -am 'added big file' | |
[master ec737d5] added big file | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 PIA20086.tif | |
schmierkov@ ~/repos/sensitive-data (master) 10:26:09 $ git push | |
Counting objects: 3, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (3/3), done. | |
Writing objects: 100% (3/3), 8.71 MiB | 161.00 KiB/s, done. |
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 Autocomplete for mac | |
http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/ |
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
# JAVA | |
sudo yum install java-1.7.0-openjdk-devel | |
# ElasticSearch | |
# http://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-install-elasticsearch-logstash-and-kibana-4-on-centos-7-rhel-7.html | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.5.0.noarch.rpm | |
sudo rpm -Uvh elasticsearch-1.5.0.noarch.rpm | |
sudo systemctl daemon-reload | |
sudo systemctl enable elasticsearch.service |
NewerOlder