Skip to content

Instantly share code, notes, and snippets.

View koshuang's full-sized avatar

Kos Huang koshuang

  • OnrampLab
  • Taipei / Taiwan
View GitHub Profile
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
"eslint.codeActionsOnSave.mode": "problems",
"eslint.validate": ["typescript", "javascript", "javascriptreact", "typescriptreact"],
"[javascript]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
@koshuang
koshuang / alacritty.yml
Created July 22, 2021 02:27
My Color theme for alacritty
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
{
"results": [
{
"_id": "0751e5e663504ca2b82cd297808573b2",
"@version": 3,
"createdBy": "sRP1UZAg91WThqsNsKNWLtc99Se2",
"createdDate": 1626726890173,
"data": {
"blocks": [
{
@koshuang
koshuang / postcssSorting.config
Last active July 3, 2021 04:40 — forked from annabranco/postcssSorting.config
Configurations for PostCSS Sorting plugin
"postcssSorting.config": {
"order": [
"custom-properties",
"dollar-variables",
{
"type" : "at-rule",
"name" : "include",
},
{
"type" : "at-rule",
const _ = require('lodash');
const log = {
describe(str) {
console.log(`describe: ${str}`);
},
it(str) {
console.log(`\t it ${str}`);
},
const _ = require('lodash');
const primary = { colors: ['#123454', '#123223'] };
const info = { colors: ['#EEFF44', '#FF2211'] };
const success = { colors: ['#773388', '#AA3322'] };
const original = [{ primary: primary.colors }, { info: info.colors }, { success: success.colors }];
const expected = {
primary: primary.colors,
const _ = require('lodash');
const log = {
describe(str) {
console.log(`describe: ${str}`);
},
it(str) {
console.log(`\t it ${str}`);
},

用 grep + regularexpression 顯示 laravel config 所有用到的 env

希望把下面的原始內容,取出只有在 env('') 裡面的文字,也就是所有用到的環境變數。

原始內容

 grep "env('" config/*s.php
We couldn’t find that file to show.