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
print('hello') |
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
export DEV_ROOT=/dev/sda7 | |
umount $DEV_ROOT | |
mkfs.ext4 $DEV_ROOT | |
mkdir /mnt/installer | |
mount $DEV_ROOT /mnt/installer | |
ln -s /mnt/installer /mnt/funtoo | |
#開始下載stage3 | |
cd /mnt/funtoo | |
wget http://build.funtoo.org/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz | |
tar xpf stage3-latest.tar.xz |
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
cd /mnt/funtoo | |
wget http://build.funtoo.org/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz | |
tar xpf stage3-latest.tar.xz |
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
export ROOT_UUID=$(blkid /dev/sda7 -s UUID -o value) | |
export HOME_UUID=$(blkid /dev/sda5 -s UUID -o value) | |
echo UUID=$ROOT_UUID / ext4 errors=remount-ro 0 1 | |
echo \#UUID=$HOME_UUID /home ext4 defaults 0 2 |
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
cp /etc/resolv.conf /mnt/funtoo/etc/ | |
cd /mnt/funtoo | |
mount -t proc none proc | |
mount --rbind /sys sys | |
mount --rbind /dev dev | |
chroot /mnt/funtoo |
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
MAKEOPTS="-j2" | |
VIDEO_CARDS="nvidia" | |
USE="" |
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
from PySide2 import QtMultimedia,QtWidgets | |
from PySide2.QtCore import QTimer,QFile,QIODevice | |
import sys | |
import os | |
import numpy as np | |
SAMPLE_RATE = 44100 # [Hz] | |
SAMPLE_SIZE = 16 # [bit] | |
CHANNEL_COUNT = 2 |
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
class SoundCardSource: | |
def __init__(self, channel_count, sample_rate, device_id, fps): | |
self.channel_count = channel_count | |
self.sample_rate = sample_rate | |
self.device_id = device_id | |
self.blocksize = self.sample_rate // fps | |
self.start() |