Skip to content

Instantly share code, notes, and snippets.

View ryck's full-sized avatar

Ricardo Gonzalez ryck

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryck
ryck / config.gateway.json
Created January 7, 2021 16:26
USG + Sky
{
"interfaces": {
"ethernet": {
"eth0": {
"address": ["dhcp"],
"dhcp-options": {
"client-option": [
"retry 60;",
"send dhcp-client-identifier "bacons";"
],
@ryck
ryck / compliments.json
Last active December 12, 2023 21:33
MagicMirror compliments file
{
"anytime" : [
"Hey there sexy!",
"I hope your day is as nice as your face!",
"Have you been working out?",
"I'm lucky to be your mirror!",
"The Force is strong with you",
"If I could high five you... I would!",
"On a scale from 1 to 10, you're an 15!",
"Being awesome is hard, but you'll manage",
{
"anytime" : [
"Chimi, Chimi, Chimichanga!",
"Cuidado con el escalón, Manolo!",
"Nobody puts Baby in a corner"
"Hey there sexy!",
"I hope your day is as nice as your face!",
"Have you been working out?",
"I'm lucky to be your mirror!",
"The Force is strong with you",
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*/
var config = {
port: 8585,
// address: "192.168.1.100",
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.
### Keybase proof
I hereby claim:
* I am ryck on github.
* I am ryck (https://keybase.io/ryck) on keybase.
* I have a public key whose fingerprint is 4F82 0AEC 223F 137B 2767 785F 2626 A5F4 408D D872
To claim this, I am signing this object:
<!-- Standard <ul> with class of "tabs" -->
<ul class="tabs">
<!-- Give href an ID value of corresponding "tabs-content" <li>'s -->
<li><a class="active" href="#123">#123</a></li>
<li><a href="#abc">abc</a></li>
<li><a href="#def">def</a></li>
</ul>
<!-- Standard <ul> with class of "tabs-content" -->
<div class="tabs-content">
@ryck
ryck / getElementByRel.js
Created April 21, 2011 12:53
Get tag by rel attribute
function getElementByRel(rel) {
aElements = document.getElementsByTagName("link");
relElems = [];
for (i = 0; i < aElements.length; i++) {
if (aElements[i].hasAttribute("rel") && aElements[i].rel == rel) {
return aElements[i];
}
}
}