Skip to content

Instantly share code, notes, and snippets.

View XiovV's full-sized avatar
🐢

Damir H. XiovV

🐢
View GitHub Profile
@XiovV
XiovV / multi_stage_go.md
Last active September 21, 2023 12:30
Multi stage Dockerfile for a Go application
---
version: "2"
services:
bookstack:
image: linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- DB_HOST=bookstack_db
@XiovV
XiovV / install_docker.sh
Last active March 2, 2021 11:17
Docker and docker-compose installation script
#!/bin/bash
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@XiovV
XiovV / init.vim
Created November 28, 2019 20:04
init.vim
set relativenumber
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set laststatus=2
inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
@XiovV
XiovV / gist:7a6896c830910f0ebf3dadc7b7a6d8b0
Last active May 16, 2018 19:07
NodeJS basic express app
const express = require('express');
const app = express();
const port = 4000;
app.get('/', (req, res) => {
res.send('INDEX');
});
// ==UserScript==
// @name Block AdBlock Popup
// @namespace XiovV
// @version 1.0
// @description Block AdBlock restriction popups on some websites
// @author XiovV
// @match https://www.technotification.com/*
// @grant GM_addStyle
// @require https://code.jquery.com/jquery-3.2.1.js
// ==/UserScript==
// ==UserScript==
// @name devRant dark theme
// @namespace XiovV
// @version 1.0
// @description Make devRant run in dark theme
// @author https://www.devrant.io/users/XiovV
// @match www.devrant.io/*
// @grant GM_addStyle
// ==/UserScript==