Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
using System.Collections.Generic; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.HttpOverrides; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.Filters; | |
public static class SecurityHeader { | |
public static void UseSecurityHeaders (this IApplicationBuilder app) { | |
app.UseForwardedHeaders (new ForwardedHeadersOptions { | |
ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto | |
}); |
using System.Web.Mvc; | |
namespace DemoApp.Areas.Demo | |
{ | |
public class DemoAreaRegistration : AreaRegistration | |
{ | |
public override string AreaName | |
{ | |
get | |
{ |
getDistanceFromLatLonInM(lat1, lon1, lat2, lon2) { | |
var a = | |
Math.pow(Math.sin(deg2rad(lat2 - lat1) / 2), 2) + | |
Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * | |
Math.pow(Math.sin(deg2rad(lon2 - lon1) / 2), 2); | |
return 12742000 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); | |
} |
cd $HOME | |
ln -s `which php54` ~/bin/php | |
export PATH=$HOME/bin:$PATH | |
curl -sS https://getcomposer.org/installer | php54 | |
echo -e "\n# Composer\nalias composer=\"php54 \$HOME/composer.phar\"" >> $HOME/.bash_profile | |
source $HOME/.bash_profile |
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |
import { TestBed, async, inject } from '@angular/core/testing'; | |
import { HttpClientModule, HttpClient } from '@angular/common/http'; | |
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; | |
describe(`FakeHttpClientResponses`, () => { | |
beforeEach(() => { | |
// 0. set up the test environment | |
TestBed.configureTestingModule({ | |
imports: [ |
Probably not the title that most people expected to see in the #1 slot. I urge everyone to give it a shot though. No other film has ever brought me through a greater spectrum of emotions. It's a supernatural film, but the characters are so well fleshed out and developed that they feel real. I've probably seen a hundred films since, but none have compared.
Director: Yasuhiro Yoshiura - "Sometime in future Japan, androids have been involved in every aspect of peoples lives. One day, upon checking his android's behavioral log, Rikuo, a student, noticed his android's returning times have been odd recently. With his friend Masaki, they found out the place where his android, Sammy, have been visiting: a small cafe called Eve no Jikan where an
$('.modal.draggable>.modal-dialog').draggable({ | |
cursor: 'move', | |
handle: '.modal-header' | |
}); | |
$('.modal.draggable>.modal-dialog>.modal-content>.modal-header').css('cursor', 'move'); |