Skip to content

Instantly share code, notes, and snippets.

View kaangiray26's full-sized avatar

Kaan Giray Buzluk kaangiray26

View GitHub Profile
@kaangiray26
kaangiray26 / avr_vscode.md
Last active September 27, 2023 06:05
AVR in Arch Linux with Visual Studio Code

Configuring your Arch Linux system to work on AVR with Visual Studio Code

Install vscode

sudo pacman -S code

Install toolchain and GNU compiler

sudo pacman -S avr-gcc
@kaangiray26
kaangiray26 / win_ssh.md
Last active October 25, 2021 14:56
Creating SSH Keys for Git on Windows

Create SSH keys

ssh-keygen -t ed25519 -C "<github/gitlab email address>"

Copy the content of the public key and add to the git repo

Found usually under the following link:

Create your ssh config

@kaangiray26
kaangiray26 / venv.md
Last active November 10, 2021 13:04
Python Virtual Environments

Create the virtual environment

The parameter env indicates the name of the environment, you can use any name you like instead of using env.

python3 -m venv env

Activate the virtual environment

source env/bin/activate
@kaangiray26
kaangiray26 / gitlab-runner.md
Created March 16, 2022 18:52
Installing and Registering Gitlab Runner on Docker

Use local system volume mounts to start the Runner container

docker run -d --name gitlab-runner --restart always \
  -v /srv/gitlab-runner/config:/etc/gitlab-runner \
  -v /var/run/docker.sock:/var/run/docker.sock \
  gitlab/gitlab-runner:latest

To register a runner using a Docker container:

@kaangiray26
kaangiray26 / nvidia.md
Last active November 29, 2023 17:35
Arch Linux - Nvidia Discrete Graphics Card

Enabling the discrete graphics card

Install the following packages:

sudo pacman -S nvidia nvidia-prime nvidia-utils lib32-nvidia-utils mesa-utils lib32-mesa-utils nvidia-settings

Remove the following from HOOKS in /etc/mkinitcpio.conf:

kms
@kaangiray26
kaangiray26 / packages.md
Last active November 30, 2023 02:00
Arch Linux packages to install after finishing the Installation guide

Install via pacman

sudo nano iw iwd networkmanager dhcpcd macchanger wpa-supplicant wireless_tools gnome gnome-shell gnome-tweaks gnome-bluetooth dconf-editor bluez bluez-utils intel-ucode firefox thunderbird qbittorrent gedit keepassxc git zsh grub efibootmgr ntfs-3g os-prober ufw cups usbutils pipewire wireplumber pipewire-audio pipewire-alsa pipewire-pulse pipewire-jack pavucontrol power-profiles-daemon wget nodejs npm lsof openvpn wireguard mold base-devel go cmake ninja flatpak inkscape gpick
@kaangiray26
kaangiray26 / nmcli-peap.md
Last active January 21, 2024 16:48
Connecting to a PEAP Wi-Fi Network via nmcli

Here's an example one line command to add a wifi network:

nmcli con add type wifi ifname wlan0 con-name "<con-name>" mode "infrastructure" wifi.ssid "<ssid>" wifi-sec.auth-alg open wifi-sec.key-mgmt wpa-eap 802-1x.domain-suffix-match "<domain>" 802-1x.eap peap 802-1x.identity "<identity>" 802-1x.password "<password>" 802-1x.phase2-auth mschapv2

Or just use the following shell script after you change the credentials:

#!/bin/bash
name="connection_name"
ssid="network"
@kaangiray26
kaangiray26 / github_pages.md
Last active January 30, 2024 14:14
Deploying Vue.js to Github Pages

How to deploy your Vue.js app to GitHub Pages

Put the following into your vue.config.js:

module.exports = { publicPath: '/REPO/' }

Put the following into your vite.config.js:

...

Berkay için Linux Guide

Paket kurma (official repository)

sudo pacman -S <package_name>

Paket kurma (AUR)

yay -S 
@kaangiray26
kaangiray26 / gh-copilot.md
Last active August 9, 2024 09:34
Using GitHub Copilot in the CLI

Installation

Make sure you're logged in.

gh auth login

Then, you can install the extension via:

gh extension install github/gh-copilot