Skip to content

Instantly share code, notes, and snippets.

View mbitelo's full-sized avatar

Mikhael Bitelo mbitelo

  • Hospital Sírio-Libanês
  • Porto Alegre
View GitHub Profile
@stevebauman
stevebauman / OnOneServer.php
Created December 3, 2025 00:06
Laravel Job Middleware OnOneServer
<?php
namespace App\Jobs\Middleware;
use Closure;
use Illuminate\Contracts\Cache\Store;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Date;
use Illuminate\Support\InteractsWithTime;
@niemyjski
niemyjski / mac-arm-brew-setup.md
Last active February 13, 2026 16:40
Arm Mac New Install (Brew)
  • xcode-select --install
  • softwareupdate --all --install --force
  • Brew
    • brew install --cask discord
    • brew install --cask iterm2
    • brew install --cask warp
    • brew install --cask dotnet-sdk
    • brew install --cask microsoft-edge
  • brew install --cask rider
@mamun724682
mamun724682 / main.yml
Created January 16, 2022 03:54
Github action for laravel shared hosting ftp deploy
on: push
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
@danperrout
danperrout / TesouroDireto.gs
Last active January 30, 2026 09:08
API Função TESOURODIRETO Google Sheets
/*
* @return Acessa radaropcoes.com e retorna informações de um título específico do Tesouro Direto
* Endpoint: https://api.radaropcoes.com/bonds/{bondName}
*/
function TESOURODIRETO(bondName, argumento = "r") {
let srcURL = "https://api.radaropcoes.com/bonds/" + encodeURIComponent(bondName);
let response = UrlFetchApp.fetch(srcURL, {
muteHttpExceptions: true
});

Change Apple OS X Dock size from Apple Terminal

defaults write com.apple.dock tilesize -int 32; killall Dock

32 is icon size

@bantya
bantya / php-webscraping.md
Created July 22, 2018 15:23 — forked from anchetaWern/php-webscraping.md
web scraping in php

Have you ever wanted to get a specific data from another website but there's no API available for it? That's where Web Scraping comes in, if the data is not made available by the website we can just scrape it from the website itself.

But before we dive in let us first define what web scraping is. According to Wikipedia:

{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %}

FROM alpine:3.7
RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/community/' >> /etc/apk/repositories
ENV PYTHON_VERSION=2.7.14-r2
ENV PY_PIP_VERSION=9.0.1-r1
ENV SUPERVISOR_VERSION=3.3.1
ENV NGINX_VERSION=1.12.2-r3
RUN mkdir /www && mkdir /www/myapp/
@leocomelli
leocomelli / git.md
Last active March 18, 2026 13:24
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@anchetaWern
anchetaWern / php-webscraping.md
Created August 4, 2013 13:18
web scraping in php

Have you ever wanted to get a specific data from another website but there's no API available for it? That's where Web Scraping comes in, if the data is not made available by the website we can just scrape it from the website itself.

But before we dive in let us first define what web scraping is. According to Wikipedia:

{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %}