Skip to content

Instantly share code, notes, and snippets.

View rsouza01's full-sized avatar
🎯
Focusing

Rodrigo de Souza rsouza01

🎯
Focusing
View GitHub Profile
@rsouza01
rsouza01 / lang_logfile.xml
Created January 11, 2023 08:42
Notepad++ as a log viewer
<NotepadPlus>
<UserLang name="Log file" ext="log" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="2" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00 01 02 03 04</Keywords>
<Keywords name="Operators1">- . , : ; ( ) [ ] =</Keywords>
<Keywords name="Keywords1">ERROR FATAL</Keywords>
@rsouza01
rsouza01 / download-mp3.sh
Created May 6, 2022 19:43
Download mp3 from youtube
youtube-dl -x --audio-format mp3 <URL>
git add -u && git commit --amend --no-edit && git push -f origin <BRANCH-NAME>
@rsouza01
rsouza01 / docker-perm.sh
Last active January 8, 2024 15:22
Sets docker daemon permissions for current user
sudo groupadd docker
sudo usermod -aG docker $USER
### DO NOT FORGET TO LOGOUT AND LOGIN AGAIN!!!!!!!
# Test
docker run hello-world
@rsouza01
rsouza01 / cloudformation.yaml
Last active September 20, 2019 12:05
CloudFormation template
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS CloudFormation Sample Template for CFN Init
Parameters:
KeyName:
Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
Type: AWS::EC2::KeyPair::KeyName
ConstraintDescription: must be the name of an existing EC2 KeyPair.
SSHLocation:
Description: The IP address range that can be used to SSH to the EC2 instances
Type: String
@rsouza01
rsouza01 / create-ec2.sh
Last active September 28, 2019 14:47
EC2 Deluge instance
#!/bin/bash
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y deluged
sudo apt-get install -y deluge-web
#deluged; deluge-web -f; sleep 2; pkill deluged; pkill deluge-web
deluged &
sleep 10
@rsouza01
rsouza01 / save-git-credentials.txt
Last active September 20, 2019 11:51
Save git credentials
$ git config credential.helper store
$ git push https://github.com/repo.git
$ git config --global credential.helper 'cache --timeout 28800'
Username for 'https://github.com': <USERNAME>
Password for 'https://USERNAME@github.com': <PASSWORD>
@rsouza01
rsouza01 / keybase.md
Created June 15, 2017 03:33
keybase.md

Keybase proof

I hereby claim:

  • I am rsouza01 on github.
  • I am rsouza01 (https://keybase.io/rsouza01) on keybase.
  • I have a public key ASDyNsEhtwYGHcuECpNkshflDrv2P9CgjDzrakjOYFMyFAo

To claim this, I am signing this object:

@rsouza01
rsouza01 / wget-list.sh
Last active February 5, 2017 23:41
Wget to download a list of files
#!/bin/bash
#
#
# wget-list.sh
#
# Author: Rodrigo Alvares de Souza
# rsouza01@gmail.com
#
#
# History:
@rsouza01
rsouza01 / wget-pdf.sh
Last active February 5, 2017 22:55
wget for retrieving pdf's from a page.
wget -r -A.pdf http://www.example.com/page-with-pdfs.htm