Skip to content

Instantly share code, notes, and snippets.

Matyas Albert Nagy albertmatyi

Block or report user

Report or block albertmatyi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@albertmatyi
albertmatyi / README.md
Last active Sep 27, 2018
Bookstack PDF embedding support snippet
View README.md

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.

@albertmatyi
albertmatyi / Readme.md
Last active Nov 1, 2017
Select and listen to a radio station from Digitally Imported with mplayer & dmenu
View Readme.md

twt

Usage

  1. Put this script in your path
  2. Install dmenu & mplayer
  3. Run via $> radio-di.sh
@albertmatyi
albertmatyi / setup.sh
Last active Mar 5, 2017
Set up a manjaro / arch dev box
View setup.sh
#!/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
Created Nov 16, 2016
pingdome - Personal pingdom linux script/service
View README.md

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 )
View dev packages for arch
# 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 / docker-ssh
Last active Jan 10, 2018
Open a bash in local docker instance aka. "ssh into local docker instance"
View docker-ssh
#!/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
@albertmatyi
albertmatyi / meteortemplate.html
Created Jan 24, 2015
meteor-munich-iron-router-template
View meteortemplate.html
<template name="booksTemplate">
<div class=".books">
{{#each books}}
{{title}}
{{/each}}
</div>
</template>
@albertmatyi
albertmatyi / facebook.js
Created Dec 9, 2014
Share on facebook /w App
View facebook.js
// LOAD SDK
window.fbAsyncInit = function() {
FB.init({
appId : 'your-app-id',
xfbml : true,
version : 'v2.2'
});
};
View designer.html
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
You can’t perform that action at this time.