Skip to content

Instantly share code, notes, and snippets.

View mon-jai's full-sized avatar

Mon mon-jai

  • National Taipei University of Technology
  • Taiwan
View GitHub Profile
# https://superuser.com/a/1492456
echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" | sudo dd of="/etc/sudoers.d/$(whoami)"
sudo apt install -y wslu
# https://superuser.com/a/1568668/1172895
WINDOWS_USER_PROFILE="$(wslpath "$(wslvar USERPROFILE)")"
HOME_DICECTORY="/home/$(whoami)"
# https://askubuntu.com/a/86891
cp -vra ~/. $WINDOWS_USER_PROFILE

Lab 2

Objective 1

fulladd.vhd

library ieee;
use ieee.std_logic_1164.all;
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": ["${env:windir}\\Sysnative\\cmd.exe", "${env:windir}\\System32\\cmd.exe"],
"args": [],
"icon": "terminal-cmd"
},

Lab 2

#include <errno.h>
#include <fcntl.h>
#include <iostream>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
// This file is automatically generated and not intended for manual editing.
lockfile-version 1
root {
dependencies {
"@oclif/core" ">=2.0.0 <3.0.0-0"
"@oclif/plugin-help" ">=5.0.0 <6.0.0-0"
"@oclif/plugin-plugins" ">=3.1.3 <4.0.0-0"
async ">=3.2.4 <4.0.0-0"
inquirer ">=9.2.7 <10.0.0-0"
lodash-es ">=4.17.21 <5.0.0-0"
Dogfooding
  • Dogfooding is using an app or feature shortly before it's publically released.
  • The term dogfood comes from the expression "eating your own dogfood".
Fishfooding
  • Fishfooding is using an app or feature really early in its development before it's even really finished.
  • The term "fishfood" actually comes from the Google+ team inside of Google.
  • Google+ was internally codenamed Emerald Sea.
export default function TableView({ activities }) {
return (
<div style={{}}>
<div style={{ height: "64px", display: "flex", alignItems: "center", justifyContent: "space-between" }}>
<div style={{ fontFamily: "Montserrat", fontSize: "18px", fontWeight: 500, lineHeight: "24px" }}>
共 {activities.length} 筆資料
</div>
<div style={{ display: "flex", gap: "10px", alignItems: "unset" }}>
<div>
<svg xmlns="http://www.w3.org/2000/svg" width={8} height={12} viewBox="0 0 8 12" fill="none">
url title artist playlist position
https://www.youtube.com/watch?v=p5YjEc9cGtU APARECIUM To sync 0
https://www.youtube.com/watch?v=f9TH7HruP-Y 잘 지내길 바래 Kim Seungmin To sync 1
https://www.youtube.com/watch?v=tcCIylFRHlQ Young To sync 2
https://www.youtube.com/watch?v=W6RvzhJ4dU8 의류수거함 To sync 3
https://www.youtube.com/watch?v=GrRF9yFGCS0 love on loop (LOL) To sync 4
https://www.youtube.com/watch?v=YnbhWaNnalU Butterfly 박준하 To sync 5
https://www.youtube.com/watch?v=utHlhF1DG7E On my mind To sync 6
https://www.youtube.com/watch?v=2lYz6l9utB4 2 Things To sync 7
https://www.youtube.com/watch?v=WuUQX7Fz8SM Chance ) (合作演出:Peakboy (픽보이)和Peakboy) Chan To sync 8
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: mon
New password:
Retype new password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.