Skip to content

Instantly share code, notes, and snippets.

View uxter's full-sized avatar
👨‍💻
coding

Vasiliy Shilov uxter

👨‍💻
coding
View GitHub Profile
@uxter
uxter / Remove-All-Docker-Containers-And-Images.md
Last active October 6, 2018 21:55
Remove all Docker Containers and Images
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -f status=exited -f status=created -q)
docker rmi $(docker images -a -q)
@uxter
uxter / build.sh
Created August 28, 2017 14:32
Mini CI
#!/bin/bash
URL="http://127.0.0.1:23813"
SRC="sources"
DST="sources.zip"
# OPTS: SRC DST
OPTS="-r $DST $SRC"
@uxter
uxter / what-forces-layout.md
Created July 20, 2017 05:28 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
@uxter
uxter / README-Template.md
Created July 17, 2017 19:10 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@uxter
uxter / *.sh
Created April 11, 2017 07:40
How to find which program is using port
netstat -nlp | grep :80
@uxter
uxter / injected.js
Created April 5, 2017 13:15
How to inject custom JavaScript in web page? (simple google chrome plugin)
// Your code
@uxter
uxter / nodemon-watch-java-example.md
Last active September 24, 2022 11:49
nodemon watch and run java application
nodemon -e java —watch ./src —exec 'javac -sourcepath ./src -d ./bin \
src/path/to/code/ServerExample.java; \
java -classpath ./bin path.to.code.ServerExample'