Skip to content

Instantly share code, notes, and snippets.

View diniremix's full-sized avatar

Jorge Brunal diniremix

View GitHub Profile
@diniremix
diniremix / do-not-track.sh
Created April 9, 2024 01:44
you shall not spy!
#!/bin/bash
#######################################################################################
#
# MIT License
#
# Copyright (c) 2014-2024 HomeInside Inc. and other contributors,
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@diniremix
diniremix / radio21.pls
Last active February 9, 2024 14:40
Radio21 Stream radio
[playlist]
NumberOfEntries=10
Title1=Radio Tiempo Cali
File1=https://24493.live.streamtheworld.com/RT_CALIAAC.aac
Title2=Radio Tiempo Clasicos
File2=http://i90.letio.com:80/9188.aac
Title3=Naxi Radio (Dance)
File3=http://naxidigital-dance128.streaming.rs:8110/
Title4=Naxi Radio (Rock)
File4=http://naxidigital-rock128.streaming.rs:8180/
@diniremix
diniremix / read_file_Qt
Created December 4, 2011 06:06
read file of text in Qt and show in QTextEdit
void MainWindow::readfile(){
QString filename="test.txt";
QFile file(filename);
if(!file.exists()){
qDebug() << "NO existe el archivo "<<filename;
}else{
qDebug() << filename<<" encontrado...";
}
QString line;
ui->textEdit->clear();
@diniremix
diniremix / kde-neon-post-install.sh
Last active December 3, 2022 10:55
KDE Neon post install
# KDE Neon 15.18.0 post install
# first step, upgrade
sudo pkcon refresh
sudo pkcon update
# opera web browser
wget -qO- https://deb.opera.com/archive.key | sudo apt-key add -
sudo add-apt-repository 'deb https://deb.opera.com/opera-stable/ stable non-free'
sudo apt-get update

Ubuntu 22.04 on Windows wsl2

https://youtu.be/BxlcSXKoiiU

in the Windows terminal, Basic commands for WSL

wsl --install wsl --set-default-version 2 wsl --help wsl -l -o wsl -l -all

@diniremix
diniremix / eos-post-install.sh
Last active March 9, 2022 15:26
elementaryOS post install
# elementary OS Hera post install
# first step, upgrade
sudo apt update && sudo apt upgrade
sudo apt install ubuntu-restricted-extras
sudo apt install software-properties-common --no-install-recommends
sudo apt install libavcodec-extra ffmpeg
sudo apt install firefox vlc
sudo apt install screenfetch flameshot
@diniremix
diniremix / gen-req.md
Last active October 18, 2021 18:53
gen-req reads a 'pyproject.toml' (Poetry) file and exports the list of dependencies to a 'requirements.txt' file, in a more easily understood, simple and traditional way.

gen-req reads a 'pyproject.toml' (Poetry) file and exports the list of dependencies to a 'requirements.txt' file, in a more easily understood, simple and traditional way.

Copyright (c) 2021 Jorge Brunal Perez diniremix@gmail.com

gen-req is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either

@diniremix
diniremix / xampp.sh
Last active April 26, 2021 20:24
simple script to run xampp service (linux)
#!/bin/sh
PASSWD=
XAMPP_PATH=/opt/lampp/lampp
run_as_root (){
PASSWD=`zenity --password --title "Xampp requires access"`
}
run_xampp_service (){
@diniremix
diniremix / setupgit.sh
Last active February 16, 2020 23:45
a simple script after install git
#!/bin/bash
app=setupgit.sh;
uname="Peter Anderson"
email="diniremix@gmail.com"
clear;
echo "Fijando nombre de usuario y email..."
echo
git config --global user.name "$uname"
git config --global user.email $email
echo "Creando algunos alias..."
@diniremix
diniremix / create_file_Qt
Created December 4, 2011 06:00
create file of text in Qt
void MainWindow::createfile(){
QString filename="test.txt";
QFile file(filename);
if(!file.exists()){
qDebug() << "NO existe el archivo "<<filename;
}else{
qDebug() << filename<<" encontrado...";
}
QString mesg="una segunda linea";
if (file.open(QIODevice::WriteOnly | QIODevice::Text)){