git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
/// <summary> | |
/// Gets the console secure password. | |
/// </summary> | |
/// <returns></returns> | |
private static SecureString GetConsoleSecurePassword( ) | |
{ | |
SecureString pwd = new SecureString( ); | |
while ( true ) | |
{ |
// Start from https://gist.github.com/iwek/7154578#file-csv-to-json-js | |
// and fix the issue with double quoted values | |
function csvTojs(csv) { | |
var lines=csv.split("\n"); | |
var result = []; | |
var headers = lines[0].split(","); | |
for(var i=1; i<lines.length; i++) { | |
var obj = {}; |
/** | |
* Changes XML to JSON | |
* Modified version from here: http://davidwalsh.name/convert-xml-json | |
* @param {string} xml XML DOM tree | |
*/ | |
function xmlToJson(xml) { | |
// Create the return object | |
var obj = {}; | |
if (xml.nodeType == 1) { |
using System; | |
using System.Threading; | |
static class Program { | |
static void Main() { | |
Console.Write("Performing some task... "); | |
using (var progress = new ProgressBar()) { | |
for (int i = 0; i <= 100; i++) { | |
progress.Report((double) i / 100); |
// Only tested in Chrome... | |
// Must browse to "Your Comments" (or "Your Likes") page of activity feed, then pre-load the year you want to delete | |
// and as many comments as possible (scroll down, they load lazily). | |
// | |
// I ACCEPT ABSOLUTELY NO RESPONSIBILITY FOR THIS DOING BAD STUFF. THE NEXT FACEBOOK DEPLOYMENT | |
// COULD WELL BREAK THIS, OR MAKE IT DO THINGS YOU DO NOT EXPECT. USE IT AS A STARTING POINT ONLY! | |
// | |
// It will start failing once it gets to the end, just reload the page and kick it off again. | |
var rows = document.querySelectorAll('#year_2012 .pam._5shk'); |
// Changes XML to JSON | |
// Modified version from here: http://davidwalsh.name/convert-xml-json | |
xmlToJson(xml) { | |
// Create the return object | |
let obj = {}; | |
if (xml.nodeType === 1) { // element | |
// do attributes | |
if (xml.attributes.length > 0) { | |
obj['@attributes'] = {}; |
using System; | |
using System.Linq; | |
using System.Security; | |
using System.Threading; | |
using Microsoft.SharePoint.Client; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Blob; | |
using Microsoft.WindowsAzure.Storage.Queue; | |
namespace ConsoleApp1 |
Getting Log4Net working with a .NET Core console app is simple. You may have found guides for getting Log4Net working on a .NET Framework project. The setup is similar but requires a few additional steps. This quick start assumes you are using Visual Studio 2019.
This process is the same for installing any other package using NuGet. Either the Package Manager Console or the Manage NuGet Packages GUI can be used.
Open the Package Manager Console and run the following command.