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
| func (i *Integration) Test(server, test *dagger.Directory) (string, error) { | |
| serverService := dag.Container(). | |
| From("golang:latest"). | |
| WithDirectory("/src", server). | |
| WithExposedPort(1323). | |
| WithWorkdir("/src/server"). | |
| WithExec([]string{"go", "run", "main.go"}). | |
| AsService() |
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
| # Based on https://learn.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2022#create-and-build-the-dockerfile | |
| # and | |
| # https://game.ci/docs/docker/customize-docker-images | |
| # escape=` | |
| FROM unityci/editor:windows-6000.0.30f1-windows-il2cpp-3.1.0 | |
| SHELL ["cmd", "/S", "/C"] |
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
| package main | |
| import ( | |
| "embed" | |
| "fmt" | |
| "io/fs" | |
| ) | |
| //tmpl contains 3 empty files for example; 1,2,3 |
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 | |
| docker-compose -f ../certbot/docker-compose.yml --env-file ../certbot/openbracket.ca.env up | |
| docker-compose -f ../certbot/docker-compose.yml --env-file ../certbot/pass.openbracket.ca.env up | |
| docker-compose -f ../certbot/docker-compose.yml --env-file ../certbot/social.openbracket.ca.env up | |
| docker-compose -f ../certbot/docker-compose.yml --env-file ../certbot/git.openbracket.ca.env up | |
| docker-compose -f ../certbot/docker-compose.yml --env-file ../certbot/design.openbracket.ca.env up |
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/sh | |
| ROOT=`pwd` | |
| while read p; do | |
| all=$(echo $p) | |
| first=${all%% *} | |
| if [[ $first == "use" ]]; then | |
| last=${all##* } | |
| cd $last |
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/sh | |
| ############ | |
| # | |
| # Functions | |
| # | |
| ########### | |
| function exit_with_help { | |
| echo \ |
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
| router | |
| .get('/cat', (ctx, next) => { | |
| ctx.body = "Hello" | |
| r.table('authors').run(connection, function(err, cursor) { | |
| if (err) throw err; | |
| cursor.toArray(function(err, result) { | |
| if (err) throw err | |
| console.log(ctx) | |
| //THIS PART DOESN'T WORK | |
| ctx.body += result[0].name |
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 | |
| for f in ./posts/*.md;do | |
| echo "Processing $f file..." | |
| IFS='/' read -r -a array <<< "$f" | |
| # take ~action on each file. $f store current file name | |
| echo ${array[2]} | |
| FNAME=${array[2]} | |
| CLEANNAME=${FNAME:0:9} | |
| echo "cat $CLEANNAME" | |
| mkdir "./posts/$CLEANNAME" |
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
| npm_new_phaser() { | |
| if [ "$1" != "" ] | |
| then | |
| mkdir "$1" | |
| cd "$1" | |
| if ! type nvm > /dev/null; then | |
| echo "Insatll NVM. I'm not doing it for you since you need shell integration" | |
| echo "https://github.com/creationix/nvm" | |
| return 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
| npm_new() { | |
| if [ "$1" != "" ] | |
| then | |
| mkdir "$1" | |
| cd "$1" | |
| if ! type nvm > /dev/null; then | |
| echo "Insatll NVM. I'm not doing it for you since you need shell integration" | |
| echo "https://github.com/creationix/nvm" | |
| return 1 |
NewerOlder