Skip to content

Instantly share code, notes, and snippets.

@nichham2
nichham2 / Sources.list--
Last active June 2, 2024 16:27
This is a copy of the sources.list file for ubuntu-22.04-lts Server arm64 Also sources.list-ubuntu-22.04-lts Server amd64
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
@ihoneymon
ihoneymon / how-to-write-by-markdown.md
Last active June 2, 2024 16:19
마크다운(Markdown) 사용법

[공통] 마크다운 markdown 작성법

영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^

아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.

1. 마크다운에 관하여

@bcfurtado
bcfurtado / update_repos.sh
Last active June 2, 2024 16:11
A simple bash script to update all my local repos
#!/bin/bash
echo 'Updating repos'
for $project in `find . -type d -depth 1`
do
echo 'Current repo: ' $project
cd $project
git pull
cd ..
done
@wojteklu
wojteklu / clean_code.md
Last active June 2, 2024 16:09
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@leonardo-spy
leonardo-spy / GUIWSL.md
Last active June 2, 2024 16:00
Add GUI in Ubuntu WSL

Add Kali Repo:

$ curl https://raw.githubusercontent.com/expandpi/kali-repo/main/kali-repo.sh --output kali-repo.sh

$ chmod +x ./kali-repo.sh

$ sudo ./kali-repo.sh

then add /mnt to PRUNEPATHS in /etc/updatedb.conf in order to avoid indexing Windows files.

@LondheShubham153
LondheShubham153 / git-commands.md
Last active June 2, 2024 15:57
This Gist contains all the useful Git Commands

Git Commands

This Gist contains all the useful commands for Git

Build Status

Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.

If you are a developer and want to keep every version of your code/project (which you would most certainly want to), a Version Control System (VCS) is a very wise thing to use.

  • All the commands used for Git
@ak--47
ak--47 / productSchool.js
Last active June 2, 2024 15:53
💾 data loader for the Product Analytics Certification
//PUT YOUR MIXPANEL TOKEN AND SECRET BELOW:
const credentials = {
"token": "your-mixpanel-token-here",
"secret": "your-mixpanel-secret-here"
}
/*
@vegard
vegard / kernel-dev.md
Last active June 2, 2024 15:46
Getting started with Linux kernel development

Getting started with Linux kernel development

Prerequisites

The Linux kernel is written in C, so you should have at least a basic understanding of C before diving into kernel work. You don't need expert level C knowledge, since you can always pick some things up underway, but it certainly helps to know the language and to have written some userspace C programs already.

It will also help to be a Linux user. If you have never used Linux before, it's probably a good idea to download a distro and get comfortable with it before you start doing kernel work.

Lastly, knowing git is not actually required, but can really help you (since you can dig through changelogs and search for information you'll need). At a minimum you should probably be able to clone the git repository to a local directory.

@aidos-dev
aidos-dev / README.md
Last active June 2, 2024 15:39
How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

Step 1.

Open your terminal.

In the root directory run the command:

sudo nano /etc/bluetooth/main.conf
@matthewdowns
matthewdowns / docker-automatic-media-server.md
Last active June 2, 2024 15:19
Docker Automatic Media Server - Setup Guide

Introduction

This guide is focused on building a completely autonomous request-based media server using individual docker containers.

Most of the images we will be using are maintiained by linuxserver.io. They maintain many up-to-date versions of the most popular tools used for media servers.

Our full stack includes:

  • Plex Media Server - Plex Media Server is the back-end component to Plex, a self-hosted media platform.
  • Transmission - A lightweight torrent downloading client.