This file contains hidden or 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
#!/bin/bash | |
if [[ $# -eq 0 ]] ; then | |
echo 'you need to specify a service' | |
exit 0 | |
fi | |
pid=`ps aux | grep microservices | grep $1 | awk '{print $2}'` | |
if [ -z "$pid" ] |
This file contains hidden or 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
docker stop mongo-local | |
docker run --name mongo-local --rm -v $(pwd)/data:/data/db -p 27017:27017 -d mongo:4.0 |
This file contains hidden or 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
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
printf "Checkout updated develop branch for all repos...\n\n" | |
# Find all git repositories and update it to the develop latest revision | |
for i in $(find . -name ".git" | cut -c 3-); do |
This file contains hidden or 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
find . -type f -name '*.jpg' -print0 | xargs -0 -I{} -P4 guetzli --quality 84 {} {}_optim.jpg |
This file contains hidden or 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
#!/bin/bash | |
# https://github.com/rvoicilas/inotify-tools/wiki needed! | |
while inotifywait -r -e modify,create,delete /home/user/Development/; do | |
rsync -rltvze "ssh" -O -J --exclude '.git*' --exclude '*.pdf' --exclude '*.zip' /home/user/Development/* user@server:/var/www/ | |
done |
This file contains hidden or 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 apt-get -y install libvirt-dev qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils | |
vagrant plugin install vagrant-libvirt | |
vagrant plugin install vagrant-share | |
sudo addgroup libvirtd | |
sudo usermod -a -G libvirtd $user | |
sudo apt install nfs-kernel-server | |
sudo reboot | |
vagrant up --provider=libvirt |
This file contains hidden or 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
"Fix nvim slowliness | |
set cursorline! | |
set lazyredraw | |
set noshowcmd | |
set noruler |
This file contains hidden or 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
<div> | |
<a href="#"> | |
<picture> | |
<source | |
media="(max-width: 768px)" | |
srcset="mobile.jpg 1x, [email protected] 2x"> | |
<source | |
media="(max-width: 991px)" | |
srcset="tablet.jpg 1x, [email protected] 2x"> | |
<img |
This file contains hidden or 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
var autoprefixer = require('gulp-autoprefixer'); | |
var cache = require('gulp-cached'); | |
var cleanCSS = require('gulp-clean-css'); | |
var concat = require('gulp-concat'); | |
var eslint = require('gulp-eslint'); | |
var gulp = require('gulp'); | |
var notify = require("gulp-notify"); | |
var plumber = require('gulp-plumber'); | |
var remember = require('gulp-remember'); | |
var sass = require('gulp-sass'); |
This file contains hidden or 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
alsa_out -j "Xmod" -d hw:Xmod -q 1 2>&1 1> /dev/null & |