Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
sfdisk /dev/vda <<EOF
/dev/vda1: size=2G
/dev/vda2:
EOF
mkswap /dev/vda1
swapon /dev/vda1
Single quote:
`single quote'
Double quote:
``double quote''
Table with header:
[options="header"]
|===
@an9wer
an9wer / Dockerfile
Last active February 19, 2019 02:38
FROM alpine
LABEL maintainer.name="an9wer"
LABEL maintainer.email="an9wer@gmail.com"
SHELL ["/bin/sh", "-c"]
USER root:root
RUN apk update && apk upgrade
@an9wer
an9wer / emoji.py
Last active February 21, 2019 08:44
EMOJI_UNICODE = {
u':1st_place_medal:': u'\U0001F947',
u':2nd_place_medal:': u'\U0001F948',
u':3rd_place_medal:': u'\U0001F949',
u':AB_button_(blood_type):': u'\U0001F18E',
u':ATM_sign:': u'\U0001F3E7',
u':A_button_(blood_type):': u'\U0001F170',
u':Afghanistan:': u'\U0001F1E6\U0001F1EB',
u':Albania:': u'\U0001F1E6\U0001F1F1',
u':Algeria:': u'\U0001F1E9\U0001F1FF',
@an9wer
an9wer / 0x00-setup-jumpserver.md
Last active September 23, 2021 02:30
Setup jumpserver

Scripts to setup jumpserver in CentOS7.

Usage

After clone this repository, run the following command to deploy jumpserver:

bash setup.sh

Check log file if some errors happen when runing the command above: