Copy extension.mjs into your Copilot CLI user extensions folder.
Don't use
copilot plugin installwith this Gist. Copilot only looks for plugin extensions in subfolders, and Gists can't have folders, so the extension won't load.
| NVIDIA Driver Version: 522.25 CUDA Version: 11.8 | |
| Credit: blazer | |
| For benchmarking the card and allowing me to release the benchmarks here | |
| The hashcat installation used includes a change to the tuning ALIAS.hctune file to include the RTX 4090 as "ALIAS_nv_sm50_or_higher". | |
| The "Kernel exec timeout" warning is cosmetic and does not affect the speed of any of the benchmarked modes. | |
| Benchmark was run at stock clocks on an Asus Strix 4090. | |
| #!/bin/bash | |
| # Downloads and installs the startssl CA certs into the global Java keystore | |
| # https://sipb.mit.edu/doc/safe-shell/ | |
| set -euf -o pipefail | |
| # Check if JAVA_HOME is set | |
| if [ "$JAVA_HOME" = "" ] | |
| then | |
| echo "ERROR: JAVA_HOME must be set." | |
| exit 1 |
| <?php | |
| /* | |
| * This code is copied from | |
| * http://www.warpconduit.net/2013/04/14/highly-secure-data-encryption-decryption-made-easy-with-php-mcrypt-rijndael-256-and-cbc/ | |
| * to demonstrate an attack against it. Specifically, we simulate a timing leak | |
| * in the MAC comparison which, in a Mac-then-Encrypt (MtA) design, we show | |
| * breaks confidentiality. | |
| * | |
| * Slight modifications such as making it not serialize/unserialize and removing |
| /* This is a wrapper library that will give your server the power of | |
| * /dev/null as a service, as seen at http://devnull-as-a-service.com/ | |
| * | |
| * Compile: | |
| * gcc -ggdb -shared -fPIC dnaas.c -ldl -lcurl -o libdnaas.so | |
| * | |
| * Try: | |
| * LD_PRELOAD=./libdnaas.so dd if=/dev/sda of=/dev/null bs=8192 count=16 | |
| * | |
| * Install: |
| public interface GuavaCacheMXBean { | |
| public long getRequestCount(); | |
| public long getHitCount(); | |
| public double getHitRate(); | |
| public long getMissCount(); |
| -- | |
| -- Segment Advisor for All Segments in Schema | |
| -- | |
| -- 1. Grant the ADVISOR and SELECT ANY DICTIONARY roles to the schema owner. | |
| -- 2. Execute the script as the schema owner. | |
| -- 3. Revoke the ADVISOR and SELECT ANY DICTIONARY roles from the schema owner. | |
| set echo off | |
| set feedback off |
| { | |
| "template_logstash":{ | |
| "template" : "logstash*", | |
| "settings" : { | |
| "number_of_shards" : 5, | |
| "index.cache.field.type" : "soft", | |
| "index.refresh_interval" : "5s", | |
| "index.store.compress.stored" : true, | |
| "index.query.default_field" : "message", | |
| "index.routing.allocation.total_shards_per_node" : 5 |
This note tries to document the output of PrintCompilation flag in HotSpot VM. It was originally intended to be a reply to a blog post on PrintCompilation from Stephen Colebourne. It's kind of grown too big to fit as a reply, so I'm putting it here.
Written by: Kris Mok rednaxelafx@gmail.com
Most of the contents in this note are based on my reading of HotSpot source code from OpenJDK and experimenting with the VM flags; otheres come from HotSpot mailing lists and other reading materials listed in the "References" section.
This
| description "Tomcat Server" | |
| start on runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| respawn limit 10 5 | |
| # run as non privileged user | |
| # add user with this command: | |
| ## adduser --system --ingroup www-data --home /opt/apache-tomcat apache-tomcat |