Skip to content

Instantly share code, notes, and snippets.

@gsarkarsavo
gsarkarsavo / vs-2015-project-load-issue.txt
Last active January 28, 2019 12:47
vs 2015 project load issue
METHOD 1
-----------------------------------------------------------------------------
Delete contents of these 2 folders
C:\Users\%USERNAME%\AppData\Roaming\Microsoft\VisualStudio\
C:\Users\%USERNAME%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
Then run the VS.NET as admin, otherwise it won't be able to renew the Roaming folder correctly.
@gsarkarsavo
gsarkarsavo / fetch-api-examples.md
Created December 26, 2018 12:24 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples
if((Get-WebConfiguration -Filter /system.webServer/isapiFilters/filter |
Where-Object -Property path -EQ $isapiDllPath) `
-eq $null) {
Add-WebConfiguration -Filter /system.webServer/isapiFilters `
-Value @{
name = $isapiName;
path = $isapiDllPath;
preCondition = $preConditionIfAny
} `
@gsarkarsavo
gsarkarsavo / fiddler-capture-https-android-emulator
Created November 8, 2018 06:35 — forked from gpsarkar/fiddler-capture-https-android-emulator
fiddler capture https with android emulator
emulator -avd AndroidEmulator -partition-size 1024 -writable-system
Install toot certificate from `http://ipv4.fiddler:8888`
The certificate will now be located in /data/misc/user/0/cacerts-added/.
Remount /system R/W as root if you haven't already (mount -o remount,rw /system).
adb shell
@gsarkarsavo
gsarkarsavo / nginx.conf
Created May 10, 2018 10:36 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@gsarkarsavo
gsarkarsavo / Cleanup ClickOnce Apps
Created February 13, 2018 14:37
Cleanup ClickOnce Apps
Run this:
rundll32 dfshim CleanOnlineAppCache
Delete everything from:
C:\Users\%USERPROFILE%\Local Settings\Apps\2.0
using System.Diagnostics;
using System.Data;
using System.Collections;
using Microsoft.VisualBasic;
using System.Collections.Generic;
using System;
using System.Net;
using System.IO;
using System.Text.RegularExpressions;
@gsarkarsavo
gsarkarsavo / ftp.cs
Created February 13, 2018 10:51 — forked from veyselsahin/ftp.cs
FTP Class For C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net;
using System.Text.RegularExpressions;
namespace SystemEx
{
@gsarkarsavo
gsarkarsavo / FTP Client.cs
Created February 13, 2018 10:49 — forked from aliprogrammer69/FTP Client.cs
FTP Client
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
public class FtpClient

#Node - File Paths

##File Paths Node has a path module which can be used to manipulate paths.

###Normalizing Paths Paths can be stored in different ways and it is neccessary to ensure that the path is standardized.

var path = require('path');
path.normalize('/foo/bar//baz/asdf/quux/..');