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
raw.githubusercontent.com | |
mirror1.malwaredomains.com | |
sysctl.org | |
zeustracker.abuse.ch | |
s3.amazonaws.com | |
hosts-file.net | |
heapanalytics.com | |
cdn4.userzoom.com | |
manager.userzoom.com | |
clients4.google.com |
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 json | |
import logging | |
import requests | |
class HipChatHandler(logging.Handler): | |
def __init__(self, auth_token, room_id, level=logging.INFO): | |
super(self.__class__, self).__init__(level) |
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 run \ | |
--label nginx \ | |
--label com.example.foo=bar \ | |
--label org.label-schema.vcs-url=https://github.com/nginxinc/docker-nginx \ | |
--label org.label-schema.vcs-ref=sample-ref \ | |
--name nginx -d -p 8081:80 nginx | |
docker run \ | |
--label portainer \ | |
--label com.example.bar=foo \ |
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
#!/bin/bash | |
RED='\033[0;31m' | |
ORANGE='\033[0;33m' | |
GREEN='\033[0;32m' | |
END='\033[0m' | |
CONTAINER_NAME="inventory-${RANDOM}" | |
SOURCE_IMAGE="${1}" | |
DESTINATION_IMAGE="${2}" |
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 csv | |
import numpy as np | |
version_lengths = [] | |
with open('packages.txt') as f: | |
for row in csv.reader(f): | |
split = row[0].split() | |
if len(split) == 3: | |
version_lengths.append(len(split[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
[root@yqsh9qvcfkdrwkx ~]# yum list installed | |
Loaded plugins: fastestmirror | |
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast | |
Determining fastest mirrors | |
Installed Packages | |
ModemManager-glib.x86_64 1.1.0-6.git20130913.el7 @anaconda | |
acl.x86_64 2.2.51-12.el7 @anaconda | |
aic94xx-firmware.noarch 30-6.el7 @anaconda | |
alsa-firmware.noarch 1.0.27-2.el7 @anaconda | |
alsa-lib.x86_64 1.0.27.2-3.el7 @anaconda |
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 ruby | |
require 'openssl' | |
puts "enter the password that you would like to hash:\n" | |
password = gets | |
password = password.chomp | |
salt = OpenSSL::Random.random_bytes(32) | |
iterations = 40_000 |