Skip to content

Instantly share code, notes, and snippets.

View dael's full-sized avatar
🏄‍♂️
surfit.io

Dael dael

🏄‍♂️
surfit.io
View GitHub Profile
@lesstif
lesstif / validation_biz_number.php
Last active May 20, 2022 09:56
사업자 등록 번호 검증 php code
<?php
/**
* 사업자 번호 유효성 검증
*
* @param string $bizNumberParam 검증할 사업자 번호
*
* @return bool
*
* @see https://www.lesstif.com/pages/viewpage.action?pageId=93126973 사업자 번호 검증 규칙

LCHF

저탄수화물 고지방 식이요법 - 저탄고지

세줄요약

  1. 탄단지 비율은 1:2:7 (1500kcal 기준, 37g:73g:113g)
  2. 배가 고플때 배부르게 먹는다.
  3. 좋은 지방을 챙겨먹는다.
@tatums
tatums / README.md
Last active July 11, 2018 08:16 — forked from brandt/README.md
Creates a loopback alias with IP 10.254.254.254 at startup on Mac OS X

Loopback Alias

Creates an alias on the loopback interface (lo0) with the IP 10.254.254.254 on Mac OS X.

Installation

  1. Install the plist to: /Library/LaunchDaemons/com.runlevel1.lo0.10.254.254.254.plist
  2. Set mode: chmod 0644 /Library/LaunchDaemons/com.runlevel1.lo0.10.254.254.254.plist
  3. Set owner: sudo chown root:wheel /Library/LaunchDaemons/com.runlevel1.lo0.10.254.254.254.plist
  4. Load: sudo launchctl load /Library/LaunchDaemons/com.runlevel1.lo0.10.254.254.254.plist
@domwrap
domwrap / Google Music All Access Family Plan for G-Suite GMail Vanity Domains.md
Last active August 24, 2023 02:26
Google Music All Access Family Plan for G-Suite / GMail Vanity Domains

Google Music All Access Family Plan for G-Suite / GMail Vanity Domains

Synopsis

I had wondered about this some weeks ago before finally trying it out today. I'm surprised nobody else had tried already. I was successful enough to be satisfied for my own uses. YMMV.

Result is I have a new Play Music account with Family Sharing which I can share with my G-Suite users, with all my playlists* moved over, and without anyone needing to maintain a separate email account.

This whole process took me about an hour, including moving across 15 playlists, but not including MX record propagation.

@smeijer
smeijer / parse-es6-template.js
Last active March 13, 2024 07:53
ES6 template string parser
function get(path, obj, fb = `$\{${path}}`) {
return path.split('.').reduce((res, key) => res[key] || fb, obj);
}
function parseTpl(template, map, fallback) {
return template.replace(/\$\{.+?}/g, (match) => {
const path = match.substr(2, match.length - 3).trim();
return get(path, map, fallback);
});
}
@koreapyj
koreapyj / README.md
Last active January 20, 2021 09:44
파파존스 쿠폰 코드 확인 (JSON)

파파존스 쿠폰 코드 확인 (JSON)

http://www.pji.co.kr/get.do?ex=Coupon&ac=selectCoupon&szDiscountCode=<쿠폰 코드>

ex) http://www.pji.co.kr/get.do?ex=Coupon&ac=selectCoupon&szDiscountCode=JY25

[{"szdiscountnamelocal":"(JY25) 배달 주문 시 피자(L이상) 30% 할인","szdiscountcode":"JY25","szdecode":"30","szfreeproduct":"","ndiscountid":"4266","szvalidatedate":"1"}]

@greyfairer
greyfairer / Vagrantfile
Last active October 11, 2016 22:17 — forked from aweijnitz/Vagrantfile
This is a Vagrant file and a provisioning script to create a Debian-based Jenkins server, including Java, Ant and Tomcat. Also see "provision.sh" below
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
# Named boxes, like this one, don't need a URL, since the are looked up
@eeertekin
eeertekin / backend-architectures.md
Last active September 23, 2019 09:21 — forked from ngocphamm/backend-architectures.md
Backend Architectures
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 3, 2024 18:53
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@appkr
appkr / .bowerrc
Last active April 5, 2016 06:59
Laravel 5 Front-end Scaffolding
{
"analytics": false,
"directory": "resources/assets/vendor"
}