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
# from NahamSec video at https://www.youtube.com/watch?v=qTuXcAJ_WKc&t=429s | |
wl2(){ | |
message=`cat` | |
echo $message | |
echo -n $message | llm -s 'Based on the input word list from an application, continue the list with the most likely words, paths, or parameters (whatever is passed in by the user). Put one new word on each new line. Do not number the output. Do not say anything before or after the list. Do not use bullets. This is being used in production and it might break the system.' -o temperature .4 -o presence_penalty .2 -m 4t | |
} | |
comment(){ | |
llm -s 'Add comments to this code. Respond with the code and comments. Do not alter the functional aspect of the code, but still return it. Be sure and include the code in the response. Do not respond in a markdown code block. Just respond with the code and comments. Do not preamble or say anything before or after the code. for example: If the user sent "print(1)\nprint(2)", you would reply "# Prints 1\nprint(1)\n# Prints 2\nprint(2)"' -o temperature .2 | |
} |
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 will convert the ini data into this flat format: | |
# | |
# owner|name|John Doe | |
# owner|organization|Acme Widgets Inc. | |
# database|server|192.0.2.62 | |
# database|port|143 | |
# database|file|payroll.dat | |
# Configuration bindings found outside any section are given to | |
# to the default section. |
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
version: '3.7' | |
services: | |
aptcache: | |
image: pdouble16/docker-apt-cacher-ng:latest | |
restart: always | |
ports: | |
- "3142:3142" | |
volumes: | |
- /Users/double/aptcache:/var/cache/apt-cacher-ng |
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
hdiutil create -o /tmp/HighSierra.cdr -size 5130m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build | |
mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg | |
hdiutil convert /tmp/HighSierra.cdr.dmg -format UDTO -o /tmp/HighSierra.iso |
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
class MockExecAction extends DefaultExecAction { | |
int exitValue = 0 | |
String output = '' | |
MockExecAction() { | |
super(null, null, null) | |
} | |
@Override | |
ExecResult execute() { |
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 com.bmuschko.gradle.docker.DockerRegistryCredentials | |
import com.bmuschko.gradle.docker.tasks.AbstractDockerRemoteApiTask | |
import com.bmuschko.gradle.docker.tasks.RegistryCredentialsAware | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
import groovy.util.logging.Slf4j | |
import org.gradle.api.tasks.InputFile | |
import org.gradle.api.tasks.Nested | |
import org.gradle.api.tasks.Optional | |
import org.gradle.api.tasks.OutputFile |
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
2018/08/23 16:06:07 ui: ==> virtualbox-iso: Running post-processor: vagrant-cloud | |
2018/08/23 16:06:07 [INFO] (telemetry) Starting post-processor vagrant-cloud | |
==> virtualbox-iso: Running post-processor: vagrant-cloud | |
2018/08/23 16:06:07 ui: ==> virtualbox-iso (vagrant-cloud): Verifying box is accessible: double16/linux-dev-workstation | |
==> virtualbox-iso (vagrant-cloud): Verifying box is accessible: double16/linux-dev-workstation | |
2018/08/23 16:06:07 packer: 2018/08/23 16:06:07 Post-Processor Vagrant Cloud API GET: https://vagrantcloud.com/api/v1/box/double16/linux-dev-workstation?access_token=ACCESS_TOKEN | |
2018/08/23 16:06:10 packer: 2018/08/23 16:06:10 Post-Processor Vagrant Cloud API Response: | |
2018/08/23 16:06:10 packer: | |
2018/08/23 16:06:10 packer: &{Status:200 OK StatusCode:200 Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[Date:[Thu, 23 Aug 2018 16:06:09 GMT] Cache-Control:[max-age=0, private, must-revalidate] Set-Cookie:[_atlas_session_data=TmMxSVJCbjFmUGNpSjc2bmdJODlQb0Q0elljcGN5d2M1VUluVXFwWVpSdz0tL |
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
class ExampleSpec extends spock.lang.Specification { | |
LoggingProducerOutput output | |
void setup() { | |
output = new LoggingProducerOutput(logPath: Paths.get('/tmp/producer.log')).withEmpty() | |
} | |
void "records should be produced"() { | |
when: "a record is produced" | |
String key = "the_record_key" |
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
override.vm.box = nil | |
docker.image = "jdeathe/centos-ssh:centos-7-2.2.3" | |
docker.remains_running = true |
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 | |
### Copyright 2010 Manuel Carrasco Moñino. (manolo at apache.org) | |
### Copyright 2016 Patrick Double (pat at patdouble.com) | |
### | |
### Licensed under the Apache License, Version 2.0. | |
### You may obtain a copy of it at | |
### http://www.apache.org/licenses/LICENSE-2.0 | |
### | |
### A library for shell scripts which creates reports in jUnit format. |
NewerOlder