Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Working from home

Rafael Neri rafael-neri

💻
Working from home
View GitHub Profile
@rafael-neri
rafael-neri / linkedin.js
Created Jan 26, 2022 — forked from CViniciusSDias/linkedin.js
Aceitar todos os convites do LinkedIn
View linkedin.js
document
.querySelectorAll('button[aria-label^="Aceitar o convite de"]')
.forEach((btn, i) => setTimeout(() => btn.click(), i + 500));
@rafael-neri
rafael-neri / .github_workflows_schedule.yaml
Created Jan 10, 2022
Schedule 15 minutes from GitHub - Cron
View .github_workflows_schedule.yaml
name: 15-minute-schedule
on:
schedule:
- cron: '*/15 * * * *'
jobs:
cron:
runs-on: ubuntu-latest
steps:
- name: Call your API route
run: |
@rafael-neri
rafael-neri / gitflow-breakdown.md
Created Nov 11, 2021 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.
View gitflow-breakdown.md

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@rafael-neri
rafael-neri / 01-ServeCommand.php
Last active Sep 27, 2021
Add Support to "php artisan serve" in Lumen
View 01-ServeCommand.php
<?php
// File: app/Console/Commands/ServeCommand.php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
class ServeCommand extends Command {
@rafael-neri
rafael-neri / compat_l5.php
Created Sep 26, 2021 — forked from vluzrmos/compat_l5.php
Lumen L5 compatibility helpers. That file should be added on root path of your project... and added to your composer.json
View compat_l5.php
<?php
if(!function_exists('config_path'))
{
/**
* Return the path to config files
* @param null $path
* @return string
*/
function config_path($path=null)
@rafael-neri
rafael-neri / snap-clean.sh
Created Sep 21, 2021
Sanp Clean: Remove disabled (unused) snap packages
View snap-clean.sh
#!/bin/sh
set -eu
snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
sudo snap remove "$snapname" --revision="$revision"
done
@rafael-neri
rafael-neri / ruby_code-workspace.json
Created Sep 7, 2021
Visual Studio Code WorkSpace For Ruby
View ruby_code-workspace.json
{
"folders": [],
"settings": {
// Desabilita a Telemetria
"telemetry.enableTelemetry": false,
"redhat.telemetry.enabled": false,
// Configurações dos arquivos
"files.autoSave": "onFocusChange",
@rafael-neri
rafael-neri / python_code-workspace.json
Created Sep 7, 2021
Visual Studio Code WorkSpace For Python
View python_code-workspace.json
{
"folders": [],
"settings": {
// Desabilita a Telemetria
"telemetry.enableTelemetry": false,
"redhat.telemetry.enabled": false,
// Configurações dos arquivos
"files.autoSave": "onFocusChange",
@rafael-neri
rafael-neri / javascript_code-workspace.json
Created Sep 7, 2021
Visual Studio Code WorkSpace For Javascript
View javascript_code-workspace.json
{
"folders": [],
"settings": {
// Desabilita a Telemetria
"telemetry.enableTelemetry": false,
"redhat.telemetry.enabled": false,
// Configurações dos arquivos
"files.autoSave": "onFocusChange",
@rafael-neri
rafael-neri / typescript_code-workspace.json
Created Sep 7, 2021
Visual Studio Code Workspace For Typescript
View typescript_code-workspace.json
{
"folders": [],
"settings": {
// Desabilita a Telemetria
"telemetry.enableTelemetry": false,
"redhat.telemetry.enabled": false,
// Configurações dos arquivos
"files.autoSave": "onFocusChange",