Skip to content

Instantly share code, notes, and snippets.

View DPS0340's full-sized avatar

Jiho Lee DPS0340

View GitHub Profile
@DPS0340
DPS0340 / install-open-webui-systemd-service.sh
Last active January 10, 2025 08:25
install open-webui systemd user service with micromamba
�"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
source ~/.zshrc
# See https://docs.openwebui.com/getting-started/quick-start/
micromamba create -n open-webui python=3.11
micromamba shell init --shell zsh --root-prefix=~/.local/share/mamba
source ~/.zshrc
micromamba activate open-webui
@DPS0340
DPS0340 / install.sh
Created February 3, 2023 16:40
install openssl 1.1.1 on ubuntu 22.04 arm64
# download binary openssl packages from Impish builds
wget http://ports.ubuntu.com/pool/main/o/openssl/openssl_1.1.1f-1ubuntu2_arm64.deb
wget http://ports.ubuntu.com/pool/main/o/openssl/libssl-dev_1.1.1f-1ubuntu2_arm64.deb
wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb
# install downloaded binary packages
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_arm64.deb
sudo dpkg -i libssl-dev_1.1.1f-1ubuntu2_arm64.deb
sudo dpkg -i openssl_1.1.1f-1ubuntu2_arm64.deb
@DPS0340
DPS0340 / run.sh
Created February 3, 2023 13:25
disable password auth on ssh server
sudo sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
sudo service ssh restart
sudo service sshd restart
@DPS0340
DPS0340 / init-discord-rpc.sh
Last active October 5, 2023 00:34
presence.nvim on WSL 2
#!/bin/bash
set -x
if pgrep -x "socat"
then
exit 1
fi
pkill socat
// ==UserScript==
// @name Inflearn Student
// @namespace https://www.inflearn.com
// @version 0.1
// @description Study Hard
// @author mirusu400
// @match https://www.inflearn.com/course/*/unit/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=inflearn.com
// @grant none
// ==/UserScript==
// Generated from http://json2ts.com
export interface Annotations {
'node.alpha.kubernetes.io/ttl': string;
'volumes.kubernetes.io/controller-managed-attach-detach': string;
}
export interface Labels {
'beta.kubernetes.io/arch': string;
'beta.kubernetes.io/instance-type': string;
@DPS0340
DPS0340 / nvidia-device-plugin.yml
Last active October 16, 2022 10:55
nvidia-device-plugin - customized for so1s
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@DPS0340
DPS0340 / bootstrap.sh
Last active October 11, 2022 17:56
eks bootstrap script - not mine, for analysis
#!/usr/bin/env bash
set -o pipefail
set -o nounset
set -o errexit
source /etc/profile.d/bootstrap.sh
err_report() {
echo "Exited with error on line $1"
#!/bin/bash
apt update -y
apt install -y sudo curl
curl -s -L https://nvidia.github.io/nvidia-container-runtime/gpgkey | \
sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-container-runtime/$distribution/nvidia-container-runtime.list | \
sudo tee /etc/apt/sources.list.d/nvidia-container-runtime.list
apt update -y
@DPS0340
DPS0340 / index.js
Last active April 13, 2022 16:41
Kakao SDK for yarn prefeching
import initKakaoSDK from './kakao.js';
import initKakaoMap from './map.js';
export { initKakaoSDK, initKakaoMap };