Skip to content

Instantly share code, notes, and snippets.

View manishkungwani's full-sized avatar

Manish Kungwani manishkungwani

View GitHub Profile
this is the log:
2017-09-29 11:09:50,727 [54] ERROR FileAppender EventApp.Web.Areas.Admin.Controllers.AttendeesController+<SendInvite>d__11 MoveNext - Create Attendee failed. Error adding attendee: Name dr21029c is already taken.
Email 'marianne.ong.m.a@singhealth.com.sg' is already taken.
JSON:{"User":{"UserId":0,"FirstName":"Marianne","LastName":"Ong","Designation":"","EmailId":"marianne.ong.m.a@singhealth.com.sg","DomainName":"singhealth","BusinessEmailId":null,"ProfileImageUrl":null,"MobileNo":null,"Bio":null,"Company":"","Title":0,"CreatedOnDate":"2017-09-29T03:09:50.7122872Z","UpdatedOnDate":"2017-09-29T03:09:50.7122872Z","QrCodeImageUrl":null,"FacebookId":null,"FacebookToken":null,"LinkedInId":null,"LinkedInToken":null,"TwitterId":null,"TwitterToken":null,"LastActiveTime":"2017-09-29T03:09:50.7122872Z","SocialLinks":null,"IsDeleted":false,"ShowEmail":false,"ShowPhoneNo":false,"EnableChat":false,"Role":0,"AndroidToken":null,"IosToken":null,"IsPushEnabled":true,"ForceResetPassword":true,"NRIC":"","Profe
["ceKPf4ni5p0:APA91bF0Jf8jtS9s4MX8OIobDFdtvNkP3Mg0Bt1kPzuTkUAh4tvvLGy1qDDrEiqL09ziyUXFMP5UtbJ3fpoj8cj0fy4kdU20WvIXCJOhB85N-mGPV8B_VyiK39CeC3s2HiSA0XgC_-JQ","cS4yiWWXaso:APA91bHRHtaOky3ZVXHVv065yFoGbxqlAkXxK2uKaQiB8pJstezNKJYOL2G2X3PliHvBi8JFdiU2H7UOa_WGkmOvJna10WWXUvPW5zAlZTrSDsoeQRnCyutxBqIoEg_Ouk33xvn6wIdt","fUk3i1GKJZc:APA91bFwGVLslnX71eJqa4eBjhmiursl3IdGr7a5H5qzHrh6H6I7Hi0mgkcgv-UxeiZ9KS0c0fGPnTbKZsOh6VRg1hW7_dCKu0LF90bB3IEw73F8mMP4yP-rvAYKYew1rDUfI7sPyYHT","dHSocYXFdgU:APA91bHhvvWiu3N_HiICTzWyT9r6EFCNbcvPBWJH481E-3LZoIuOFCzrvmEKX5UjVJPY6iE75FX1jh6TeHcpX2XQvXfxx4AQJ1WvO3tBAM7ngSPmwWazwoD5Ruhhfyse72d2SwK6iCWu","dcQyt2w-WC8:APA91bEr0tDTMOGKiLAXrk4dBi7xO6J0Y9_Q1jYEfv4nWqw3uYXJHrbIOrYxhg9VX2Jj89ClqHdsb2sRYIzgi9nHVw3jjMIDQoKaA8CYOF6fWSR9czlpikmFlGOFMFzQRq4xkenmmzWR","d0ZZXYFP9oo:APA91bFrKOZag0xZ3rwjaT8OhPqutQ7HbIlmNrgc8_z1u1T9lbcBdq7fiw2HtzrP7A79I3qdieOH3RtTkKpVPMGRwEl8gnh0aAp38I7vJ4niTuYB67_1BeWjvnsTz1o8KfHx-yddmHun","cocPdZ48KpA:APA91bG7s98tQ_qJ1p9c1z36Vz8Tf0XcJ7KmBn8_Qd-PX0yjVAoQnj-tkuXBu7Vy76BokgNR4lj8_Flk
{"Text":"Do remember to submit your overall evaluation via the app! ","Title":"Your feedback is appreciated.","GroupId":null,"EventId":null,"User":null,"SenderId":0,"SendDate":"0001-01-01T00:00:00","SentCount":0,"DeliverCount":0}
["cS4yiWWXaso:APA91bHRHtaOky3ZVXHVv065yFoGbxqlAkXxK2uKaQiB8pJstezNKJYOL2G2X3PliHvBi8JFdiU2H7UOa_WGkmOvJna10WWXUvPW5zAlZTrSDsoeQRnCyutxBqIoEg_Ouk33xvn6wIdt","fUk3i1GKJZc:APA91bFwGVLslnX71eJqa4eBjhmiursl3IdGr7a5H5qzHrh6H6I7Hi0mgkcgv-UxeiZ9KS0c0fGPnTbKZsOh6VRg1hW7_dCKu0LF90bB3IEw73F8mMP4yP-rvAYKYew1rDUfI7sPyYHT","dHSocYXFdgU:APA91bHhvvWiu3N_HiICTzWyT9r6EFCNbcvPBWJH481E-3LZoIuOFCzrvmEKX5UjVJPY6iE75FX1jh6TeHcpX2XQvXfxx4AQJ1WvO3tBAM7ngSPmwWazwoD5Ruhhfyse72d2SwK6iCWu","dcQyt2w-WC8:APA91bEr0tDTMOGKiLAXrk4dBi7xO6J0Y9_Q1jYEfv4nWqw3uYXJHrbIOrYxhg9VX2Jj89ClqHdsb2sRYIzgi9nHVw3jjMIDQoKaA8CYOF6fWSR9czlpikmFlGOFMFzQRq4xkenmmzWR","d0ZZXYFP9oo:APA91bFrKOZag0xZ3rwjaT8OhPqutQ7HbIlmNrgc8_z1u1T9lbcBdq7fiw2HtzrP7A79I3qdieOH3RtTkKpVPMGRwEl8gnh0aAp38I7vJ4niTuYB67_1BeWjvnsTz1o8KfHx-yddmHun","cocPdZ48KpA:AP
@manishkungwani
manishkungwani / userdata.ps1
Created May 16, 2017 09:23 — forked from darbio/userdata.ps1
EC2 UserData script to install IIS and configure an Octopus Deploy Tentacle
# If for whatever reason this doesn't work, check this file:
Start-Transcript -path "C:\Startup.log" -append
# Generic functions
# Log a message
function Log {
param (
[Parameter(Mandatory=$True)]
[string]$msg
)
@manishkungwani
manishkungwani / deploy-webdeploy-to-local-iis.yml
Created March 23, 2017 14:30 — forked from FeodorFitsner/deploy-webdeploy-to-local-iis.yml
Deploy Web Deploy package to local IIS using msdeploy.exe
deploy_script:
- ps: $env:package_path = $artifacts.values[0].path
- '"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package="%package_path%" -dest:auto -setParam:name="IIS Web Application Name",value="Default Web Site"'
@manishkungwani
manishkungwani / phabricator_readme.md
Created February 26, 2016 14:25 — forked from sparrc/phabricator_readme.md
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu Installation Guide

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install bonus packages:

# apt-get install mercurial subversion python-pygments sendmail imagemagick

Create necessary users and add phd-user to sudoers:

This file has been truncated, but you can view the full file.
(
{
exercise = {
"bonus_score" = "200.0";
"created_at" = "2015-12-11T13:13:22+05:30";
id = 47;
"items_with_options" = (
{
item = {
body = "16-year-old NRI kid claimed his search engine is 47 % more accurate than google search. If you were Suder Pichai (CEO of google) what would you do when you come across such a news?";
curl -X PUT -H "Authorization: Bearer 403409102c9fef52a3d0e742cc48251fa81dcccc18d1681bf8db093254f9653a" -F"user[sq_item_responses_attributes][5][item_id]=39" -F"user[sq_item_responses_attributes][1][option_id]=133" -F"user[sq_item_responses_attributes][2][exercise_id]=38" -F"user[sq_item_responses_attributes][4][item_id]=38" -F"user[sq_item_responses_attributes][1][exercise_id]=38" -F"user[sq_item_responses_attributes][1][item_id]=35" -F"user[sq_item_responses_attributes][0][exercise_id]=38" -F"user[sq_item_responses_attributes][6][option_id]=153" -F"user[sq_item_responses_attributes][0][item_id]=34" -F"user[sq_item_responses_attributes][4][option_id]=145" -F"user[sq_item_responses_attributes][6][item_id]=40" -F"user[sq_item_responses_attributes][6][exercise_id]=38" -F"user[sq_item_responses_attributes][3][item_id]=37" -F"user[sq_item_responses_attributes][2][option_id]=137" -F"user[sq_item_responses_attributes][5][exercise_id]=38" -F"user[sq_item_responses_attributes][5][option_id]=149" -F"user[sq_item_respo
@manishkungwani
manishkungwani / errorMT2002
Created November 20, 2014 15:44
error MT2002: Failed to resolve assembly: 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Building: Bitmob.PCL (Debug)
Build started 11/19/2014 4:45:12 PM.
__________________________________________________
Project "/Users/manish/Desktop/repos/bitmob-ios-xam/Bitmob/Bitmob.PCL/Bitmob.PCL.csproj" (Build target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
@manishkungwani
manishkungwani / gist:1a9f82afe3a8c3bcc2f7
Last active August 29, 2015 14:05
Restrict ViewController to Portrait mode does not work!
public partial class PortraitOnlyViewController : UIViewController
{
public PortraitOnlyViewController () : base ("PortraitOnlyViewController", null)
{
}
public override void DidReceiveMemoryWarning ()
{
// Releases the view if it doesn't have a superview.
base.DidReceiveMemoryWarning ();