Skip to content

Instantly share code, notes, and snippets.

View wilcorrea's full-sized avatar
🚀
// TODO: be life good

William Correa wilcorrea

🚀
// TODO: be life good
View GitHub Profile
@timotgl
timotgl / uninstall-logitech-ghub.sh
Created April 4, 2022 12:15
How to fully uninstall Logitech G HUB on macOS via terminal/command line
# How to fully uninstall Logitech G HUB on macOS via terminal/command line
# Tested on macOS version 12.3.1 (21E258) Monterey in April 2022
# with Logitech G HUB version 2022.3.242300 (released on 2022-03-22) installed.
# 1. Make sure "Logitech G HUB" itself is not running. If it is, quit it.
# 2. Open "Activity Monitor" and force-quit all processes named "lghub*".
# 3. Delete system-wide files
sudo rm -rf /Applications/lghub.app
@freb97
freb97 / install.sh
Created November 19, 2021 16:13
Install sonar-scanner-cli on Docker Alpine Linux
#!/bin/sh
# Set bash behaviour
set -eux
# Configure sonar version
SONAR_SCANNER_VERSION=4.6.2.2472
# Install dependencies
apk add --no-cache \
#!/bin/bash
# usage:
# checker "https://myapp.com"
counter=0
while true
do
counter=$((counter + 1))
status=$(curl -o /dev/null -s -w "%{http_code}\n" ${1})
version: '3'
# Networks
networks:
# Internal network
internal:
driver: bridge
# Volumes
volumes:
@iguit0
iguit0 / startup.sh
Last active March 9, 2025 00:45
My scripts for APT distros
sudo apt-get update
echo 'installing curl'
sudo apt install curl -y
echo 'installing git'
sudo apt install git -y
echo "What name do you want to use in GIT user.name?"
read git_config_user_name
@GusAntoniassi
GusAntoniassi / README.md
Last active March 21, 2025 10:08
Configure autocompletion to kubectl with zsh

kubectl with ZSH (oh-my-zsh)

How to configure

Use the following commands to add the kubectl autocomplete to zsh:

mkdir -p ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/
kubectl completion zsh > ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/kubectl-autocomplete.plugin.zsh
@mkeneqa
mkeneqa / launch_phpstorm_from_terminal.md
Last active March 31, 2025 17:25
Launch PHP Strom from Terminal (Mac OS)

Create Script

nano launch_phpstorm.sh


#!/bin/sh

open -na "Phpstorm.app" --args "$@"
@sistematico
sistematico / callback.php
Last active November 6, 2019 19:19
XMLHttpRequest Examples
<?php
$array = array(
array('texto'=>'Olá ' . $_POST['nome'] . '!'),
array('texto'=>'Bem-vindo(a) ' . $_POST['nome']),
array('texto'=>'Tudo bem ' . $_POST['nome'])
);
echo json_encode($array);
@vinicius73
vinicius73 / Dockerfile
Last active August 15, 2019 22:21
Node project with PM2 and Docker
FROM node:10.15-alpine as base
RUN apk --no-cache --virtual build-dependencies add \
python \
make \
g++ \
&& rm -f /var/cache/apk/* \
&& npm config set unsafe-perm true \
&& npm install --quiet node-gyp -g --cache /tmp/empty-cache