Skip to content

Instantly share code, notes, and snippets.

View janjitsu's full-sized avatar
🦝

Jan Silva janjitsu

🦝
View GitHub Profile
@janjitsu
janjitsu / prearrange.sh
Last active March 7, 2025 22:17
Rearrange partition 1 - (ROMs) on RG35xxplush stock os phisically to the end of the image, keeping it's logical name as partition 1 thanks to https://www.reddit.com/user/Skeeve-on-git/ see original post on https://www.reddit.com/r/RG35XX_H/comments/1dwaqm4/expand_stock_os_partition_on_a_single_sd_card/
#!/usr/bin/perl
#
# Rearrange partition 1 - (ROMs) on RG35xxh stock os phisically to the end of the image,
# keeping it's logical name as partition 1 thanks to https://www.reddit.com/user/Skeeve-on-git/
#
# Check his tutorial on https://pastebin.com/raw/ji2GZxad
# This was originally posted in this reddit
# https://www.reddit.com/r/RG35XX_H/comments/1dwaqm4/expand_stock_os_partition_on_a_single_sd_card/
#
# this allows you to extend the roms partition to the free size at the end of SD Card but keeps the
@janjitsu
janjitsu / htoprc
Last active July 13, 2025 19:43
My Htop Setup
# Copy or symlink this file to ~/.config/htop/htoprc
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
# see more at https://dev.to/janjitsu/my-htop-setup-3fng
#
#
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=111
sort_direction=1
tree_sort_key=1
@janjitsu
janjitsu / tibia-fedora-installer.sh
Last active December 20, 2019 19:58
Tibia installer for fedora - Install tibia on fedora
#!/bin/bash
# @author janjitsu
# This script will download and extract tibia and it's dependencies, it wil also create a desktop shortcut
# USAGE:
#
# wget https://goo.gl/QJZ3g4 -O tibia-installer.sh && chmod +x tibia-installer.sh && ./tibia-installer.sh
cat << EOF
_____ ___ ____ ___ _ _____ ___ ____
|_ _|_ _| __ )_ _| / \ | ___/ _ \| _ \
#!/bin/bash
# Para branchs que começam no formato [A-Za-z]+-[0-9]+- (Código do Jira)
# branchs sem tag
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test staging revamp)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
def create
@archive = Archive.new(archive_params)
@archive = ArchiveProcessor.new(@archive).process
if @archive.save
redirect_to archives_path, notice: "The resume #{@archive.name} has been uploaded."
else
render "new"
end
end
@janjitsu
janjitsu / svn-to-git.md
Last active September 19, 2016 18:32
Exporting a SVN to GIT (Linux)

Attention: this tutorial requires git-svn installed

# apt-get install git-svn

  • find out repository url

$ svn info # shows repository url

  • create a folder to new repository