Skip to content

Instantly share code, notes, and snippets.

View cadavre's full-sized avatar

Seweryn Zeman cadavre

View GitHub Profile
@cadavre
cadavre / garage.yml
Created April 23, 2021 20:05
Garage parking sensor for ESP32
esphome:
name: garage_hub
platform: ESP32
board: nodemcu-32s
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
mqtt:
2014-11-17 11:49:12,286 ERROR [celery.worker.job:278][MainThread] Task videobombing.app.workers.compose_movie_worker[401aca55-d71b-4022-98c$
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/celery-3.1.16-py2.7.egg/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/celery-3.1.16-py2.7.egg/celery/app/trace.py", line 437, in __protected_call__
return self.run(*args, **kwargs)
File "/home/ubuntu/videobombing/videobombing/app/workers.py", line 88, in compose_movie_worker
compose_movie(config_data, result_movie_path, movie_id)
File "/home/ubuntu/videobombing/videobombing/app/workers.py", line 154, in compose_movie
composer.compose(movie_path)
{
"categories": {
"marvel": {
"name": "Marvel Comics",
"description": "Some longer text",
"paid": 1,
"files": ["spiderman.gif", "hulk.gif"]
},
"pets": {
"name": "Cute pets",
{
"push_id": '{{objectId()}}',
"gifs": [
'{{repeat(1, 5)}}',
{
"id": '{{objectId()}}',
"scale": '{{floating(0, 1, 2)}}',
"rotation": '{{integer(0,360)}}',
"position": {
"x": '{{floating(0, 1, 2)}}',
{
"push_id": "542c241cf43e44c67c330fc3",
"gifs": [
{
"id": "542c241c7425582efdb97b9e",
"scale": 0.29,
"rotation": 360,
"position": {
"x": 0.85,
"y": 0.67
@cadavre
cadavre / fixperms.sh
Created February 11, 2014 14:57
Sf2-fix-perms.sh
sudo rm -rf app/cache/*
sudo chmod 777 -Rf app/cache/*
sudo chmod 777 -Rf app/logs/*
sudo setfacl -R -m u:www-data:rwX -m u:`whoami`:rwX app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
app/console cache:clear --no-warmup
@cadavre
cadavre / workspaces
Created July 11, 2013 14:15
GNOME switch workspaces only on first (primary) screen/monitor
gsettings set org.gnome.shell.overrides workspaces-only-on-primary true
@cadavre
cadavre / MapActivity.java
Created July 10, 2013 11:06
Basic Activity initialization on Google Android Maps API v2 with MapView
package com.example;
import com.google.android.gms.common.GooglePlayServicesNotAvailableException;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapView;
import com.google.android.gms.maps.MapsInitializer;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
public class MainActivity {