const user = await prisma.user.update({
where: {
email: 'alice@prisma.io',
},
data: {
posts: {
This file has been truncated, but you can view the full file.
This file contains 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
# Title: StevenBlack/hosts | |
# | |
# This hosts file is a merged collection of hosts from reputable sources, | |
# with a dash of crowd sourcing via GitHub | |
# | |
# Date: 24 January 2021 21:02:05 (UTC) | |
# Number of unique domains: 59,895 | |
# | |
# Fetch the latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | |
# Project home page: https://github.com/StevenBlack/hosts |
This file contains 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
name: auto pull request | |
on: | |
push: | |
branches: | |
- wip/* | |
- feat/* | |
- fix/* | |
- ci/* | |
- refactor/* | |
- chore/* |
This file contains 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
// ------------------------ Reading Data ------------------------ | |
// -- Find Records -- | |
// Find all posts | |
posts, err := client.Post.FindMany().Exec(ctx) | |
// Find a user by ID | |
user, err := client.User.FindUnique(db.User.ID.Equals(2)).Exec(ctx) |
This file contains 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 ( | |
"bufio" | |
"log" | |
"os" | |
"strconv" | |
"strings" | |
hdwallet "github.com/miguelmota/go-ethereum-hdwallet" |
This file contains 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 -e | |
swap() { | |
set -eu | |
a=$1 | |
b=$2 |
This file contains 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
# install helm | |
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash | |
kubectl create serviceaccount -n kube-system tiller | |
kubectl create clusterrolebinding tiller-binding --clusterrole=cluster-admin --serviceaccount kube-system:tiller | |
# run tiller with specific tiller account | |
helm init --service-account tiller |
This file contains 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 | |
```js | |
const user = await prisma.user.update({ | |
where: { | |
email: 'alice@prisma.io', | |
}, | |
data: { | |
posts: { |
This file contains 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 | |
# This script checks if the prisma e2e test workflow passes | |
# Check the end of the file for usage | |
check() { | |
str=$(curl -s "https://github.com/$1/workflows/$2/badge.svg") | |
case "$str" in | |
*"passing"*) |
This file contains 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 -eu | |
new=$1 | |
for file in $(ls | sort -g -r) | |
do | |
filename=$(basename "$file") | |
number=$(echo $filename | cut -d- -f1) |
NewerOlder