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
tmp # perf stat -- ./a.out | |
Sigaction | |
Done | |
Performance counter stats for './a.out': | |
1753.38 msec task-clock # 1.000 CPUs utilized | |
45 context-switches # 25.665 /sec | |
2 cpu-migrations # 1.141 /sec | |
1000024 page-faults # 570.341 K/sec |
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 <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <setjmp.h> | |
sigjmp_buf target; | |
static void handler(int sig, siginfo_t *si, void *unused) | |
{ | |
siglongjmp(target, 1); |
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
$ gcc -dynamiclib -o test.dyld file.c | |
$ gcc trial.c | |
$ ./a.out | |
[file.c] [initializer1] | |
[file.c] [initializer2] | |
[file.c] [initializer3] | |
[trial.c] [main] Finished loading. Now quitting. | |
[file.c] [finalizer3] | |
[file.c] [finalizer2] | |
[file.c] [finalizer1] |
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
-----BEGIN RSA PRIVATE KEY----- | |
MIIEpAIBAAKCAQEA8Q8ZcQ/hM8sL5/PqFqCxVAjCb8/aRcp/FMWv+C4k1CN8w00Z | |
aHsFbJ16mSXhhM3vD3aLiz0c+W7CIjcvAZPSc0JJolPR4eISsznm5gjfZCj5iwp1 | |
XMW81vPfxhgrCtD3Bs2l2WHLsYp/Ou7Rkj+JVHoBiGzOuvrfowFC/tycVweRre1F | |
b9iVD1+j10YXeZxJ1pisDoXWRy+/TWvRf8NCfxBfjyObBLw5VJLk8NakDwHGPojQ | |
c9d8ET+97qGw4XnIXXrBHS8iU8TD9Vk5ckKD3V/9cqi8jYrNTYYa/6rhJc3Hafgw | |
7peZaiesXPui1RgMu4PR/8MepnbY81nC8kMFoQIDAQABAoIBAQC1hB4vQbrdakbD | |
2apqcYQ1+AaZdVUx+mIo/RcddXmr+DDpSzQXtZMHD6oSijC/9OXPqf830MPxmxI5 | |
+3283Ve6DK8vuZgwVDCqnq4ch4/Xdvc5WJ25RviEj8zv+KDomyN4DwCUqQxd2yEk | |
+lH6ozdA0kI3PV+J8oDV2IxfJzXeXVGIS5zGZYGanYvc6MLeagFG3AHW8EJWFd9X |
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
-----BEGIN DSA PRIVATE KEY----- | |
MIIBugIBAAKBgQCYfXa+HV0Fl/CTNeOximEZt/xK960Tg3J8gKj0K2QqHoQgQbxk | |
R7UTVADl03IoOJbDPhV6I0RS1JoEX1NWyPmCNrXOGIqfaO/jbEdNU1lYyrFaw4zI | |
38dJuFJY3IPfJoHxCJYB1a/N+dca3KjdXxlCxImM50Dd4Jc+H8UqCsTarQIVAN3b | |
f7xVPqJoSwsBQUxGubHOyQeTAoGAfW/+RTlMo2z6P3WsUL0HQ0yrH5ns01CfwLqM | |
/ME76IOVV4eT+Li1G34FymdCFF1PWG5VHBT190R/XxICoEliflBYMbKJL9o3Z9sD | |
K3uG6+Z+5B5uCR5AY1ugT0EyuztCJpg0M2voxT0VQ4rLEYd5/rfnT7bejhxtqjzy | |
CrhmxyoCgYBzdvNGjMNNVOvgm/wBEWYFQKixGNhMskph1MpTgYQLmXKXK5rOpufy | |
P3cYzQheKxtG7Dk87hkAtuzv3kI7KsSqMErXowT67taEcgYMu57O/BFNMl4MLOsv | |
DRGCekm8CdMiGBpmjIqKZrifJs4/CA3m3YYvPWA7n4O8RDrnBpDrvwIUL8f0zQjg |
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
package utils | |
import ( | |
"context" | |
"github.com/aws/aws-sdk-go-v2/aws" | |
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" | |
"github.com/aws/smithy-go/middleware" | |
"reflect" | |
) |
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
add_project(aws-cpp-sdk-text-to-speech | |
"High-level C++ SDK for Polly" | |
aws-cpp-sdk-polly | |
aws-cpp-sdk-core) | |
include(CheckIncludeFiles) | |
file( GLOB TEXT_TO_SPEECH_HEADERS "include/aws/text-to-speech/*.h" ) | |
set(PLATFORM_LIBS "") |
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 | |
cat >main.go <<REPRO | |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"time" | |
) |
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
#!/usr/bin/python3 | |
# Interweave two JSON log streams | |
import json | |
import os | |
import sys | |
import time | |
import urllib.request | |
from os import getenv | |
from subprocess import Popen, PIPE, STDOUT, check_output, check_call, call | |
from sys import stdout |
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 <sys/types.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <sys/wait.h> | |
int main() { | |
pid_t pid1; | |
pid_t pid2; | |
int status; |
NewerOlder