A = SOUTH B = EAST C = R bumper X = WEST Y = NORTH Z = L bumper L = Left Trigger R = Right Trigger Start = Start Minus(8bitdo) = select
source: https://superuser.com/a/1409363
Here's the process:
fdisk -l raspberry_pi.img
Which gives the output below. Note the sector size in bytes (512 in this case; see line 2 below) and the Start sector of the partition (94208 for the Linux partition; see the last line below).
Disk raspberry_pi.img: 7.3 GiB, 7826571264 bytes, 15286272 sectors
Units: sectors of 1 * 512 = 512 bytes
source: https://japanatron.com/blog/other/it/10417-batocera-how-to-pair-8bitdo-m30-controller
- Put the controller into pairing mode first, then start Bluetooth discovery on Batocera. Use the Android D-input (Start + B) pairing mode.
- After pairing it, it will likely go kinda crazy. Down doesn't work, and it keeps scrolling to the side, etc. Take a deep breath. We can fix this.
- Turn off the controller by holding down start.
- Restart Batocera.
- Turn on the controller by holding down start. BOOM! PROFIT!
Add on $HOME/.xprofile
to autoload on boot:
xrandr --newmode "5120x1440_59.97" 292.75 5120 5360 5888 6656 1440 1443 1453 1468 +hsync +vsync
xrandr --addmode HDMI-2 5120x1440_59.97
xrandr --output HDMI-2 --mode 5120x1440_59.97
or run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timeAgo = (unixtime)=> { | |
var seconds = Math.floor((new Date() - unixtime * 1000) / 1000); | |
var interval = seconds / 31536000; | |
if (interval > 1) { | |
return Math.floor(interval) + " years ago"; | |
} | |
interval = seconds / 2592000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
// http://youtu.be/dQw4w9WgXcQ | |
// http://www.youtube.com/embed/dQw4w9WgXcQ | |
// http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
// http://www.youtube.com/?v=dQw4w9WgXcQ | |
// http://www.youtube.com/v/dQw4w9WgXcQ | |
// http://www.youtube.com/e/dQw4w9WgXcQ | |
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//calculates using newlines | |
//*** text area grow */ | |
const calcNewLines = (value) => { | |
let numberOfLineBreaks = (value.match(/\n/g) || []).length; | |
// min-height + lines x line-height + padding + border | |
//let newHeight = 34 + numberOfLineBreaks * 20 + 12 + 2; | |
let newHeight = 34 + numberOfLineBreaks * 24 + 12 + 2; | |
if (!numberOfLineBreaks) { | |
newHeight = 36; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://forums.linuxmint.com/viewtopic.php?f=49&t=287775&p=1593262&hilit=SOLVED+USB+Ports+Working+Correctly#p1593262 | |
tldr: add on grub boot: quiet splash usbcore.autosuspend=-1 |
If your MySQL process is running, stop it. On Debian:
sudo service mysql stop
Go to your data folder. On Debian:
cd /var/lib/mysql/$DATABASE_NAME
(https://www.citrix.com/blogs/2016/04/07/using-the-crtl-key-with-citrix-receiver-for-linux/)[source]
On Ubuntu, you will need to use the dconf editor or gsettings to change the value:
gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer false
OR
NewerOlder