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
| $ComputerName = "New Name" | |
| Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "Hostname" | |
| Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "NV Hostname" | |
| Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Computername\Computername" -name "Computername" -value $ComputerName | |
| Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Computername\ActiveComputername" -name "Computername" -value $ComputerName | |
| Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "Hostname" -value $ComputerName | |
| Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "NV Hostname" -value $ComputerName | |
| Set-ItemProperty -path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -name "AltDefaultDomainName" -value $ComputerName |
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
| Function ConvertTo-KeyValue($hashObject) { | |
| $hashObject.GetEnumerator() | %{ $_.Key + "=" + $_.Value } | |
| } | |
| Function ConvertTo-Hash($text) { | |
| if($text -eq $null) { | |
| $text = $input | |
| } | |
| $result = @{} |
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
| sudo rm /usr/local/mysql | |
| sudo rm -rf /usr/local/mysql* | |
| sudo rm -rf /Library/StartupItems/MySQLCOM | |
| sudo rm -rf /Library/PreferencePanes/My* | |
| sudo rm -rf /Library/Receipts/mysql* | |
| sudo rm -rf /Library/Receipts/MySQL* |
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
| desc "Run Unit Test" | |
| task :test do | |
| sh "mocha -r \"coffee-script\" -R spec -G -c test/*.coffee" | |
| end | |
| desc "Start development environment" | |
| task :dev => ["dev:mate", "dev:test"] do | |
| end | |
| desc "Start development environment" |
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
| module MultiSchema | |
| module Behaviors | |
| @@disable_message = false | |
| def disable_message=(val) | |
| @@disable_message = val | |
| end | |
| def disable_message | |
| @@disable_message |
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
| javascript:var%20b=document.body;if(b){void(z=document.createElement('script'));void(z.type='text/javascript');void(z.src='http://code.jquery.com/jquery-1.7.2.min.js');void(b.appendChild(z));}else{} |
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
| module CachedAttrs | |
| def self.build_cache_variable_name(attr_name) | |
| "@_cached_#{attr_name}".to_sym | |
| end | |
| def self.extended(mod) | |
| mod.send(:include, CachedAttrs::InstanceMethods) | |
| end | |
| def cached_attr(attr_name, &block) |
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
| body { | |
| position: relative; | |
| width:500px; | |
| height:200px; | |
| } | |
| .notification { | |
| width: 360px; | |
| height: 142px; | |
| overflow: hidden; |
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
| body { | |
| white-space: pre; | |
| font-family: consolas; | |
| color: white; | |
| background: black; | |
| } | |
| .property { | |
| color: orange; | |
| font-weight: bold; |
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
| // Script to add empty rows in activity | |
| (function($){ | |
| function addRows(moreRow) { | |
| var $addRow = $(containerId+' [alt=Addrow_button]:first') | |
| var $spinner = $(containerId+' img[alt=Ajax-loader]').parent() | |
| var totalRows = $(containerId + ' td select[id$=category]').length + moreRow; | |
| function needAddRow(){ | |
| var result = $(containerId + ' td select[id$=category]').length < totalRows |
OlderNewer