Skip to content

Instantly share code, notes, and snippets.

View mozarcik's full-sized avatar

Michał Motyczko mozarcik

View GitHub Profile
@mozarcik
mozarcik / gist:495b741ae9224093ea7575adc1da51b7
Created December 14, 2020 08:33
cat /usr/lib/systemd/system/syncthing@.service
[Unit]
Description=Syncthing - Open Source Continuous File Synchronization for %I
Documentation=man:syncthing(1)
After=network.target
[Service]
User=%i
ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0
Restart=on-failure
RestartSec=5
/*jslint unparam: true, browser: true, devel: true */
/*global define*/
define(function () {
'use strict';
var module = {},
noop = function () { },
console = window.console || { log: noop },
supportsFileApi;
@mozarcik
mozarcik / designer.html
Created January 24, 2015 12:41
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 40%;
@mozarcik
mozarcik / mydialer_strings.xml
Last active December 31, 2015 16:09
Strings file for mydialer
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="language">English</string>
<string name="action_add_contact">Create contact</string>
<string name="loading">Loading…</string>
<string name="no_contacts">No contacts found</string>
<string name="menuitem_refresh">Refresh</string>
<string name="call_history">Call history</string>
<string name="today">Today</string>
/*
* Copyright 2012 Roman Nurik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software