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 <arpa/inet.h> | |
| #include <asm/types.h> | |
| #include <linux/if_link.h> | |
| #include <linux/netlink.h> | |
| #include <linux/rtnetlink.h> | |
| #include <string.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <unistd.h> |
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
| #!/bin/bash | |
| echo "$1" "$2" | |
| mkdir tmp | |
| cp "$1" "${1}.bak" | |
| mv "$1" tmp/ | |
| pushd tmp | |
| unzip "$1" | |
| sed -i "/dc:title/c\ <dc:title>$2</dc:title>" ./content.opf |
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
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", | |
| "copyOnSelect": true, | |
| "launchMode": "maximized", | |
| "profiles": | |
| [ | |
| { |
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
| #!/bin/bash | |
| access_key='0555b35654ad1656d804' | |
| secret_key='h7GhxuBLTrlhVUyxSPUKUV8r/2EI4ngqJxD7iBdBYLhwluN30JaT3Q==' | |
| date=$(date -R -u) | |
| string_to_sign="PUT\n\n\n${date}\n/testbucket/" | |
| signature=$(echo -en ${string_to_sign} | openssl sha1 -hmac ${secret_key} -binary | base64) | |
| curl "http://127.0.0.1:8000/testbucket/" \ | |
| -H "Date: ${date}" \ | |
| -H "Content-Length: 0" \ |
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 <vector> | |
| #include "common/log_message.h" | |
| #include "include/rados/librados.hpp" | |
| #include "common/config.h" | |
| #include "common/ceph_argparse.h" | |
| #include "global/global_init.h" | |
| #include "global/global_context.h" | |
| #include "include/rados/rados_types.hpp" | |
| using namespace librados; |
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 <cfloat> | |
| #include <cmath> | |
| #include <cstdlib> | |
| #include <algorithm> | |
| #include <iostream> | |
| #include <map> | |
| #include <random> | |
| #include <vector> | |
| double DrawStraw(uint32_t pg_id, uint32_t osd_id, double weight) { |
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 <stdio.h> | |
| #include <expat.h> | |
| #define BUFFSIZE 8192 | |
| char Buff[BUFFSIZE]; | |
| int Depth; | |
| void start(void *data, const char *el, const char **attr) { |
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
| #pragma once | |
| #include <atomic> | |
| #include <cassert> | |
| #include <functional> | |
| #include <mutex> | |
| #include <queue> | |
| #include <thread> | |
| #include <unordered_map> | |
| #include "semaphore.h" |
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
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/awserr" | |
| "github.com/aws/aws-sdk-go/aws/credentials" | |
| "github.com/aws/aws-sdk-go/aws/session" |
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 <errno.h> | |
| #include <iostream> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| int32_t main(int32_t argc, char* argv[]) { | |
| if (argc != 2) { |
NewerOlder