Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
python3 -m venv .venv
source .venv/bin/activate
pip3 install --upgrade pip wheel setuptools
pip3 install --index-url https://download.pytorch.org/whl/cu121 \
torch \
torchvision \
torchaudio
@yspkm
yspkm / Dockerfile
Last active January 18, 2024 06:52
NAS 관련 문서
# Dockerfile
#FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-runtime
FROM pytorch/pytorch:2.1.2-cuda12.1-cudnn8-runtime
# Remove any third-party apt sources to avoid issues with expiring keys.
RUN rm -f /etc/apt/sources.list.d/*.list
# Install some basic utilities & python prerequisites
RUN apt-get update -y && apt-get install -y --no-install-recommends\
wget \
@yspkm
yspkm / install.md
Created January 17, 2024 08:00
How to install Julia

Juila 설치 방법

sudo snap install julia --classic

Juila 실행

(base) yosepkim@sony:~$ julia
               _
 _ _ _(_)_ | Documentation: https://docs.julialang.org
@yspkm
yspkm / cdnjs
Created December 15, 2023 08:46
CDNJS
https://cdnjs.com/libraries/vue
https://cdnjs.com/libraries/tailwindcss
https://cdnjs.com/libraries/bokeh
@yspkm
yspkm / run.sh
Created December 4, 2023 02:58
kazam mp4 to window11
#!/bin/bash
files=('data_extraction' 'installation' 'simulation_0_setup' 'simulation_1_rungui' 'simulation_2_runcli')
for file in "${files[@]}"; do
ffmpeg -y \
-i "${file}.mp4" \
-c:v libx264 \
-c:a aac -strict experimental -tune fastdecode -pix_fmt yuv420p \
-b:a 192k -ar 48000 "../${file}.mp4"
@yspkm
yspkm / README.md
Created December 2, 2023 07:56
Omnetpp

README for Omnetpp Installation

Overview

This README provides detailed instructions for installing Omnetpp and its prerequisites on a Linux system.

Prerequisites

  • Linux Operating System
  • Internet connection
  • Sufficient disk space
@yspkm
yspkm / README.md
Created November 24, 2023 12:20
How to use Doxygen

How to Use Doxygen to Generate Documentation for C++ Code

Introduction

Doxygen is a documentation generator for various programming languages, including C++. This guide will show you how to use Doxygen to generate documentation for a C++ project in a structured and readable format.

Step 1: Install Doxygen

Ensure that Doxygen is installed on your system. You can download it from the official website.

Step 2: Create a Doxygen Configuration File

Navigate to your project's root directory in your command line interface and run the following command to create a default configuration file:

@yspkm
yspkm / init.sh
Created November 18, 2023 15:04
Docker사용 시 시작 스크립트
#!/bin/bash
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
# Add the repository to Apt sources:
@yspkm
yspkm / init.sh
Created November 10, 2023 04:50
Dot 파일 컴파일
# 설치 방법
snap install graphviz
# 그래프 이미지 생성 방법
dot -Tpng -Gdpi=300 <dot 파일명> -o <이미지 파일명> # png
dot -Tjpg -Gdpi=300 <dot 파일명> -o <이미지 파일명> # jpg
dot -Tsvg <dot 파일명> -o <이미지 파일명> # svg
@yspkm
yspkm / Ubuntu Zoom Guide.md
Created October 23, 2023 07:21
우분투 Zoom 설치

Installing Zoom Using Terminal

  1. Download the Zoom DEB installation file:

    wget https://zoom.us/client/5.16.2.8828/zoom_amd64.deb
  2. Install Zoom using the downloaded DEB file:

sudo apt install ./zoom_amd64.deb -y