Skip to content

Instantly share code, notes, and snippets.

View JorgeJuarezM's full-sized avatar

Jorge Luis Juarez JorgeJuarezM

View GitHub Profile
@JorgeJuarezM
JorgeJuarezM / EFS-filesystem.md
Created March 26, 2024 01:46 — forked from maxmilian/EFS-filesystem.md
unknown filesystem type 'efs'
sudo apt-get update
sudo apt-get install -y git binutils make
git clone https://github.com/aws/efs-utils
cd efs-utils
make deb
sudo apt-get install -y ./build/amazon-efs-utils*deb
@JorgeJuarezM
JorgeJuarezM / server4spa.py
Created November 3, 2023 01:00 — forked from iktakahiro/server4spa.py
Python3 http.server for Single Page Application
#!/usr/bin/env python
# Inspired by https://gist.github.com/jtangelder/e445e9a7f5e31c220be6
# Python3 http.server for Single Page Application
import urllib.parse
import http.server
import socketserver
import re
from pathlib import Path
@JorgeJuarezM
JorgeJuarezM / odoo-wsgi.py
Created October 10, 2019 15:03 — forked from danidee10/odoo-wsgi.py
Odoo wsgi file for running odoo10 as a wsgi application
# WSGI Handler sample configuration file.
#
# Change the appropriate settings below, in order to provide the parameters
# that would normally be passed in the command-line.
# (at least conf['addons_path'])
#
# For generic wsgi handlers a global application is defined.
# For uwsgi this should work:
# $ uwsgi_python --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py
#
@JorgeJuarezM
JorgeJuarezM / howto-tft-recalbox.md
Created May 11, 2019 23:33 — forked from josejuansanchez/howto-tft-recalbox.md
Cómo configurar un TFT-LCD de 3.5 pulgadas para RPi 3 y Recalbox
@JorgeJuarezM
JorgeJuarezM / browser.h
Created June 23, 2018 09:53 — forked from bojieli/browser.h
A sample tiny browser based on Qt 5 + Webkit
/* Simple Browser Sample
* Put this file (browser.h) and browser.cpp, browser.pro in one folder.
* Use Qt Creator with Qt 5 to compile the project.
*
* Content of browser.cpp
*
#include "browser.h"
int main(int argc, char** argv) {
QApplication app(argc, argv);

The current kernel/drivers of Fedora 24 do not support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.

Verify that your card is a Broadcom using: lspci -vnn -d 14e4:

Sample output:

02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)

Install

Install the rpmfusion repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/

@JorgeJuarezM
JorgeJuarezM / gnome3-xfce4-xrdp.sh
Created April 28, 2017 19:25 — forked from bcambl/gnome3-xfce4-xrdp.sh
Setup Fedora 23 Gnome3 with xRDP via XFCE4
#!/bin/bash
#################################################
# Setup Fedora 23 Gnome3 with xRDP via XFCE4
#################################################
# install the XFCE4 desktop
sudo dnf groupinstall xfce-desktop
# open standard RDP ports
sudo firewall-cmd --add-port=3389/tcp
@JorgeJuarezM
JorgeJuarezM / psqlfix.txt
Created March 9, 2017 23:44
Change postgres default template0 to UTF8 encoding
mike@rbci:~$ psql -U postgres
psql (9.0.3)
Type "help" for help.
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0';
UPDATE 1
postgres=# \c template0
You are now connected to database "template0".
template0=# update pg_database set datistemplate = FALSE where datname = 'template1';
UPDATE 1
@JorgeJuarezM
JorgeJuarezM / Linux Static IP
Created March 8, 2017 01:05 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static