First, install Solaar to see the battery level on the taskbar
sudo apt-get install solaar
To remap the keys, install
sudo apt-get install xbindkeys xautomation
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
sudo apt-get install -y xbindkeys xautomation x11-utils | |
xbindkeys --defaults > $HOME/.xbindkeysrc | |
echo " | |
# Back | |
\"xte 'keydown Alt_L' 'keydown Control_L' 'keydown Up' 'keyup Up' 'keyup Control_L' 'keyup Alt_L'\" | |
b:8 | |
# Forward |
// Logiops (Linux driver) configuration for Logitech MX Master 3. | |
// Includes gestures, smartshift, DPI. | |
// Tested on logid v0.2.2-35-g1c209ed. | |
// File location: /etc/logid.cfg | |
devices: ({ | |
name: "Wireless Mouse MX Master 3"; | |
smartshift: { |
First, install Solaar to see the battery level on the taskbar
sudo apt-get install solaar
To remap the keys, install
sudo apt-get install xbindkeys xautomation
function display_name(text) { | |
/* Remove all quotes | |
Remove whitespace, brackets, and commas from the ends. */ | |
return text.replace(/(^[\s,>]+)|"|([\s,<]+$)/g, ''); | |
} | |
function get_email_adresses(addr_list) { | |
/* Regex source: | |
https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address | |
*/ |
const http = require('http'); | |
const express = require('express'); | |
const Redis = require('ioredis'); | |
const { RateLimiterRedis } = require('rate-limiter-flexible'); | |
const redisClient = new Redis({ enableOfflineQueue: false }); | |
const maxWrongAttemptsByIPperDay = 100; | |
const maxConsecutiveFailsByUsernameAndIP = 10; | |
const maxWrongAttemptsByUsernamePerDay = 50; |
javascript:void( | |
function(){ | |
var u = 'https://www.you'+'tu'+'bemonkey.com'+ window.location.pathname + window.location.search; | |
window.location = u; | |
}() | |
); |
import { put, call, select, fork, all } from 'redux-saga/effects' | |
import { delay } from 'redux-saga' | |
import TicketsActions from 'Redux/TicketsRedux' | |
import LotteryActions from 'Redux/LotteryRedux' | |
import { callContract, callERC20 } from 'Services/Eth' | |
import { selectCountOfDraws, selectDrawsPage, selectDrawsLoading } from 'Utils/Selectors' | |
import { prepareTicketNumbers } from 'Utils/Tickets' | |
import { splitTransactions } from 'Utils/Transactions' | |
import { CONTRACT_ADDRESS } from 'Constants/Eth' |
[php] | |
comment = the php interpreter and libraries | |
executables = /usr/bin/php,/usr/bin/php5.6,/usr/bin/php7.0,/usr/bin/php7.1 | |
directories = /usr/lib/php, /usr/share/php, /usr/share/php5, /etc/php, /usr/share/php-geshi, /usr/share/zoneinfo, /etc/snmp, /usr/share/snmp | |
includesections = env | |
[env] | |
comment = environment variables | |
executables = /usr/bin/env |