Skip to content

Instantly share code, notes, and snippets.

View mmansion's full-sized avatar
🐢
turtle power

Mikhail Mansion mmansion

🐢
turtle power
View GitHub Profile
@mmansion
mmansion / gist:f90ebfe3c449abc27841c82b749137bd
Created August 12, 2021 15:55
Target dual 4k monitors with multiple chromium instances, running in kiosk mode on Raspberry Pi v4
DISPLAY=:0 /usr/bin/chromium-browser \
--user-data-dir=/tmp/browser-2 \
--new-window \
--window-position=3840,0 \
--disk-cache-dir=/dev/null \
--incognito \
--disable-infobars \
--noerrdialogs \
--kiosk \
http://localhost:8012/screen-2 &
@mmansion
mmansion / .htaccess
Created November 5, 2018 16:32
.htaccess redirect for https (ssl certificate)
#handles both HTTP and www canonical redirects
# change the "302" to "301" only after you are sure it's working
RewriteEngine On
RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,NE]
@mmansion
mmansion / RESTART_APP.BAT
Last active November 3, 2018 23:13
Restart OF App on Crash
:: place in bin/data dir
taskkill /f /IM /myAppName.exe
timeout /t 3
start %~dp0\..\myAppName.exe
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body {
display: flex;
flex-wrap: wrap;
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
#output {
@mmansion
mmansion / README-Template.md
Created January 17, 2018 15:39 — 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

@mmansion
mmansion / ios_webclip.html
Created December 8, 2017 21:59 — forked from cgkio/ios_webclip.html
HTML/meta setting for an iOS web clip
<!-- Hiding Safari User Interface Components -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- to set the viewport width to the width of the device, add this to your HTML file: -->
<meta name="viewport" content="width=device-width">
<!-- to set the initial scale to 1.0, add this to your HTML file: -->
<meta name="viewport" content="initial-scale=1.0">
<!-- to set the initial scale and to turn off user scaling, add this to your HTML file: -->
@mmansion
mmansion / index.html
Created August 11, 2017 22:45
State Machine Example // source https://jsbin.com/bavuta
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>State Machine Example</title>
<style id="jsbin-css">
#status {
font-size: 32px;
height: 100px;
void ofApp::update()
{
// snippet start
std::stringstream strm;
strm << "fps: " << ofGetFrameRate();
ofSetWindowTitle(strm.str());
// snippet end
}
@mmansion
mmansion / evernote_search_example.applescript
Created April 23, 2017 15:35
Evernote - Searching Notebooks & Notes
(*
[APPLESCRIPT FOR EVERNOTE]
EXAMPLE FOR SEARCHING FOR NOTEBOOKS & NOTES
* by mmansion
* last updated 2017.04.23
*)
----------------------------------------