Scripts to confgire a group of hosts on a LAN to use VXLAN over Wireguard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://chicagolug.org/news/2015-10-09-remotely-unlock-encrypted-server-with-dropbear.html | |
# Quit the Ubuntu graphical splash screen. This is necessary for cryptroot | |
# to work right. The server will fall back to a non-graphical unlock | |
# screen. | |
plymouth --quit | |
count=0 | |
# Looping gives us some control over the number of unlock attempts. | |
while ! ( ls /dev/mapper/ | grep root > /dev/null ); do | |
if [ $count -gt 0 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# update glibc to 2.17 for CentOS 6 | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm | |
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm | |
sudo rpm -Uvh glibc-2.17-55.el6.x86_64.rpm \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: [] | |
- hosts: all | |
gather_facts: True | |
tasks: | |
- name: check connection | |
ping: | |
- name: setup | |
setup: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -ne 3 ]; then | |
echo "usage: $0 <unix socket file> <host> <listen port>" | |
exit | |
fi | |
SOCK=$1 | |
HOST=$2 | |
PORT=$3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# verify your disk layout | |
lsblk -o NAME,FSTYPE,UUID | |
# NAME FSTYPE UUID | |
# sda | |
# ├─sda1 ntfs ECEAA4D4EAA49BF8 <- reserve partition | |
# ├─sda2 ntfs 9CD2C43CD2C41C80 <- windows | |
# ├─sda3 | |
# ├─sda5 ext4 5f9e05c1-ace9-45ee-a884-ed1df68bdc3e <- /boot partition | |
# ├─sda6 ext4 bc1a75df-3625-4c1f-b53a-8ecc725f0d23 | |
# └─sda7 btrfs d305a656-442f-4579-96cf-dadc964c0be2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Android 4.1+ | |
dependencies { | |
implementation 'com.squareup.okhttp3:okhttp:3.12.13' | |
implementation 'org.conscrypt:conscrypt-android:2.5.2' | |
} | |
// Android 5.0+ | |
dependencies { | |
implementation 'com.squareup.okhttp3:okhttp:4.10.0' | |
implementation 'org.conscrypt:conscrypt-android:2.5.2' |
https://sys-adm.in/security/850-ossec-otpravka-uvedomlenij-v-telegram.html
- Thêm đoạn cấu hình sau vào file config của ossec
/var/ossec/etc/ossec.conf
<ossec_config>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################ | |
############ FROM openproject/openproject:16 ################ | |
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################ | |
############ If you are runing a manual installation: ################ | |
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################ | |
############ also be sure to RESTART OpenProject after replacing the file. ################ | |
############ If using some other set up (eg docker-compose), read the comments on ################ | |
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Please follow this artical to allow registry deleation https://azizunsal.github.io/blog/post/delete-images-from-private-docker-registry/#override-the-registry-configuration | |
# Usage ./clean.docker.registry.sh -r registryUrl -u login -f stringFilter -t tagToKeep | |
SHORT=r:,u:,f:,k:,h | |
LONG=dockerRegistry:,user:,imagesFilter:,keepTag:,help | |
OPTS=$(getopt -a -n clean.docker.regisrty.sh --options $SHORT --longoptions $LONG -- "$@") | |
eval set -- "$OPTS" |