Skip to content

Instantly share code, notes, and snippets.

View rs-ds's full-sized avatar
👨‍💻
Coding

rs-ds rs-ds

👨‍💻
Coding
View GitHub Profile
@rs-ds
rs-ds / vim-cheatsheet.md
Created May 4, 2019 05:59 — forked from 0xadada/README.md
VIM movement, keyboard commands and shortcuts
@rs-ds
rs-ds / tmux-cheatsheet.markdown
Created June 12, 2019 08:53 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@rs-ds
rs-ds / install_i3_debian.sh
Last active September 28, 2019 08:42
Install i3wm on debian
/usr/lib/apt/apt-helper download-file http://dl.bintray.com/i3/i3-autobuild/pool/main/i/i3-autobuild-keyring/i3-autobuild-keyring_2016.10.01_all.deb keyring.deb SHA256:460e8c7f67a6ae7c3996cc8a5915548fe2fee9637b1653353ec62b954978d844
apt install ./keyring.deb
echo 'deb http://dl.bintray.com/i3/i3-autobuild sid main' > /etc/apt/sources.list.d/i3-autobuild.list
apt update
apt install i3
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
$ /usr/lib/apt/apt-helper download-file https://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2019.02.01_all.deb keyring.deb SHA256:176af52de1a976f103f9809920d80d02411ac5e763f695327de9fa6aff23f416
# dpkg -i ./keyring.deb
# echo "deb https://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" >> /etc/apt/sources.list.d/sur5r-i3.list
# apt update
# apt install i3
@rs-ds
rs-ds / docker-compose.yml
Created July 4, 2020 08:21
Simple Services
version: '3'
volumes:
elastic_data: {}
mongo_data: {}
neo4j_data: {}
postgres_data: {}
rabbitmq_data: {}
services:
@rs-ds
rs-ds / Dockerfile
Last active July 4, 2020 10:28
Solr
FROM solr:6.6.6
RUN precreate-core core1
RUN rm -rf /opt/solr/server/solr/mycores/core1/conf/managed-scehma
RUN rm -rf /opt/solr/server/solr/configsets/basic_configs/conf/managed-schema
COPY managed-schema /opt/solr/server/solr/configsets/basic_configs/conf/
COPY managed-schema /opt/solr/server/solr/mycores/core1/conf/
COPY schema.xml /opt/solr/server/solr/mycores/core1/conf/
@rs-ds
rs-ds / Dockerfile
Created July 4, 2020 10:37
Traefik
FROM traefik:alpine
RUN mkdir -p /etc/traefik/acme
RUN touch /etc/traefik/acme/acme.json
RUN chmod 600 /etc/traefik/acme/acme.json
COPY traefik.toml /etc/traefik
# Custom SSL Certificate
# COPY /path/to/ssl.crt /certs/ssl.crt
# COPY /path/to/ssl.key /certs/ssl.key
@rs-ds
rs-ds / .dockerignore
Created July 4, 2020 14:21
Backend Services
.git
.venv
media
upload
node_modules
dist
@rs-ds
rs-ds / Dockerfile
Created July 4, 2020 15:01
SSR Frontend
FROM node:10.16.3-jessie-slim
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build:ssr