Skip to content

Instantly share code, notes, and snippets.

View yasuflatland-lf's full-sized avatar
🛹
Skating

Yasuyuki Takeo yasuflatland-lf

🛹
Skating
View GitHub Profile
[#assign black_list = ["class", "request", "getreader", "getinputstream", "writer"] /]
[#macro dump key data]
[#if data?is_enumerable]
enumerable:<b>${key}</b>
[@printList data,[] /]
[#elseif data?is_hash_ex]
hash_ex:<b>${key}</b>
[@printHashEx data,[] /]
[#else]
@yasuflatland-lf
yasuflatland-lf / Web Content Structure
Created May 21, 2021 01:04 — forked from gabriel-lee/Web Content Structure
Custom templates for Search Results cards
{
"availableLanguageIds": [
"en_US"
],
"defaultLanguageId": "en_US",
"fields": [
{
"label": {
"en_US": "Title"
},
@yasuflatland-lf
yasuflatland-lf / firebase-admin-multi-apps-init-ES6.md
Created May 8, 2021 21:09 — forked from jofftiquez/firebase-admin-multi-apps-init-ES6.md
Firebase admin - how to initialise multiple applications in ES6 nodejs.

Firebase Admin Multi App Initialization - ES6

This is a snippet that uses firebase's firebase-admin to initialize multiple firebase projects in one admin application.

ES5 version

Using ES6

import 'firebase';
@yasuflatland-lf
yasuflatland-lf / 0-vscode-extensions-backup.md
Last active July 31, 2024 07:05 — forked from illvart/0-vscode-extensions-backup.md
VSCode - Visual Studio Code extensions backup

VSCode - Visual Studio Code extensions backup

If you are use Unix/Linux create a bash script with a loop. In this case I want to backup the extensions list and install again:

First create a list of the extensions:

$ code --list-extensions > extensions.txt

Create a bash script for example with the name vscode-extension-install.sh and input the following code:

@yasuflatland-lf
yasuflatland-lf / 1_kubernetes_on_macOS.md
Created June 14, 2020 21:36 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

<#-- dump.ftl
--
-- Generates tree representations of data model items.
--
-- Usage:
-- <#import "dump.ftl" as dumper>
--
-- <#assign foo = something.in["your"].data[0].model />
--
-- <@dumper.dump foo />