Skip to content

Instantly share code, notes, and snippets.

@radmar
radmar / README.md
Created November 25, 2023 11:55 — forked from fjctp/README.md
RPi Zero W kiosk

Summary

Setup RPi Zero W as a kiosk

Step

  1. write Raspbian Lite image to a SD card
  2. enable ssh
touch /boot/ssh
  1. setup WiFi

Password rehash on authentication if auto encoder settings changed & legacy password hashes migration

config/services.yaml

parameters:
  # Tweak these two values according to server hardware. It is recommended that server response doesn't take more than
  # 1 second during "normal" login.
  # Feel free to ignore the 1 second limit for important passwords (e.g. admin account), you would then have to create a
  # dedicated encoder for admin users, with higher values for these two settings.
  # See https://symfony.com/doc/current/security/named_encoders.html
@radmar
radmar / calendar.twig
Created April 1, 2020 10:19 — forked from aknosis/calendar.twig
Table based calendar only using Twig
{#
time can be any string acceptable by http://www.php.net/strtotime, the
template will output that time's month.
If you don't want to pass in a date you can set time like this:
{% set time = "now"|date("U") %}
{% set time = "December 2012"|date("U") %}
How ever you want to output items onto the calendar is a different issue,
but I'd assume pushing everything into an array numerically indexed by that day:
@radmar
radmar / gist:1f3cfc81759549a48fae985ed1e4e3f1
Created February 3, 2020 13:24 — forked from discordier/gist:ed4b9cba14652e7212f5
options for phpStorm @noinspection annotation
javascript
ES6ValidationInspection
JSAccessibilityCheckInspection
JSBitwiseOperatorUsageInspection
JSCheckFunctionSignaturesInspection
JSClosureCompilerSyntaxInspection
JSCommentMatchesSignatureInspection
JSComparisonWithNaNInspection
JSConsecutiveCommasInArrayLiteralInspection
@radmar
radmar / build.xml
Created January 5, 2016 13:18 — forked from hectorsanjuan/build.xml
Phing build.xml for Symfony2 projects
<?xml version="1.0" encoding="UTF-8"?>
<project name="${projectName}" basedir="." default="build:main">
<!-- Properties -->
<property name="dir.app" value="${project.basedir}/app" />
<property name="dir.src" value="${project.basedir}/src" />
<property name="dir.build" value="${project.basedir}/app/build" />
<property name="dir.docs" value="${dir.build}/docs" />
<property name="dir.docs.phpdoc" value="${dir.docs}/phpdoc" />
<property name="dir.docs.docblox" value="${dir.docs}/docblox" />
<property name="dir.reports" value="${dir.build}/logs" />
@radmar
radmar / dabblet.css
Created December 1, 2012 17:58
Checkbox alternative UI
/**
* Checkbox alternative UI
*/
.switch-toggle {
display: none;
visibility: hidden;
}
.switch-content {