Scripts to setup jumpserver in CentOS7.
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:
import requests | |
from bs4 import BeautifulSoup | |
# We've now imported the two packages that will do the heavy lifting | |
# for us, reqeusts and BeautifulSoup | |
# Let's put the URL of the page we want to scrape in a variable | |
# so that our code down below can be a little cleaner | |
url_to_scrape = 'http://apps2.polkcountyiowa.gov/inmatesontheweb/' |
#!/usr/bin/env python3 | |
# pproc | |
# Runs multiple subprocesses in parallel, serializing stdout. | |
# | |
# Author: Benjamin Bengfort <[email protected]> | |
# Created: Wed Jun 14 15:20:05 2017 -0400 | |
# | |
# Copyright (C) 2017 Bengfort.com | |
# For license information, see LICENSE.txt | |
# |
#!/bin/bash | |
## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT | |
# Quit on first error | |
set -e | |
# Temporary directory for the build | |
TMP="/var/tmp/ubuntu-build" |
#! /usr/bin/env python | |
import threading | |
import subprocess | |
import traceback | |
import shlex | |
class Command(object): | |
""" | |
Enables to run subprocess commands in a different thread with TIMEOUT option. |
【LinuxでもCrystalDiskMarkぽいディスクベンチマークしたい】に触発されてCrystalDiskMarkの各バージョンのデフォルト値でのベンチマークパラメータをfioで再現してみました。 是非お使いください。
コマンド一例:
#!/bin/bash | |
make_ipxe() { | |
pushd "$HOME/src/forked/ipxe/src" >/dev/null && | |
make CONFIG=chain bin/undionly.kpxe bin/ipxe.lkrn bin/ipxe.pxe bin/ipxe.usb && | |
sudo install -v -m 0644 -g root -o root bin/undionly.kpxe /srv/salt/tftpd/files/undionly.kpxe && | |
sudo install -v -m 0644 -g root -o root bin/ipxe.lkrn /srv/salt/tftpd/files/ipxe.lkrn && | |
sudo install -v -m 0644 -g root -o root bin/ipxe.pxe /srv/salt/tftpd/files/ipxe.pxe && | |
sudo salt-call -l quiet state.single file.recurse name=/srv/tftp source=salt://tftpd/files dir_mode=755 file_mode=644 && | |
popd >/dev/null |
#!/usr/bin/env python3 | |
import argparse | |
import logging | |
from logging.config import dictConfig | |
import sys | |
__version__ = "0.2.0" | |
__author__ = "Tux Penguin <[email protected]>" |