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
SAVE: | |
icacls '\\bobst.lib\Data\Personal\Users\bs122\My Documents\*' /save \\bobst.lib\Data\Personal\Users\bs122\Desktop\permissions.txt /t /c | |
RESTORE: | |
icacls '\\bobst.lib\Data\Personal\Users\bs122\My Documents\' /restore \\bobst.lib\Data\Personal\Users\bs122\Desktop\permissions.txt |
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
Get-ChildItem -recurse | Select-Object Mode, FullName, CreationTime, LastWriteTime, LastAccessTime > \\bobst.lib\Data\Personal\Users\bs122\Desktop\output.txt |
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
git init | |
git add -A | |
git commit -m "initial creation" | |
git remote add origin https://github.com/bswinnerton/[repository].git | |
git pull https://github.com/bswinnerton/[repository].git master | |
git push origin master |
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
" use syntax highlighting | |
syntax on | |
" make backspace do what it should | |
set backspace=eol,start,indent | |
" set tab = 4 spaces | |
set expandtab | |
set sw=4 | |
set sts=4 |
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
telnet <host> 9100 | |
@PJL RDYMSG DISPLAY="h@cked" |
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
# Suppress startup message | |
startup_message off | |
# Fix vim veritcal sizing issues inside screen | |
altscreen on | |
# Make top window cd into folder | |
chdir /var/www/WEBROOT/ | |
# Start screen on top |
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
// Javascript to change color of expiration date. | |
// Usage: wrap dates in YYYY-MM-DD format with <span class="expiredDate"></span> | |
window.onload = function() { | |
var spans = document.getElementsByTagName('span'); | |
var l = spans.length; | |
for (var i = 0; i < l; i++) { | |
var spanClass = spans[i].getAttribute("class"); | |
if ( spanClass === "expiredDate" ) { | |
var definedDate = spans[i].innerHTML.split("-"); | |
var expiredDate = new Date(definedDate[0], definedDate[1] - 1, definedDate[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
require 'faraday' | |
require 'nokogiri' | |
url = "http://reddit.com/r/pics" | |
request = Faraday.get(url) | |
doc = Nokogiri::HTML.parse(request.body) | |
doc.css("img").map do |x| | |
puts "<img src=\"" + x.attributes["src"] + "\" width=\"" + x.attributes["width"].to_s + "\" height=\"" + x.attributes["height"].to_s + "\">" | |
end |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>babblings test</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="css/bootstrap.css" rel="stylesheet" media="screen"> | |
<link href="css/bootstrap-responsive.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="container"> |
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
/*! | |
* Bootstrap v2.2.2 | |
* | |
* Copyright 2012 Twitter, Inc | |
* Licensed under the Apache License v2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Designed and built with all the love in the world @twitter by @mdo and @fat. | |
*/ |
OlderNewer