Skip to content

Instantly share code, notes, and snippets.

View r4hulp's full-sized avatar
🎯
Focusing

Rahul P r4hulp

🎯
Focusing
View GitHub Profile
$ ./svc.sh start
starting vsts.agent.rahulpp.Rahuls-Macbook-Pro
status vsts.agent.rahulpp.Rahuls-Macbook-Pro:
/Users/rahulpatil/Library/LaunchAgents/vsts.agent.rahulpp.Rahuls-Macbook-Pro.plist
Started:
25324 0 vsts.agent.rahulpp.Rahuls-Macbook-Pro:
$ ./svc.sh stop
stopping vsts.agent.rahulpp.Rahuls-Macbook-Pro
status vsts.agent.rahulpp.Rahuls-Macbook-Pro:
/Users/rahulpatil/Library/LaunchAgents/vsts.agent.rahulpp.Rahuls-Macbook-Pro.plist
Stopped
$ ./svc.sh status
status vsts.agent.rahulpp.Rahuls-Macbook-Pro:
/Users/rahulpatil/Library/LaunchAgents/vsts.agent.rahulpp.Rahuls-Macbook-Pro.plist
Started:
25324 0 vsts.agent.rahulpp.Rahuls-Macbook-Pro
@r4hulp
r4hulp / install-ember-windows-global.sh
Last active July 30, 2016 07:59
install-ember-windows-global.sh
npm install ember-cli-windows -g
@r4hulp
r4hulp / ng-serve-before-optimization.sh
Created July 30, 2016 08:03
ng-serve-before-optimization
D:\Github-Personal\Stackr\stackr>ng serve
(node:3988) fs: re-evaluating native module sources is not supported. If you are
using the graceful-fs module, please update it to a more recent version.
Livereload server on http://localhost:49158
Serving on http://localhost:4200/
Build successful - 25338ms.
Slowest Trees | Total
@r4hulp
r4hulp / after-optimization-ng-serve.sh
Created July 30, 2016 08:11
after-optimization-ng-serve.sh
D:\Github-Personal\Stackr\stackr>ng serve
(node:4644) fs: re-evaluating native module sources is not supported. If you are
using the graceful-fs module, please update it to a more recent version.
Livereload server on http://localhost:49158
Serving on http://localhost:4200/
Build successful - 4669ms.
D:\Angular2\November2016\reboot-cli>npm install -g angular-cli@latest
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail o
n node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible
. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie h
ttps://nodesecurity.io/advisories/130
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'electron' ]
2 info using npm@3.10.8
3 info using node@v7.0.0
4 verbose run-script [ 'preelectron', 'electron', 'postelectron' ]
5 info lifecycle ng2-electron@0.1.0~preelectron: ng2-electron@0.1.0
6 silly lifecycle ng2-electron@0.1.0~preelectron: no script for preelectron, continuing
@r4hulp
r4hulp / d365-app-user-poc.cs
Last active May 27, 2017 17:00
Headless communcation to Dynamics CRM using application user
/// <summary>
/// Headless communication to dynamics CRM using application user.
/// More information at : http://www.wrapcode.com/server-authentication-dynamics-crm/
/// This is just a sample code, there are way better ways to achieve the same. Did not want to spend much time on code snippet.
/// </summary>
public static async Task HeadlessAuthenticationPOC()
{
var clientCreds = new ClientCredential("{AZURE_AD_APP_ID}", "{AZURE_AD_APP_SECRET}");
AuthenticationResult authResult = null;