This file contains 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
docker rm -f $(docker ps -qa) | |
docker rmi -f $(docker images -q) | |
docker volume rm $(docker volume ls -q) | |
for mount in $(mount | grep tmpfs | grep '/var/lib/kubelet' | awk '{ print $3 }') /var/lib/kubelet /var/lib/rancher; do umount $mount; done | |
rm -rf /etc/ceph \ | |
/etc/cni \ | |
/etc/kubernetes \ | |
/opt/cni \ |
This file contains 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
import random | |
charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*(-_=+)' | |
secure_random = random.SystemRandom() | |
print(''.join(secure_random.sample(charset, 50))) |
This file contains 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: jenkins | |
roles: | |
- role: ansiblebit.oracle-java | |
oracle_java_set_as_default: yes | |
tasks: | |
- name: Ensure Jenkins Repository is Installed | |
yum_repository: | |
name: jenkins | |
state: present |
This file contains 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
server { | |
listen 80; | |
server_name <hostname>; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443; | |
server_name <hostname>; |
This file contains 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
# /usr/share/applications/jar-launcher.desktop | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Type=Application | |
Exec=java -jar %f | |
Icon=java | |
Name=jar-launcher | |
Comment=Launch a jar file |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Drawing; | |
using System.IO; | |
using System.Drawing.Imaging; | |
private static void MergeTiffs(List<Bitmap> bmps, string filename) | |
{ | |
// Save first bitmap to memory as TIFF |
This file contains 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
#!/usr/bin/env python | |
import sys, binascii | |
y = "your_password"; | |
# If they didn't provide a password on the command-line, use the hard coded one. | |
if len(sys.argv) > 1: | |
y = str(sys.argv[1]) |
This file contains 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
server { | |
listen 80; | |
listen [::]:80; | |
root <PATH_TO_DOCUMENT_ROOT>/html; | |
index index.php index.html index.htm; | |
server_name www.<DOMAIN_NAME> <DOMAIN_NAME>; | |
location / { |
This file contains 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
server { | |
listen 80 ; | |
listen [::]:80; | |
server_name <HOSTNAME>.<DOMAINNAME>; | |
# Force redirection to secure site | |
return 301 https://$server_name$request_uri; | |
} |
This file contains 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
server { | |
listen 80; | |
listen [::]:80; | |
root <PATH_TO_DOCUMENT_ROOL>/html; | |
index index.php index.html index.htm; | |
server_name <HOSTNAME>.<DOMAIN_NAME>; | |
location / { |
NewerOlder