Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Rogerio Prado de Jesus rogeriopradoj

😀
View GitHub Profile
@rogeriopradoj
rogeriopradoj / jupyter_cell_notify.py
Last active Sep 30, 2020 — forked from tamsanh/jupyter_cell_notify.py
Generate and play a sound in Jupyter Notebook when then cell is run. Useful as notification when a long-running cell is done.
View jupyter_cell_notify.py
from IPython.lib.display import Audio
import numpy as np
framerate = 4410
play_time_seconds = 3
t = np.linspace(0, play_time_seconds, framerate*play_time_seconds)
audio_data = np.sin(2*np.pi*300*t) + np.sin(2*np.pi*240*t)
Audio(audio_data, rate=framerate, autoplay=True)
View README.md
Microsoft office and Chrome not working on catalina patcher (Solution) (self.CatalinaPatcher)

submitted 4 months ago by jareza

Hi! mandatory introduction:

I have a mid 2009 Macbook Pro that has Catalina Installed using Dos dude patcher. Works Great

However trying to open Google Chrome gave me an error. That same error was given when trying to open microsoft office.
@rogeriopradoj
rogeriopradoj / PERSONAL.XLSB.bas
Last active Aug 14, 2020
PERSONAL.XLSB - EXCEL - ALT+F11 - VBAProject
View PERSONAL.XLSB.bas
Sub AutoFiltro()
'
' AutoFiltro Macro
'
' Atalho do teclado: Ctrl+Shift+F
'
Selection.AutoFilter
End Sub
View AlunoMapping.php
<?php
namespace Alura\Doctrine\Mapping;
use Alura\Doctrine\Entity\Aluno;
use Alura\Doctrine\Entity\Curso;
use Alura\Doctrine\Entity\Telefone;
use Alura\Doctrine\Repository\AlunoRepository;
use LaravelDoctrine\Fluent\EntityMapping;
use LaravelDoctrine\Fluent\Fluent;
@rogeriopradoj
rogeriopradoj / Brewfile
Last active Jul 21, 2020
https://openfolder.sh/macos-migrations-with-brewfile - Como atualizar Mac e trazer todas as configurações - rogeriopradoj homebrew macOS
View Brewfile
tap "buo/cask-upgrade"
tap "burntsushi/ripgrep", "https://github.com/BurntSushi/ripgrep.git"
tap "domt4/autoupdate"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/cask-eid"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
@rogeriopradoj
rogeriopradoj / 1.md
Last active Jul 21, 2020
Dicas de como contribuir com open source by @rogeriopradoj
View 1.md

Olá, vamos para algumas dicas de como contribuir com opensource!

Procure seguir o fluxo base que o GitHub ensina para nós

O pessoal do GitHub tem um guia que ensina o GitHub flow, https://guides.github.com/introduction/flow/. A base que ele nos ensina é:

  • crie um branch para a alteração que você vai fazer
  • faça os commits (ou o commit único) das suas alterações
  • abra o pull request
View macbook-pro-2011-defective-gpu-fix-v2.md
@rogeriopradoj
rogeriopradoj / README.md
Last active May 26, 2020
peerflix-server via docker and docker-compose
View README.md
@rogeriopradoj
rogeriopradoj / README.md
Created Apr 20, 2019
adminer autologin sqlite
View README.md

adminer autologin sqlite

A way to make adminer not ask for any of credentials, using default values for: fake-username, fake-password and sqlite file database path.

Steps:

  • Download adminer.php, put in the same folder of index.php (root) and set the correct filename there;
  • Download plugin.php and put it in plugins folder;
  • Move auto-login.php and login-sqlite.php into plugins folder;
  • Set correct sqlite file database path.
@rogeriopradoj
rogeriopradoj / launch.json
Created Apr 30, 2020
.vscode/launch.json - para configurar o xdebug do php no vscode - dica do zé!
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "PHP-XDEBUG",
"type": "php",
"request": "launch",
"port": 9000
},
{
You can’t perform that action at this time.