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
# A simple BoxStarter script for use with http://boxstarter.org/WebLauncher | |
# Updates a Windows machine and installs a range of developer tools | |
# Show more info for files in Explorer | |
Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
# Default to the desktop rather than application launcher | |
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
# Allow running PowerShell scripts |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
~/Development/Work/new_cookbooks/god on master with 2.1.1 → berks upload god | |
E, [2014-05-01T15:08:37.548630 #27880] ERROR -- : Ridley::Errors::HTTPBadRequest: {"error":["Invalid element in array value of 'files'."]} | |
E, [2014-05-01T15:08:37.548762 #27880] ERROR -- : /Users/Derek/Development/Work/new_cookbooks/god/vendor/bundle/gems/ridley-3.1.0/lib/ridley/middleware/chef_response.rb:24:in `on_complete' | |
/Users/Derek/Development/Work/new_cookbooks/god/vendor/bundle/gems/faraday-0.9.0/lib/faraday/response.rb:9:in `block in call' | |
/Users/Derek/Development/Work/new_cookbooks/god/vendor/bundle/gems/faraday-0.9.0/lib/faraday/response.rb:57:in `on_complete' | |
/Users/Derek/Development/Work/new_cookbooks/god/vendor/bundle/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call' | |
/Users/Derek/Development/Work/new_cookbooks/god/vendor/bundle/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call' | |
/Users/Derek/Development/Work/new_cookbooks/god/vendor/bundle/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call' | |
/Users/Derek/Deve |
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
b knife ssh '...' 'sudo service lumberjack stop' | |
b knife ssh '...' 'sudo apt-get remove --purge -y lumberjack' | |
b knife ssh '...' 'sudo rm /etc/lumberjack.conf' | |
b knife ssh '...' 'sudo chef-client' |
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
using System.Net; | |
public static class FileUploader | |
{ | |
public static void Main() | |
{ | |
const string address = "(enter address to post to here)"; | |
const string fileName = "C:\\Full\\Path\\To\\File.csv" | |
// Upload the file to the URI. UploadFile() implicitly |
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
use <db_name> | |
alter user <user_name> | |
with login = <user_name> |
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
-- Removes all objects (in the correct order) added to | |
-- SQL Server by the stock ASP.NET membership provider | |
drop table aspnet_PersonalizationAllUsers | |
drop table aspnet_PersonalizationPerUser | |
drop table aspnet_Profile | |
drop table aspnet_SchemaVersions | |
drop table aspnet_UsersInRoles | |
drop table aspnet_WebEvent_Events | |
drop table aspnet_Paths | |
drop table aspnet_Membership |
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 text = "foobar"; | |
var bytes = Encoding.Unicode.GetBytes(text); | |
var base64String = Convert.ToBase64String(bytes); | |
var sameBytes = Convert.FromBase64String(base64String); | |
var sameText = Encoding.Unicode.GetString(bytes); |
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
<link rel="icon" href="/appname/path/to/favicon.ico" type="image/vnd.microsoft.icon" /> | |
<link rel="shortcut icon" href="/appname/path/to/favicon.ico" /> <!-- IE --> |