Skip to content

Instantly share code, notes, and snippets.

View djmisha's full-sized avatar
🤖

Misha Osinovskiy djmisha

🤖
View GitHub Profile
@djmisha
djmisha / docker-examples.md
Created July 11, 2020 14:29 — forked from thaJeztah/docker-examples.md
Some docker examples

Commit, clone a container

To 'clone' a container, you'll have to make an image of that container first, you can do so by "committing" the container. Docker will (by default) pause all processes running in the container during commit to preserve data-consistency.

For example;

docker commit --message="Snapshot of my container" my_container my_container_snapshot:yymmdd
/* Attach Video on Homepage*/
function attachVideo() {
var myVideoWrap = document.querySelector('.welcome .home-video');
if(myVideoWrap) {
var theme_path = rm_data.tmplDirUri;
var mobileVideo ='video-mobile.mp4';
var desktopVideo ='video.mp4';
let thevid = "";
@djmisha
djmisha / .htaccess
Created December 22, 2017 15:49 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@djmisha
djmisha / gist:82b52ddfa393e2b3d57335b7aa44ec3c
Created June 30, 2017 18:26
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after