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
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: flannel | |
namespace: kube-system | |
--- | |
kind: ConfigMap | |
apiVersion: v1 | |
metadata: |
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
# Suspend process: | |
Ctrl + z | |
# Move process to foreground: | |
fg | |
# Generate random hex number where n is number of characters: | |
openssl rand -hex n | |
# Execute commands from a file in the current shell: |
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
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "Snappy.box" | |
config.vm.box_url = "https://dl.dropboxusercontent.com/s/cd9cfhrmraif1op/Snappy.box" | |
config.vm.synced_folder '.', '/vagrant', disabled: true | |
config.ssh.username = "ubuntu" | |
config.ssh.password = "ubuntu" | |
config.vm.provider "virtualbox" do |v| |
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
#!/usr/bin/env python | |
__author__ = 'Alen Komljen' | |
import urllib.request, re, os.path, os | |
from socket import timeout | |
server_info = open("D:\server_info.txt", "w") | |
server_info.write("url, server_name, server_version, server_os \ | |
, server_misc, poweredby_engine, poweredby_version \ |
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
#!/usr/bin/env python | |
__author__ = 'Alen Komljen' | |
import urllib.request, re, time, argparse, os, platform | |
from socket import timeout | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-r', action='store', dest='results_number', required=True, type=int, \ | |
help='number of google results to check') |
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
var page = require('webpage').create(), | |
system = require('system'), | |
address; | |
address = system.args[1]; | |
page.onResourceRequested = function (requestData, request) { | |
if ((/ga.js/gi).test(requestData['url'])) { | |
console.log('Skiping: ' + requestData['url']); | |
request.abort(); |