Skip to content

Instantly share code, notes, and snippets.

View rogeriopradoj's full-sized avatar
😀

Rogerio Prado de Jesus rogeriopradoj

😀
View GitHub Profile
@rogeriopradoj
rogeriopradoj / stopwords.txt
Created December 29, 2021 01:37 — forked from alopes/stopwords.txt
Portuguese stop words
de
a
o
que
e
do
da
em
um
para
@rogeriopradoj
rogeriopradoj / proxy.md
Created May 22, 2021 14:00 — forked from yougg/proxy.md
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@rogeriopradoj
rogeriopradoj / git-subdirectory-tracking.md
Created May 12, 2021 00:18 — forked from tswaters/git-subdirectory-tracking.md
Adding subdirectory of a remote repo to a subdirectory in local repo

This is way more complicated than it should be. The following conditions need to be met :

  1. need to be able to track and merge in upstream changes
  2. don't want remote commit messages in master
  3. only interested in sub-directory of another repo
  4. needs to go in a subdirectory in my repo.

In this particular case, I'm interested in bringing in the 'default' template of jsdoc as a sub-directory in my project so I could potentially make changes to the markup it genereates while also being able to update from upstream if there are changes. Ideally their template should be a separate repo added to jsdoc via a submodule -- this way I could fork it and things would be much easier.... but, it is what it is.

After much struggling with git, subtree and git-subtree, I ended up finding this http://archive.h2ik.co/2011/03/having-fun-with-git-subtree/ -- it basically sets up separate branches from tracking remote, the particular sub-directory, and uses git subtree contrib module to pull it all togther. Following are

@rogeriopradoj
rogeriopradoj / jupyter_cell_notify.py
Last active September 30, 2020 19:26 — 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.
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)
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 August 14, 2020 10:43
PERSONAL.XLSB - EXCEL - ALT+F11 - VBAProject
Sub AutoFiltro()
'
' AutoFiltro Macro
'
' Atalho do teclado: Ctrl+Shift+F
'
Selection.AutoFilter
End Sub
@rogeriopradoj
rogeriopradoj / launch.json
Created April 30, 2020 00:05
.vscode/launch.json - para configurar o xdebug do php no vscode - dica do zé!
{
"version": "0.2.0",
"configurations": [
{
"name": "PHP-XDEBUG",
"type": "php",
"request": "launch",
"port": 9000
},
{
@rogeriopradoj
rogeriopradoj / 1.sql
Created November 18, 2019 21:53
https://gallery.technet.microsoft.com/scriptcenter/Get-List-of-Linked-Server-d6c95d9c - This script will get the list of Linked server with its properties and its associated local/Remote login list. The properites listed are Server,Product , Provider , Catalog , RPC out Enabled and Data Access Enabled. Also this lists the local login and remote …
SELECT ss.server_id
,ss.name
,'Server ' = Case ss.Server_id
when 0 then 'Current Server'
else 'Remote Server'
end
,ss.product
,ss.provider
,ss.catalog
,'Local Login ' = case sl.uses_self_credential
@rogeriopradoj
rogeriopradoj / 0-README.md
Last active March 30, 2020 06:37
CRIA catálogo de objetos servidores de banco de dados - sql server