Skip to content

Instantly share code, notes, and snippets.

View linushsao's full-sized avatar

LinusHsao linushsao

  • taiwan
View GitHub Profile
@linushsao
linushsao / Set up GitHub push with SSH keys.md
Created December 11, 2023 20:57 — forked from xirixiz/Set up GitHub push with SSH keys.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "[email protected]"
@linushsao
linushsao / Add_Existing_Project_To_Git.md
Created November 13, 2022 21:21 — forked from alexpchin/Add_Existing_Project_To_Git.md
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init
@linushsao
linushsao / install_crux.sh
Created September 18, 2022 05:07 — forked from lainiwa/install_crux.sh
CRUX linux installation commands
# wget 'https://mirrors.slackware.com/slackware/slackware64-current/kernels/huge.s/bzImage'
# # find / -name 'snd-hwdep.ko' 2>/dev/null
# /usr/src/linux-4.14.40/sound/core/snd-hwdep.ko
# /lib/modules/4.14.40/kernel/sound/core/snd-hwdep.ko
# -*- coding: utf-8 -*-
import sys, os, time
import ctypes, comtypes, pythoncom
from ctypes import *
from comtypes.client import GetModule, CreateObject
from comtypes.client import ShowEvents, GetEvents, PumpEvents
import queue as queue
q = queue.Queue ()