dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
''' | |
Move or copy files from subdirectories of specified directories into them or into current directory | |
and optionally remove the empty subdirectories (in case of moving). | |
TODO: add exception handling. | |
''' | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias nvim='print -Pn "\e]0;${PWD##*/}-vim\a";nvim' | |
alias vl='vtex link' | |
alias vls='vtex ls' | |
alias vs='vtex switch' | |
alias vua='vtex unlink --all' | |
alias vwr='vtex workspace reset' | |
oni() | |
{ | |
/Applications/Onivim2.app/Contents/MacOS/Oni2_editor $1 & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TOOLBELT_CFG_FILE="$HOME/.config/configstore/vtex.json" | |
parse_vtex_json() { | |
cat "$TOOLBELT_CFG_FILE" | grep $1 | sed -n "s/^.*\"$1\": \"\(.*\)\".*$/\1/p" | |
} | |
get_vtex_account() { | |
parse_vtex_json "account" | |
} | |
ACCOUNT=`parse_vtex_json "account"` | |
WORKSPACE=`parse_vtex_json "workspace"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TOOLBELT_CFG_FILE="$HOME/.config/configstore/vtex.json" | |
parse_vtex_json() { | |
cat "$TOOLBELT_CFG_FILE" | grep $1 | sed -n "s/^.*\"$1\": \"\(.*\)\".*$/\1/p" | |
} | |
get_vtex_account() { | |
parse_vtex_json "account" | |
} | |
ACCOUNT=`parse_vtex_json "account"` | |
WORKSPACE=`parse_vtex_json "workspace"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
ExternalClient, | |
InstanceOptions, | |
IOContext, | |
} from '@vtex/api' | |
import { | |
ReposGetResponse, | |
UsersGetByUsernameResponse, | |
GitCreateTagParams, |
- We have a couple challenges of our own, like ProfileChallenge, but this recipes shows how to create a custom one that you can use anywhere in your store.
{
"b2b-challenge": {
"component": "Challenge",
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pass the env-vars to MYCOMMAND | |
eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
# … or ... | |
# Export the vars in .env into your shell: | |
export $(egrep -v '^#' .env | xargs) |
Complete Guide / Isseus / Common Problems: https://github.com/Homebrew/homebrew-php
# Install PHP with PHP-FPM and excluding snmp
brew install -v homebrew/php/php56 --with-fpm --without-snmp
NewerOlder