Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jorgicio's full-sized avatar
🏠
Working from home

Jorge Pizarro Callejas jorgicio

🏠
Working from home
View GitHub Profile
@jorgicio
jorgicio / filesprofile-cleaner-2.38-fix-brave-browser-support.patch
Created May 16, 2020 16:26
files/profile-cleaner-2.38-fix-brave-browser-support.patch
diff -Naur a/common/profile-cleaner.in b/common/profile-cleaner.in
--- a/common/profile-cleaner.in 2020-05-16 12:14:59.033740280 -0400
+++ b/common/profile-cleaner.in 2020-05-16 12:19:33.217328995 -0400
@@ -172,10 +172,10 @@
case "$1" in
B|b)
- for name in BraveSoftware Brave-Browser; do
+ for name in Brave-Browser Brave-Browser-Dev Brave-Browser-Beta Brave-Browser-Nightly; do
export name
@jorgicio
jorgicio / EbuildsGentoojorgicio-gentooapp-adminprofile-cleanerfilesprofile-cleaner-vivaldi-browser-support.patch
Created May 13, 2020 02:11
EbuildsGentoo/jorgicio-gentoo/app-admin/profile-cleaner/files/profile-cleaner-vivaldi-browser-support.patch
diff -Naur a/common/profile-cleaner.in b/common/profile-cleaner.in
--- a/common/profile-cleaner.in 2020-05-12 21:11:28.104357941 -0400
+++ b/common/profile-cleaner.in 2020-05-12 21:52:44.818506786 -0400
@@ -318,6 +318,14 @@
do_dbbased
exit 0
;;
+ V|v)
+ for name in vivaldi vivaldi-snapshot; do
+ export name
@jorgicio
jorgicio / varcalculatecustom-overlayx11-driversnvidia-driversnvidia-drivers-390.132-r2.ebuild
Created March 14, 2020 16:28
/var/calculate/custom-overlay/x11-drivers/nvidia-drivers/nvidia-drivers-390.132-r2.ebuild
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop flag-o-matic linux-info linux-mod multilib-minimal \
nvidia-driver portability toolchain-funcs unpacker udev
DESCRIPTION="NVIDIA Accelerated Graphics Driver"
HOMEPAGE="https://www.nvidia.com/"
@jorgicio
jorgicio / EbuildsGentoojorgicio-gentooapp-laptoppreyfilesprey-agent
Created March 5, 2020 22:28
EbuildsGentoo/jorgicio-gentoo/app-laptop/prey/files/prey-agent
#!/sbin/openrc-run
#
ARCH=$(uname -m)
[[ $ARCH == "x86_64" ]] && SUFFIX="64" || SUFFIX="32"
pidfile="/var/run/prey-agent.pid"
command="/usr/lib${SUFFIX}/prey/bin/prey"
description="The Prey Agent Daemon"
start_stop_daemon_args="-b -n --pidfile ${pidfile}"
@jorgicio
jorgicio / Colaborar Proyecto GitHub.markdown
Created December 4, 2019 03:15 — forked from BCasal/Colaborar Proyecto GitHub.markdown
Pasos a seguir para colaborar en un proyecto de GitHub

Cómo colaborar en un proyecto en GitHub

  • Fork del repositorio
  • Clonar el repositorio
  • Actualizar la rama master
  • Crear una rama
  • Hacer los cambios
  • Hacer un Pull Request

Fork del repositorio

@jorgicio
jorgicio / mychroot
Created November 18, 2019 01:11
Chroot daemon for OpenRC
#!/sbin/openrc-run
depend() {
need localmount
need bootmisc
}
start() {
ebegin "Mounting chroot directories"
mount -o rbind /dev /mnt/dev > /dev/null &
@jorgicio
jorgicio / etcportagepatchesx11-termskitty-0.14.6kitty-fix-surrogate-invalid.patch
Created October 11, 2019 17:50
/etc/portage/patches/x11-terms/kitty-0.14.6/kitty-fix-surrogate-invalid.patch
diff -Naur a/kitty/main.py b/kitty/main.py
--- a/kitty/main.py 2019-10-11 14:47:31.246901676 -0300
+++ b/kitty/main.py 2019-10-11 14:48:48.475187475 -0300
@@ -296,6 +296,9 @@
os.environ['PATH'] = os.pathsep.join(existing_paths)
args = sys.argv[1:]
+ # Escaping surrogate characters if available
+ _args = [a.encode('utf-8','surrogateescape').decode('utf-8') for a in args]
+ args = _args
@jorgicio
jorgicio / etcportagepatchesx11-termskitty-0.14.6kitty-fix-surrogate-invalid.patch
Created October 10, 2019 03:20
/etc/portage/patches/x11-terms/kitty-0.14.6/kitty-fix-surrogate-invalid.patch
diff -Naur a/kitty/main.py b/kitty/main.py
--- a/kitty/main.py 2019-10-10 00:12:43.425552669 -0300
+++ b/kitty/main.py 2019-10-10 00:14:51.659220009 -0300
@@ -296,6 +296,10 @@
os.environ['PATH'] = os.pathsep.join(existing_paths)
args = sys.argv[1:]
+ _args = []
+ for a in args:
+ _args.append(a.encode('utf-8','surrogateescape').decode('utf-8'))
@jorgicio
jorgicio / filesnitroshare-qt-5.11-compatibility.patch
Created October 17, 2018 23:59
files/nitroshare-qt-5.11-compatibility.patch
diff -Naur a/src/application/splashdialog.cpp b/src/application/splashdialog.cpp
--- a/src/application/splashdialog.cpp 2018-10-17 20:46:46.215724733 -0300
+++ b/src/application/splashdialog.cpp 2018-10-17 20:52:08.809896702 -0300
@@ -24,6 +24,15 @@
#include <QApplication>
#include <QDesktopWidget>
+/*
+* Check if Qt version is older or equal than 5.11 in order to
+* include the QStyle header, older versions didn't
@jorgicio
jorgicio / filesnitroshare-qt-5.11-compatibility.patch
Created October 17, 2018 23:57
files/nitroshare-qt-5.11-compatibility.patch
diff -Naur a/src/application/splashdialog.cpp b/src/application/splashdialog.cpp
--- a/src/application/splashdialog.cpp 2018-10-17 20:46:46.215724733 -0300
+++ b/src/application/splashdialog.cpp 2018-10-17 20:52:08.809896702 -0300
@@ -24,6 +24,15 @@
#include <QApplication>
#include <QDesktopWidget>
+/*
+* Check if Qt version is older than 5.11 in order to
+* include the QtStyle header, older versions didn't