Skip to content

Instantly share code, notes, and snippets.

@albertmatyi
albertmatyi / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@albertmatyi
albertmatyi / facebook.js
Created December 9, 2014 13:40
Share on facebook /w App
// LOAD SDK
window.fbAsyncInit = function() {
FB.init({
appId : 'your-app-id',
xfbml : true,
version : 'v2.2'
});
};
@albertmatyi
albertmatyi / meteortemplate.html
Created January 24, 2015 12:35
meteor-munich-iron-router-template
<template name="booksTemplate">
<div class=".books">
{{#each books}}
{{title}}
{{/each}}
</div>
</template>
@albertmatyi
albertmatyi / docker-ssh
Last active January 10, 2018 14:05
Open a bash in local docker instance aka. "ssh into local docker instance"
#!/bin/bash -xe
# docker id might be given as a parameter
DID=$1
if [[ "$DID" == "" ]]; then
# if no id given simply just connect to the first running instance
DID=$(docker ps | grep -Eo "^[0-9a-z]{8,}\b")
fi
# command line stuff
bash-complete-more-git
bash-git-prompt
# dev tools
## build tool
apache-ant
## SCM (source code management)
git
## the name says it all
@albertmatyi
albertmatyi / README.md
Created November 16, 2016 18:13
pingdome - Personal pingdom linux script/service

Pingdome

It is a simple script that checks if a website is up. If it's down, it notifies you via notify-send (linux UI notification system)

Prerequisites

  • curl
  • notify-send (Ubuntu: sudo apt-get install notify-osd | Arch pacman -S libnotify )
@albertmatyi
albertmatyi / setup.sh
Last active March 5, 2017 20:53
Set up a manjaro / arch dev box
#!/bin/bash -x
# remove sudo require password
sudo vim /etc/sudoers
#manjaro-only sudo vim /etc/sudoers.d/10-installer
# adjust mirrorlist & update system
#manjaro-only sudo pacman-mirrors -i
sudo pacman -Syu --noconfirm
@albertmatyi
albertmatyi / Readme.md
Last active November 1, 2017 11:29
Select and listen to a radio station from Digitally Imported with mplayer & dmenu

twt

Usage

  1. Put this script in your path
  2. Install dmenu & mplayer
  3. Run via $> radio-di.sh
@albertmatyi
albertmatyi / README.md
Last active July 16, 2023 20:49
Bookstack PDF embedding support snippet

Bookstack PDF Embed plugin

Setup

On /settings page Custom HTML head content add paste in the script/style above

Usage

The setup will result in a PDF button in the toolbar whenever you open the editor.