Skip to content

Instantly share code, notes, and snippets.

View lcnja's full-sized avatar
💭
I may be slow to respond.

Kim Ko lcnja

💭
I may be slow to respond.
View GitHub Profile

slurm.conf

修正明显配置错误

建议修正当前slurm.conf的一些和常规用法差别较大的配置,建议逐步尝试把这些用法修正。这些配置修改对SLURM用法没有影响,可以在线进行。若发生异常,还原slurm.conf配置,重启slurm服务即可。

更正节点列表写法

@rafi
rafi / .tmux.conf
Created May 17, 2016 11:12
Sensible tmux config
set-option -g set-titles on
set-option -g set-titles-string '#T #W tmux{#S}:#I.#P'
set-window-option -g automatic-rename on
set-option -g history-limit 6000
set-option -s escape-time 0
set-option -g display-time 4000
set-option -g repeat-time 300
set-window-option -g aggressive-resize on
set-option -g base-index 1
set-window-option -g pane-base-index 1
@ryerh
ryerh / tmux-cheatsheet.markdown
Last active October 30, 2024 08:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表 & 简明教程

注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。

Tmux 快捷键 & 速查表 & 简明教程

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

@jpillora
jpillora / sshd.go
Last active August 21, 2024 05:05
Go SSH server complete example - Read more here https://blog.gopheracademy.com/go-and-ssh/
// A small SSH daemon providing bash sessions
//
// Server:
// cd my/new/dir/
// #generate server keypair
// ssh-keygen -t rsa
// go get -v .
// go run sshd.go
//
// Client:
@reiki4040
reiki4040 / signal.go
Created October 2, 2014 14:38
signal handling example for golang
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
)
func main() {
@keithchambers
keithchambers / build-centos7-docker-image.sh
Last active December 22, 2021 23:59
Build a CentOS 7 docker image.
#!/bin/bash -e
DIST="centos7"
TAG="$(date +%Y%m%d)"
IMG_DIR="${PWD}/buildroot-${DIST}"
REPO_DIR="${IMG_DIR}/etc/yum.repos.d"
RPMS=(
bind-utils
bash
@jirutka
jirutka / howto-gentoo.md
Last active March 16, 2021 18:14
Configuration of mdev (minimalistic Device Manager from Busybox) for a server system, where udev is really not necessary.

How to replace udev with mdev on Gentoo

  1. Ensure that you haven’t installed any package that needs udev:

     equery depends udev
    
  2. Disable USE udev in /etc/portage/make.conf.

  3. Enable USE mdev for busybox (and disable pam, it supposedly doesn’t work with static well):

@robinsmidsrod
robinsmidsrod / _INSTALL.md
Last active November 7, 2024 12:23
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup