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
| /* | |
| Example code using libcap to set CAP_NET_BIND_SERVICE | |
| (binding to port 81) to the effective capability set. | |
| For more info, see the full blog post at | |
| https://k3a.me/linux-capabilities-in-a-nutshell/ | |
| */ | |
| #include <stdlib.h> | |
| #include <stdio.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
| QSqlDatabase db = QSqlDatabase::addDatabase("QPSQL"); | |
| db.setHostName("127.0.0.1"); | |
| db.setDatabaseName("FirstDB"); | |
| db.setUserName("demo"); | |
| db.setPassword("password"); | |
| bool ok = db.open(); | |
| if (ok) | |
| { | |
| QSqlQuery query("SELECT \"SID\", \"Account\", \"CreateDate\", \"LoginTimes\" FROM \"Account\""); |
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 <string.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <stdlib.h> | |
| #include <netinet/in.h> | |
| #include <unistd.h> | |
| #include <netdb.h> | |
| #include <time.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
| #include <assert.h> | |
| #include <netinet/ip.h> | |
| #include <stdio.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| void test_setsockopt() | |
| { | |
| int priority = 6; |
direct discussion about administrative action away from the main channel and into #reddit-diabetes-ops to minimise disruption. our -ops channel is the place where users should come to ask for our help. examples:
- any sort of operator request or discussion of channel administration in the main channel
- PMs asking why a ban was set
- reports of harassment (unless the user is confiding in you)
- any request for operator action
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 | |
| #set -x | |
| source .client_config | |
| usage="$0 report [START DATE (YYMMDD)] [END DATE (YYMMDD)] \n | |
| or \n $0 propfind \n | |
| or \n $0 get [ics] \n" |
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 | |
| # Bash script to manage the letsencrypt renewals or the initial request. | |
| # To insert into a ~cron for renewals (with no args) | |
| # 0. Check if this is already managed through docker | |
| # 1. check the web service | |
| # 2. check if the host is hosting a gitlab service | |
| # 3. check if certbot is installed | |
| # 4. otherwise check if certbot has been installed from source (if so, you need to modify DIRS_TO_CHECK bellow) |
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
| 1. Create a new directory; | |
| mkdir Apple\ Enterprise | |
| cd Apple\ Enterprise | |
| 2. Generate a certificate signing request | |
| openssl req -nodes -newkey rsa:2048 -keyout aps.key -out CertificateSigningRequest.certSigningRequest | |
| 3. With the information like so (ensure you give it a password): | |
| Country Name (2 letter code) [AU]:GB | |
| State or Province Name (full name) [Some-State]:London |
last updated 2025-01-16
It has been the plan that this version number will be used for Perl at some point in the future.
As of 2025, there is now a proposal to use the second component of the Perl version number as the major version, skipping over the question of what Perl 7 should or should not be.
OlderNewer
