Skip to content

Instantly share code, notes, and snippets.

View mannuelf's full-sized avatar
👾

Mannuel Ferreira mannuelf

👾
View GitHub Profile
@mannuelf
mannuelf / keychron_linux.md
Created September 11, 2022 07:47 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux + Bluetooth fixes

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

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

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

@mannuelf
mannuelf / index.html
Created April 22, 2016 15:03 — forked from anonymous/index.html
Proxy demo $.proxy event handlers demo // source http://jsbin.com/zomipo
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="$.proxy event handlers demo">
<script src="https://code.jquery.com/jquery-3.0.0-alpha1.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Proxy demo</title>
</head>
<body>
@mannuelf
mannuelf / index.html
Created April 22, 2016 14:10 — forked from anonymous/index.html
Extend Demo // source http://jsbin.com/solige
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Extend Demo</title>
</head>
<body>
<h1>Extend Demo</h1>
@mannuelf
mannuelf / index.html
Created April 22, 2016 11:29 — forked from anonymous/index.html
ParseJSON demo ParseJSON Function, turns JSON into javasctipt objects // source http://jsbin.com/ragupa
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta name="description" content="ParseJSON Function, turns JSON into javasctipt objects">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>ParseJSON demo</title>
</head>
<body>
@mannuelf
mannuelf / index.html
Created April 22, 2016 10:03 — forked from anonymous/index.html
PushStack demo jQuery pushStack() demo // source http://jsbin.com/wicama
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="jQuery pushStack() demo">
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>PushStack demo</title>
</head>
<body>
@mannuelf
mannuelf / index.html
Created April 21, 2016 09:46 — forked from anonymous/index.html
Return a singe value return a single value // source http://jsbin.com/bamefo
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="return a single value ">
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Return a singe value</title>
</head>
<body>
@mannuelf
mannuelf / index.html
Created April 21, 2016 06:54 — forked from anonymous/index.html
Basic Plugin Pattern Return Value return this; return this.each(); return.this.pushStack(); to maintain chainability // source http://jsbin.com/sacoba
<!DOCTYPE html>
<html>
<head>
<title>Basic Plugin Pattern Return Value</title>
<meta name="description" content="return this; return this.each(); return.this.pushStack(); to maintain chainability">
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
@mannuelf
mannuelf / index.html
Created April 20, 2016 12:11 — forked from anonymous/index.html
Move up the chain with end() Moving up the chain with end() // source https://jsbin.com/tenoxaz
<!DOCTYPE html>
<html>
<head>
<title>Move up the chain with end()</title>
<meta name="description" content="Moving up the chain with end()">
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
@mannuelf
mannuelf / rails_resources.md
Last active August 29, 2015 14:27 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@mannuelf
mannuelf / python_resources.md
Last active August 29, 2015 14:27 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides