This guide shows how to configure a local-only .gitignore using core.excludesfile for a specific repository, so you can keep personal ignores without affecting the repository’s .gitignore file.
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
| import java.math.BigInteger | |
| import java.net.DatagramPacket | |
| import java.net.DatagramSocket | |
| import java.net.InetAddress | |
| import java.security.KeyPairGenerator | |
| import java.security.MessageDigest | |
| import java.security.SecureRandom | |
| import java.security.interfaces.ECPrivateKey | |
| import java.security.interfaces.ECPublicKey | |
| import java.security.spec.ECPoint |
Nginx can be configured to route to a backend, based on the server's domain name, which is included in the SSL/TLS handshake (Server Name Indication, SNI).
This works for http upstream servers, but also for other protocols, that can be secured with TLS.
- at least nginx 1.15.9 to use variables in ssl_certificate and ssl_certificate_key.
- check
nginx -Vfor the following:... TLS SNI support enabled
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> | |
| /* * | |
| * Exercise 1-13. Write a program to print a histogram of the lengths of words in | |
| * its input. It is easy to draw the histogram with the bars horizontal; a vertical | |
| * orientation is more challenging. | |
| * ---- | |
| * ANSI C K&R - CHARACTER INPUT AND OUTPUT: PAGE 15 | |
| * The quantities IS_LOWER, IS_UPPER, IS_ALPHA, MAXLEN, OUT and IN (macros) | |
| * are symbolic constant, not variables, so they do not appear in declarations. |
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
| // -------------------------------------------------------------------------------------- | |
| // Atomic singly-linked intrusive list using 128-bits Compare And Swap (AKA: DCAS). | |
| // Keeps a version counter with the list head to prevent the A-B-A problem. | |
| // | |
| // Based on the implementation found in moodycamel.com: | |
| // http://moodycamel.com/blog/2014/solving-the-aba-problem-for-lock-free-free-lists | |
| // | |
| // My implementation uses raw GCC/Clang atomics intrinsics. While in theory | |
| // std::atomic of a struct of exactly 16 bytes and properly aligned could |
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
| --- | |
| # This Playbook bounces a consul cluster that is unable to elect a leader | |
| # push peers.json to the consul/raft data directory, change single quotes to doubles, restart consul servers | |
| - hosts: consulservers | |
| become: yes | |
| # update the peers.json file with the correct consul server ip addresses and port | |
| tasks: | |
| - include_vars: roles/consul/vars/main.yml |
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 | |
| function test { | |
| MESSAGE=$1 | |
| RECEIVED=$2 | |
| EXPECTED=$3 | |
| if [ "$RECEIVED" = "$EXPECTED" ]; then | |
| echo -e "\033[32m✔︎ Tested $MESSAGE" | |
| else |
This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
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
| diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el | |
| index e2d996f..d1458a2 100644 | |
| --- a/lisp/progmodes/gud.el | |
| +++ b/lisp/progmodes/gud.el | |
| @@ -34,7 +34,7 @@ | |
| ;; and added a menu. Brian D. Carlstrom <bdc@ai.mit.edu> combined the IRIX | |
| ;; kluge with the gud-xdb-directories hack producing gud-dbx-directories. | |
| ;; Derek L. Davies <ddavies@world.std.com> added support for jdb (Java | |
| -;; debugger.) | |
| +;; debugger). llvm.org added support for lldb. |
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 <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <strings.h> | |
| #include <math.h> | |
| #include "stinger_utils/timer.h" | |
| int32_t JumpConsistentHash(uint64_t key, int32_t num_buckets) { | |
| int64_t b= -1, j = 0; |
NewerOlder