Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Coding

Renan Borges renanborgez

:shipit:
Coding
View GitHub Profile
@renanborgez
renanborgez / tasks.json
Created May 29, 2020
tasks.json for c++
View tasks.json
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "clang++ build active file",
"command": "/usr/bin/clang++",
"args": [
"-std=c++17",
"-stdlib=libc++",
View launch.json
{
"name": "Jest via npm",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "debug:vscode"],
"port": 9229
}
@renanborgez
renanborgez / docker-destroy-all.sh
Created Jan 18, 2019 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
View docker-destroy-all.sh
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
View clear-local-branches.txt
## Delete local branches already merged
git fetch --prune && git branch --merged | egrep -v "(^\*|master|develop|main)" | xargs git branch -d
## Delete local branches (with force)
git fetch --prune && git branch | egrep -v "(^\*|master|develop)" | xargs git branch -d -f
You can’t perform that action at this time.