ssh -R alias-domain-local:3000:localhost:3000 serveo.net
Abra no browser a url alias-domain-local.serveo.net:3000 veja a mágica!
Ideal pra mostral algum projeto pra alguém sem precisar hospedar
document.designMode = "on"; |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
#Sun Mar 01 13:21:01 BRT 2020 | |
\!/= | |
/configuration/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true | |
/instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true | |
/instance/org.eclipse.core.resources/version=1 | |
/instance/org.eclipse.e4.ui.css.swt.theme/themeid=org.eclipse.e4.ui.css.theme.e4_classic | |
/instance/org.eclipse.e4.ui.workbench.renderers.swt/enableMRU=true | |
/instance/org.eclipse.e4.ui.workbench.renderers.swt/themeEnabled=true | |
/instance/org.eclipse.ui.editors/SQLEditor.resultSet.ratio=529-470 | |
/instance/org.eclipse.ui.editors/overviewRuler_migration=migrated_3.1 |
#!/bin/bash | |
mkdir -p /opt/android/sdk && \ | |
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip -O tools.zip && \ | |
unzip tools.zip -d /opt/android/sdk && \ | |
rm tools.zip | |
# Set environment variable | |
echo #skd android > ~/.zprofile | |
echo export ANDROID_SDK_ROOT=/opt/android/sdk > ~/.zprofile |
#! /bin/bash | |
STOP_CONTAINER_AFTER=600 | |
containers=$(docker container ls -q) | |
for container in $containers; do | |
started_at="$(docker container inspect -f {{.State.StartedAt}} $container)" | |
date_container_run=$(($(date +%s) - $(date --date="${started_at}" +%s))) | |
if [ $date_container_run -gt $STOP_CONTAINER_AFTER ] | |
then | |
docker container stop "$container" | |
echo "STOP container ID $container" |
ssh -R alias-domain-local:3000:localhost:3000 serveo.net
Abra no browser a url alias-domain-local.serveo.net:3000 veja a mágica!
Ideal pra mostral algum projeto pra alguém sem precisar hospedar
#https://twitter.com/GordonDiggs/status/1160901231277215744 | |
alias please='sudo $(fc -ln -1)' | |
~$ bash ./helloworld | |
bash: ./helloworld: permission denied | |
~$ please | |
Hello World! |
#!/bin/bash | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream |
# Add this to you gitconfig | |
# Comment: Start of "Extra Block" | |
# Comment: This is to unlock VSCode as your git diff and git merge tool | |
[merge] | |
tool = vscode | |
[mergetool "vscode"] | |
cmd = code --wait $MERGED | |
[diff] | |
tool = vscode | |
[difftool "vscode"] |
TOKEN=$(kubectl describe secret -n kube-system $(kubectl get secrets -n kube-system | grep default | cut -f1 -d ' ') | grep -E '^token' | cut -f2 -d':' | tr -d '\t' | tr -d " ") |