(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| $OldSource = 'MySQLServer-01' | |
| $NewSource = 'MySQLServer-02' | |
| $URL = 'http://ReportServerName/ReportServer/ReportService2010.asmx?wsdl' | |
| $URI = New-Object System.Uri($URL) | |
| $SSRS = New-WebServiceProxy -Uri $URI -UseDefaultCredential | |
| $DataSources = ($SSRS.ListChildren("/data sources", $true)).path | |
| ForEach($Source in $DataSources){ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #requires -version 2.0 | |
| <# | |
| .SYNOPSIS | |
| Deploy SSRS project to a Reporting server. | |
| .DESCRIPTION | |
| The Deploy-SSRSProject script installs an SSRS project(DataSource, DataSet, Report) file to a Reporting Server using ReportService20XX management endpoint. | |
| http://technet.microsoft.com/en-us/library/ee640743(v=sql.105).aspx | |
| 1. Get datasource, report from the .rptproj file | |
| 2. Get report list from the $ReportListFile file |
| import com.gitblit.GitBlit | |
| import com.gitblit.Keys | |
| import com.gitblit.models.RepositoryModel | |
| import com.gitblit.models.TeamModel | |
| import com.gitblit.models.UserModel | |
| import com.gitblit.utils.JGitUtils | |
| import com.gitblit.utils.StringUtils | |
| import java.text.SimpleDateFormat | |
| import org.eclipse.jgit.api.CloneCommand | |
| import org.eclipse.jgit.api.Git |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| using System; | |
| using System.Collections.Generic; | |
| using System.Configuration; | |
| using System.Data.SqlServerCe; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Text; | |
| using System.Threading; |
You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.
| function mycd() | |
| { | |
| #if this directory is writable then write to directory-based history file | |
| #otherwise write history in the usual home-based history file | |
| tmpDir=$PWD | |
| echo "#"`date '+%s'` >> $HISTFILE | |
| echo $USER' has exited '$PWD' for '$@ >> $HISTFILE | |
| builtin cd "$@" # do actual cd | |
| if [ -w $PWD ]; then export HISTFILE="$PWD/.dir_bash_history"; touch $HISTFILE; chmod --silent 777 $HISTFILE; | |
| else export HISTFILE="$HOME/.bash_history"; |