Skip to content

Instantly share code, notes, and snippets.

View luk3ya0's full-sized avatar
๐ŸŒ
Diving

Luke Yao luk3ya0

๐ŸŒ
Diving
View GitHub Profile
@luk3ya0
luk3ya0 / github-ssh.md
Created July 17, 2023 02:08
GitHubใงsshใ‚’ไฝฟใ†.

ใคใ„ใงใซ่ค‡ๆ•ฐใฎGitHubใ”ใจใฎใƒžใƒซใƒ่จญๅฎšใ‚‚่กŒใ†.

ๅฐ‚็”จใƒ•ใ‚ฉใƒซใƒ€ใจ้ตใฎไฝœๆˆ

cd ~/.ssh
ssh-keygen -t rsa

่ณชๅ•ใฏEnter*3. โ€‹ โ€‹

GitHubใซkey็™ป้Œฒ

@luk3ya0
luk3ya0 / tint2-vertical-panel
Created July 14, 2023 11:59 — forked from discomplex/tint2-vertical-panel
TINT2 CONFIG FILE [Vertical]
# TINT2 CONFIG FILE [Vertical]
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Battery, Clock, Systray
rounded = 0
border_width = 0
border_sides = TBLR
@luk3ya0
luk3ya0 / add_intellij_launcer
Created July 8, 2023 10:13 — forked from rob-murray/add_intellij_launcer
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
@luk3ya0
luk3ya0 / Hyprland-Ubuntu.md
Created July 6, 2023 08:29 — forked from Vertecedoc4545/Hyprland-Ubuntu.md
Ubuntu 23.04 Build and Install instructions for Hyprland

Building on Ubuntu 23.04

You have 2 options, use the script descrived bellow or follow the instrutions

script in this gist if you want the source code

wget https://gist.githubusercontent.com/Vertecedoc4545/6e54487f07a1888b656b656c0cdd9764/raw/2c5e8ccb428fc331307e2f653cab88174c051310/build-ubuntu-23.sh
chmod +x build-ubuntu-23.sh
./build-ubuntu-23.sh
@luk3ya0
luk3ya0 / pyrightconfig.json
Created April 11, 2023 06:47
accelerate pylance and upright
{
"include": [
"."
],
"exclude": [
"**/node_modules",
"**/cdk.out",
"**/.pytest_cache",
"**/build",
"**/dist",
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names
@luk3ya0
luk3ya0 / mount-ntfs-disk1-osx.sh
Last active May 23, 2021 20:49
mount the ntfs on Mac
#!/bin/bash
disk_item=`mount | grep disk | grep -v disk1 | grep '(ntfs' | grep 'read-only' | head -1 | awk '{print $1}'`
disk_tmnt=`mount | grep disk | grep -v disk1 | grep '(ntfs' | grep 'read-only' | head -1 | awk '{print $3}'`
umount $disk_item
mkdir "$disk_tmnt"
mount_ntfs -o rw,nobrowse $disk_item "$disk_tmnt"
echo "mount the volume at mode w successfully: `mount | grep disk | grep -v disk1 | grep $disk_item`"
open $disk_tmnt
@luk3ya0
luk3ya0 / cd-dir-with-space.sh
Last active May 23, 2021 20:48
entry the directory named with fucking spaces
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
cur=`pwd`
for f in `ls`
do
cd "$cur/$f" && for f in {0..9} ; do if [ -e "$f.jpg" ]; then mv -- "$f.jpg" "0$f.jpg"; fi ; done