Skip to content

Instantly share code, notes, and snippets.

@pheisiph
pheisiph / metas.md
Created June 7, 2018 08:36 — forked from tcelestino/metas.md
meta tags

#Meta Tags

<!---favicon-->
<link rel="icon" href="http://www.example.com/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://www.example.com/favicon.ico" type="image/x-icon">

<!--Apple Touch Icon for iPad and iPhone Meta Tag-->
<link rel="apple-touch-icon" href="http://www.example.com/apple-touch-icon.png">
<link rel="apple-touch-icon-precomposed" href="http://www.example.com/apple-touch-icon.png">
@pheisiph
pheisiph / meta-tags.md
Created June 5, 2018 15:42 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@pheisiph
pheisiph / example_activejob.rb
Created May 12, 2016 12:02 — forked from ChuckJHardy/example_activejob.rb
Example ActiveJob with RSpec Tests
class MyJob < ActiveJob::Base
queue_as :urgent
rescue_from(NoResultsError) do
retry_job wait: 5.minutes, queue: :default
end
def perform(*args)
MyService.call(*args)
end
@pheisiph
pheisiph / Ninjablock_to_local_mqtt.sh
Created February 1, 2016 16:29 — forked from svrooij/Ninjablock_to_local_mqtt.sh
Ninjablock to local MQTT server
# This describes how you can connect your ninjablock to your own mqtt server
# It is not the best manual, so please provide feedback
# First of you have to start with the "beta" image found at: https://discuss.ninjablocks.com/t/unstable-brand-new-image-for-your-block/1666
# Or direct link if you must: http://ninjablocks-nightly.s3.amazonaws.com/block/ubuntu_armhf_trusty_sterling_block-unstable_2014-07-16_1044.img.gz
# Then put that on an sdcard (like you normally would)
# Put it in the ninjablock
# Let it boot!!
# power off (upon first boot it creates a ssh key (needed for enabling ssh))
# power on
use Rex -base;
use YAML;
use Data::Dumper;
desc 'read from yaml';
task 'readyaml', sub {
my $yaml_info = YAML::LoadFile('info_in.yml');
say Dumper($yaml_info);
};