gcc hash.c -o hash -lcrypto -lssl -Wall
./hash
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>hi world!</title> | |
</head> | |
<body> | |
<p>It is me, a gist iframe in AMP!</p> | |
</body> | |
</html> |
This file contains hidden or 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
class Greeter { | |
greeting: string; | |
constructor(message: string) { | |
this.greeting = message; | |
} | |
greet() { | |
return "Hello, " + this.greeting; | |
} | |
} |
This file contains hidden or 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 <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
void show_array(int numbers[], int size); | |
int main() { | |
int swap, i, large, small = 0; | |
int numbers[] = { | |
90, |
This file contains hidden or 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
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
node_modules/ | |
.env |
This file contains hidden or 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
/*L**************************************************************************** | |
* FILENAME: hash.c VERSION: 0.5.0 | |
* | |
* DESCRIPTION: SHA512 Miner example | |
* | |
* AUTHOR: Levi Durfee DATE: 20170714 | |
* | |
* CHANGES | |
* ---------------------------------------------------------------------------- | |
* REF NO VERSION DATE WHO NOTES |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style> | |
input, button {display:block;margin-bottom:10px;} | |
</style> | |
</head> |
This file contains hidden or 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
<?php | |
$message = ''; | |
if(!empty($_FILES['uploaded_file'])) { | |
$path = 'uploads/'; | |
$path = $path . uniqid('u', true) . '-' . basename($_FILES['uploaded_file']['name']); | |
if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $path)) { | |
$message = 'The file ' . basename( $_FILES['uploaded_file']['name']) . ' has been uploaded'; | |
} else { | |
$message = 'There was an error uploading the file, please try again!'; |
This file contains hidden or 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
<?php | |
function digitalOcean($DO_API_TOKEN) { | |
$endpoint = "https://api.digitalocean.com/v2/droplets?per_page=200"; | |
$headers[] = "Content-type: application/json"; | |
$headers[] = "Authorization: Bearer $DO_API_TOKEN"; | |
$curl = curl_init(); | |
curl_setopt_array($curl, [ | |
CURLOPT_HTTPHEADER => $headers, | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_URL => $endpoint, |
This file contains hidden or 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
allow from all | |
deny from 1.2.3.4 # blocks one IP address | |
deny from 1.3 # blocks every IP beginning with 1.3 |