sudo apt-get install python3-pip
sudo pip3 install virtualenv
| var gulp = require("gulp"); | |
| var sass = require("gulp-sass"); | |
| var filter = require('gulp-filter'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var browserSync = require("browser-sync"); | |
| var reload = browserSync.reload; | |
| var shell = require('gulp-shell'); | |
| // sass task | |
| gulp.task('sass', function () { |
This is a script to export bookmarks from the web browser Google Chrome to a users home drive in a Windows environment with clients and domain controllers. Most of the script comes from this article
| #!/usr/bin/env ruby | |
| require 'httparty' | |
| FILELIST = [ | |
| '/dropbox.zip', | |
| '/robots.txt', # Not from the original list - this serves as a sanity check as it usually exists | |
| '/css/business-frontpage.css', | |
| '/newphase.zip', | |
| '/Doc.zip', | |
| '/wp-content.zip', |
| $Hso = New-Object Net.HttpListener | |
| $Hso.Prefixes.Add("http://+:8000/") | |
| $Hso.Start() | |
| While ($Hso.IsListening) { | |
| $HC = $Hso.GetContext() | |
| $HRes = $HC.Response | |
| $HRes.Headers.Add("Content-Type","text/plain") | |
| $Buf = [Text.Encoding]::UTF8.GetBytes((GC (Join-Path $Pwd ($HC.Request).RawUrl))) | |
| $HRes.ContentLength64 = $Buf.Length | |
| $HRes.OutputStream.Write($Buf,0,$Buf.Length) |
| #/usr/bin/bash | |
| # strings to look for in our file | |
| # Note: you could just parse the whole file. But if you put in a bad password your IP | |
| # could end up on the bad guy list | |
| declare -a badstrings=("Failed password for invalid user" | |
| "input_userauth_request: invalid user" | |
| "pam_unix(sshd:auth): check pass; user unknown" | |
| "input_userauth_request: invalid user" | |
| "does not map back to the address" | |
| "pam_unix(sshd:auth): authentication failure" |
| FROM ubuntu:latest | |
| RUN apt-get update \ | |
| && apt-get install -y python3-pip python3-dev \ | |
| && cd /usr/local/bin \ | |
| && ln -s /usr/bin/python3 python \ | |
| && pip3 install --upgrade pip | |
| # INSTALL DEPENDENCIES | |
| RUN apt-get install -y curl unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-4 |