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
| #!/usr/bin/env bun | |
| import readline from "node:readline/promises"; | |
| const HEADER_ACCEPT_MANIFEST = [ | |
| "application/vnd.docker.distribution.manifest.v2+json", | |
| "application/vnd.docker.distribution.manifest.list.v2+json", | |
| "application/vnd.oci.image.manifest.v1+json", | |
| "application/vnd.oci.image.index.v1+json", | |
| ].join(", "); |
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
| [alias] | |
| c = checkout | |
| s = status | |
| lg = log --graph --abbrev-commit --decorate --date=format:'%d. %b %H:%M:%S' --format=format:'%C(bold blue)%h%C(reset) - %C(green)%ad%C(reset) %C(dim white)%<(20,trunc)%an%C(reset) %C(white)%s%C(reset)%C(bold yellow)%d%C(reset)' | |
| lgr = log --abbrev-commit --date=format:'%d. %b %H:%M:%S' --format=format:'%C(bold blue)%h%C(reset) - %C(green)%ad%C(reset) %C(dim white)%<(20,trunc)%an%C(reset) %C(white)%s%C(reset)%C(bold yellow)%d%C(reset)' |
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 random | |
| import sys | |
| def main(names): | |
| random.shuffle(names) | |
| print('\033[93m' + 'Team 1: ' + ', '.join(names[:(len(names) // 2)]) + '\n\033[92mTeam 2: ' + ', '.join(names[(len(names) // 2):]) + '\033[0m') | |
| if __name__ == '__main__': | |
| main(sys.argv[1:]) |
Create openssl.cnf and add:
openssl_conf = default_conf
[ default_conf ]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
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
| <reporting> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-pmd-plugin</artifactId> | |
| <version>3.7</version> | |
| <configuration> | |
| <sourceEncoding>utf-8</sourceEncoding> | |
| <language>java</language> | |
| <verbose>true</verbose> |
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
| <VirtualHost *:80> | |
| ServerAdmin admin@admin.com | |
| DocumentRoot "__LARAVEL_PUBLIC_DIR__" | |
| ServerName dev | |
| ErrorLog "logs/dev-error.log" | |
| CustomLog "logs/dev-access.log" common | |
| <Directory "__LARAVEL_PUBLIC_DIR__"> | |
| Options Indexes FollowSymLinks | |
| AllowOverride All |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:svg="http://www.w3.org/2000/svg"> | |
| <fo:layout-master-set> | |
| <fo:simple-page-master master-name="default-page" page-height="8.2604in" page-width="11.6875in" margin-left="0.7in" margin-right="0.7in"> | |
| <fo:region-body margin-top="0.75in" margin-bottom="0.75in"/> | |
| <fo:region-before extent="0.75in"/> | |
| <fo:region-after extent="0.75in"/> | |
| </fo:simple-page-master> | |
| </fo:layout-master-set> | |
| <fo:page-sequence master-reference="default-page" format="1" initial-page-number="1"> |
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 random | |
| import sys | |
| def main(names): | |
| random.shuffle(names) | |
| print '\033[93m' + 'Team 1: ' + ', '.join(names[:(len(names) / 2)]) + '\n\033[92mTeam 2: ' + ', '.join(names[(len(names) / 2):]) + '\033[0m' | |
| if __name__ == '__main__': | |
| main(sys.argv[1:]) |
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
| private int compare(String vx, String vy) | |
| { | |
| String[] vxL = vx.split("\\."); | |
| String[] vyL = vy.split("\\."); | |
| final int xSize = vxL.length, ySize = vyL.length, size = Math.max(xSize, ySize); | |
| Integer iVx, iVy; | |
| int i, diff; |
NewerOlder