Skip to content

Instantly share code, notes, and snippets.

View x-magic's full-sized avatar
🙂
Smiling

Bill Haofei Gong x-magic

🙂
Smiling
View GitHub Profile

Boot UEFI CloudReady on ASUS X43U

If BIOS failed to add EFI boot entry to CloudReady automatically after standalone installation, in this case on an ASUS X43U old laptop, do following:

  • Enter BIOS, Boot and select "Add New Boot Option"
  • Enter "Add boot option" and give it a name (like "CloudReady")
  • When you install CloudReady in standalone mode, "Select Filesystem" should have only one option available. Leave it alone
  • In "Path for boot option" type in \efi\boot\bootx64.efi as value
  • Finally select "Create" and then press ESC key back to previous menu
  • Now set "Boot Option #1" to newly created "CloudReady" entry
#!/bin/sh
DROPBOX_USERS="[put your username here]"
DAEMON=.dropbox-dist/dropboxd
DAEMON_ACTUAL=.dropbox-dist/*/dropbox
start() {
echo "Starting dropbox..."
for dbuser in $DROPBOX_USERS; do
HOMEDIR=`getent passwd $dbuser | cut -d: -f6`
if [ -x $HOMEDIR/$DAEMON ]; then
@x-magic
x-magic / UptownFunk.sh
Created February 1, 2016 06:51
Use Raspbian, youtube-dl and omxplayer to stream YouTube videos
#!/bin/bash
VARHL='\033[1;33m'
ECHOHL='\033[1;36m'
NC='\033[0m'
URL="https://www.youtube.com/watch?v=OPf0YbXqDm0"
echo -e "${ECHOHL}===== The YouTube URL about to play is: ${VARHL}$URL${NC}"
echo -e "${ECHOHL}===== youtube-dl will now list all possible format for you to choose...${NC}"