This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[bits 16] | |
org 07c00h | |
mov ax, cs | |
mov ds, ax | |
mov es, ax | |
call check_a20 | |
test ax, ax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <nvml.h> | |
#pragma comment(lib, "nvml") | |
int main(int argc, char* argv[]) | |
{ | |
nvmlReturn_t result; | |
unsigned int device_count; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Root CA | |
echo 'Generating Root CA' | |
openssl ecparam -name secp384r1 -genkey -noout -out ca.key.pem | |
openssl req -x509 -new -nodes -key ca.key.pem -sha512 -days 3650 -out ca.crt.pem | |
openssl pkcs12 -inkey ca.key.pem -in ca.crt.pem -export -out ca.pfx | |
# Intermediate CA | |
echo 'Generating Intermediate CA' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <openssl/pem.h> | |
#include <openssl/rsa.h> | |
void verifyRSASignature(unsigned char *originalMessage, unsigned int om_length, | |
unsigned char *signature, unsigned siglen) | |
{ | |
int result; | |
FILE *file; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file=`cat cipher.txt | sed -e 's/[\r\n]/ /g'` | |
for word in ${=file} | |
do | |
printf '%02x ' $((0b$word)) | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// libshovel.cpp : Defines the entry point for the application. | |
// | |
// | |
#include "Eigen/Eigen" | |
namespace shovel { | |
struct Pose | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [ freq ] = HPS(audiofile) | |
CORRECTFACTOR=1; | |
[sample, fs] = audioread(audiofile); | |
fftn = fs; | |
sample = sample .* hann(length(sample)); | |
fftr = abs(fft(sample,fftn)); | |
fftr = fftr(1:fftn/2); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <gnutls/gnutls.h> | |
#include <gnutls/x509.h> | |
int main(void) | |
{ | |
FILE *fl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
g++ -shared interop.cpp -o libmain.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set vpn ipsec ipsec-interfaces interface pppoe0 | |
set vpn ipsec auto-firewall-nat-exclude enable | |
set vpn ipsec nat-traversal enable | |
set vpn ipsec esp-group esp-azure compression disable | |
set vpn ipsec esp-group esp-azure lifetime 3600 | |
set vpn ipsec esp-group esp-azure mode tunnel | |
set vpn ipsec esp-group esp-azure pfs disable | |
set vpn ipsec esp-group esp-azure proposal 1 encryption aes256 | |
set vpn ipsec esp-group esp-azure proposal 1 hash sha1 |
NewerOlder