Skip to content

Instantly share code, notes, and snippets.

View dummefil's full-sized avatar
💨

Dima Tonkih dummefil

💨
View GitHub Profile
@dummefil
dummefil / default nginx configuration file
Created October 21, 2019 23:34 — forked from skbr1234/default nginx configuration file
The default nginx configuration file inside /etc/nginx/sites-available/default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@dummefil
dummefil / Postman.desktop
Last active March 22, 2019 00:08 — forked from aviskase/Postman.desktop
Install Postman
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@dummefil
dummefil / bubble-sort.js
Last active February 18, 2019 11:43
bubble-sort
let numbers = [6, 3, 8, 5, 2, 7, 9500, 4, 11, 0, 15, 10, 9, 12, -1, 14, 13, 600, 853, 1];
let originalNumbers = numbers.concat();
console.time('Elapsed time: ');
for (var j = 0; j < numbers.length; j++){
for(var i = 0; i < numbers.length; i++) {
if (numbers[i] > numbers[i+1]) {
let buffer = numbers[i];
numbers[i] = numbers[i+1];