Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <limits.h> | |
#include <inttypes.h> | |
#include <math.h> | |
typedef struct { |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
//KMF_VERSION=4.8.1 | |
//VERSION=6.0.0-SNAPSHOT | |
class org.kevoree.Model { | |
@contained | |
nodes : org.kevoree.Node[0,*] | |
@contained | |
channels : org.kevoree.Channel[0,*] | |
@contained | |
groups : org.kevoree.Group[0,*] |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
// this prevents using glibc's dinamic linker features (which may cause failure) | |
// remove -ldl when linking it, this should remove static linking warning | |
// if you really need dlopen implementation that works in static binary, | |
// try https://github.com/mittorn/custom-linker or android bionic linker | |
void *dlopen( const char *n, int f ) | |
{ | |
return 0; | |
} | |
void *dlsym( void *l, const char *n ) | |
{ |
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.
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.
Simular Guides
Usefull Commands
lspci -nnk
list pci devicessudo grub2-mkconfig -o /etc/grub2-efi.cfg
updates the grubsudo call-a-friend @ballas
calls the best knowledge base, fuck wiki 🤣