echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`
import java.util.Random; | |
/** | |
* A credit card number generator. | |
* | |
* @author Josef Galea | |
*/ | |
public class CreditCardNumberGenerator { | |
private Random random = new Random(System.currentTimeMillis()); |
<?php | |
//write kazua | |
function convGtJDate($src) { | |
list($year, $month, $day) = explode('/', $src); | |
if (!@checkdate($month, $day, $year) || $year < 1869 || strlen($year) !== 4 | |
|| strlen($month) !== 2 || strlen($day) !== 2) return false; | |
$date = str_replace('/', '', $src); | |
if ($date >= 19890108) { | |
$gengo = '平成'; |
Possible values for ext-name: | |
bcmath | |
bz2 | |
calendar | |
ctype | |
curl | |
dba | |
dom | |
enchant |
variables: | |
REGISTRY_URL: registry.lekode.com:5000 | |
IMAGE_NAME: app | |
BUILD_CODE_IMAGE: $REGISTRY_URL/$IMAGE_NAME:$CI_COMMIT_REF_NAME | |
LATEST_CODE_IMAGE: $REGISTRY_URL/$IMAGE_NAME:latest | |
stages: | |
- test | |
- install | |
- build |
version: '3' | |
services: | |
es1: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4 | |
container_name: es1 | |
environment: | |
cluster.name: "docker-cluster" | |
bootstrap.memory_lock: "true" | |
ES_JAVA_OPTS: "-Xms512m -Xmx512m" | |
TAKE_FILE_OWNERSHIP: "true" |
let previousScrollY = 0; | |
$(document).on('show.bs.modal', () => { | |
previousScrollY = window.scrollY; | |
$('html').addClass('modal-open').css({ | |
marginTop: -previousScrollY, | |
overflow: 'hidden', | |
left: 0, | |
right: 0, | |
top: 0, |
BEGIN | |
FOR cur_syn IN (SELECT synonym_name | |
FROM all_synonyms | |
WHERE table_owner = 'somebody') | |
LOOP | |
BEGIN | |
EXECUTE IMMEDIATE 'drop public synonym ' || cur_syn.synonym_name ; | |
EXCEPTION | |
WHEN OTHERS | |
THEN |
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.