lsof -i TCP:8080 | awk 'NR > 1 {print $2}' | xargs kill -9
function killport() {
echo "Killing processes on port $1"
lsof -i TCP:$1 | awk 'NR > 1 {print $2}' | xargs kill -9
}
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Vanilla Boilerplate / threejs + gsap</title> | |
<style> | |
html, | |
body { |
#!/bin/sh | |
# run docker version instead of local installation | |
alias ffmpeg='docker run -v=`pwd`:/tmp/ffmpeg opencoconut/ffmpeg' | |
palette="palette.png" | |
# adjust fps here if you need to | |
filters="fps=10,scale=$1:-1:flags=lanczos" |
docker run --runtime=nvidia -it --rm tensorflow/tensorflow:latest-gpu-py3 nvidia-smi |
const http = require('http') | |
const options = { | |
hostname: 'localhost', | |
port: 3000, | |
path: '/path', | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/json' | |
} | |
} |
Using npm-check-updates | |
https://github.com/tjunnone/npm-check-updates | |
`npm install -g npm-check-updates` | |
`ncu -u` |
docker rmi $(docker images --quiet --filter "dangling=true") |
version: '3' | |
services: | |
traefik: | |
image: marciopuga/traefik:latest | |
build: ./traefik/. | |
command: --web --docker --docker.domain=docker.localhost --docker.watch \ | |
--logLevel=DEBUG \ | |
--docker.exposedbydefault=false \ | |
--entryPoints='Name:http Address::80' \ | |
--defaultEntryPoints='http' |
##git mergetool
In the middle file (future merged file), you can navigate between conflicts with ]c
and [c
.
Choose which version you want to keep with :diffget //2
or :diffget //3
(the //2
and //3
are unique identifiers for the target/master copy and the merge/branch copy file names).
:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)