Skip to content

Instantly share code, notes, and snippets.

View juancarielo's full-sized avatar

Juan Carielo juancarielo

View GitHub Profile
@andrebrait
andrebrait / keychron_linux.md
Last active February 13, 2026 10:19
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work (NOT FOR QMK-BASED BOARDS)

Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.

@lucasbf
lucasbf / Free_Textbooks.md
Last active September 9, 2020 19:21
Lista de livros liberados gratuitamente para download por diversas editoras.

Livros Gratuitos em Computação

Em tempos de COVID-19 algumas editoras liberaram uma série de livros do seu acervo em formato ebook para download. Entre elas a SpringerNature disponibilizou ebooks em diversas áreas do conhecimento, a lista completa pode ser vista aqui.

Entretanto, uma seleção foi realizada na lista geral e contempla os principais títulos para a área da Ciência da Computação e Análise e Desenvolvimento de Sistemas. São 60 livros que estão divididos em Matemática e Teoria da Computação, Programação e Desenvolvimento de Software, Ciência de Dados e Aprendizado de Máquina, e por fim Diversos.

O nível Básico ou Avançado é indicado em cada livro.

Qualquer dúvida e/ou sugestão de correção deixe um comentário ao final do gist, ou me encontre em @lucasfigueira.

@fworks
fworks / install-zsh-windows-git-bash.md
Last active January 21, 2026 17:51
Zsh / Oh-my-zsh on Windows Git Bash
@AnneTee
AnneTee / twig-cheat-sheet.md
Last active September 28, 2025 19:13
Drupal 8 Twig cheat sheet

D8 Twig cheat sheet

Conditionals

To check if a field has a value, check to see if the 0 array item is populated. Simply checking if content.field_name is truthy will not work since that variable will be defined even if the field is empty.

{% if content.field_name.0 %}
  {{ field_name }}
{% endif %}
@druman
druman / HelloWorldController.php
Last active April 13, 2022 19:52
Drupal 8 Add library JS
<?php
namespace Drupal\helloworld\Controller;
use Drupal\Core\Controller\ControllerBase;
class HelloWorldController extends ControllerBase {
public function helloWorld() {
@crittermike
crittermike / disable_aggregation.md
Last active February 14, 2022 12:17
Disabling CSS/JS aggregation via Drush in Drupal 7 and Drupal 8

Drupal 7

drush vset preprocess_css 0 --yes
drush vset preprocess_js 0 --yes

Drupal 8

@joseluisq
joseluisq / README.md
Last active March 4, 2025 07:27
Install PHP 7 Xdebug in Arch Linux

Install PHP 7 Xdebug in Arch Linux

"Normally", these instructions should be also valid (in similar way) for other Linux distros.

1.- Install Xdebug using pacman:

sudo pacman -Sy xdebug
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active March 20, 2026 21:59
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@raphaellarrinaga
raphaellarrinaga / drupal_8_twig_cheatsheet.md
Last active February 23, 2025 02:49
[Drupal 8 Twig cheatsheet] #tags: drupal8, twig, cheatsheet

Drupal 8 Twig cheatsheet

Please note I created that sheet as a personal side note/draft and not everything is fully tested. There could be errors or better things to do. So if you spot something wrong or something that can be improved, feel free to comment below and I will do the changes.

Getting Drupal 8 field values in Twig

Image path: {{ file_url(content.field_name['#items'].entity.uri.value) }}

@pandafulmanda
pandafulmanda / Python3 Virtualenv Setup.md
Last active January 22, 2026 21:47 — forked from akszydelko/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3