Skip to content

Instantly share code, notes, and snippets.

View artttj's full-sized avatar

Artyom Yagovdik artttj

View GitHub Profile
@artttj
artttj / magento.conf
Last active October 4, 2016 05:46
Magento NGINX Server Config
server {
listen 80 default_server;
listen [::]:80 default_server;
root /home/me/domains/example;
index index.html index.php;
server_name example.dev;
##
# redirect to www
@artttj
artttj / youtube_cur_time.js
Last active August 14, 2016 07:39
Tampermonkey script for youtube, that appends current time to the URL
'use strict';
var checkCurrentTime = setInterval(function(){
var $player = document.querySelector('#movie_player');
if($player && $player.getCurrentTime()) {
document.location.hash = 'start=' + $player.getCurrentTime();
}// + ';end=20:22;cycles=-1;autoreplay=false
}, 5000);