Skip to content

Instantly share code, notes, and snippets.

View JordiCorbilla's full-sized avatar
:bowtie:
Writing about Quantitative Finance and Machine Learning

Jordi Corbilla JordiCorbilla

:bowtie:
Writing about Quantitative Finance and Machine Learning
View GitHub Profile
@JordiCorbilla
JordiCorbilla / faces.json
Created October 28, 2019 15:22 — forked from joakin/faces.json
ascii art (faces and stuff)
[
{
"txt": "Table Flip",
"val": "(╯°□°)╯︵ ┻━┻"
},
{
"txt": "umadbro?",
"val": "¯\\_(ツ)_/¯"
},
{
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Serilog;
using Serilog.Events;
using System;
namespace test
{
public class Program
{
[Authorize(Policy = "Administrator")]
public IActionResult ListFiles(string date)
{
var model = new FilesViewModel();
DateTime day;
if (!string.IsNullOrEmpty(date))
{
day = DateTime.ParseExact(date, "yyyyMMdd", CultureInfo.InvariantCulture);
}
else
[HttpPost]
[RequestSizeLimit(300_000_000)]
[Authorize(Policy = "Administrator")]
public async Task<IActionResult> UploadFiles(List<IFormFile> files)
{
if (files == null || files.Count == 0)
return Content("files not selected");
foreach (var file in files)
{
test@LAPTOP ~
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/test/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/test/.ssh/id_rsa.
Your public key has been saved in /c/Users/test/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:/JnBJgLsLh1YofOeW9S9Q8C2SQyAgbfTSTCZA5bCHL4 [email protected]
// Copyright (c) 2018, Jordi Corbilla
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// - Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// - Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// Copyright (c) 2018, Jordi Corbilla
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// - Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// - Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// Copyright (c) 2017, Jordi Corbilla
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// - Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// - Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
//The MIT License (MIT)
//Copyright (c) 2017 Jordi Corbilla
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:
//The MIT License (MIT)
//Copyright (c) 2017 Jordi Corbilla
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions: