2015-10-21
- jennifer
- martym
| #!/bin/sh | |
| set -e | |
| openssl req -x509 -nodes -newkey rsa:2048 \ | |
| -subj '/CN=atlas.ariga.io' \ | |
| -days 365 \ | |
| -keyout mssql.key \ | |
| -out mssql.pem | |
| chmod 440 mssql.pem mssql.key | 
| package handler | |
| type ( | |
| options struct { | |
| MaxPayload int64 | |
| } | |
| // HandlerOptions is a function that configures the handler. | |
| HandlerOptions func(*options) | |
| ) | 
| package floww | |
| import ( | |
| "bytes" | |
| "crypto/hmac" | |
| "crypto/md5" | |
| "crypto/sha256" | |
| "encoding/hex" | |
| "fmt" | |
| "io" | 
| package softdelete | |
| import ( | |
| "context" | |
| "entgo.io/contrib/entgql" | |
| "entgo.io/ent" | |
| "entgo.io/ent/entql" | |
| "entgo.io/ent/schema/field" | |
| "entgo.io/ent/schema/mixin" | 
| # Codespaces zsh prompt theme | |
| __zsh_prompt() { | |
| local prompt_username | |
| if [ ! -z "${GITHUB_USER}" ]; then | |
| prompt_username="@${GITHUB_USER}" | |
| else | |
| prompt_username="%n" | |
| fi | |
| PROMPT="%{$fg[green]%}${prompt_username} %(?:%{$reset_color%}➜ :%{$fg_bold[red]%}➜ )" # User/exit code arrow | |
| PROMPT+='%{$fg_bold[blue]%}%(5~|%-1~/…/%3~|%4~)%{$reset_color%} ' # cwd | 
| import { ConfigPlugin, withGradleProperties } from "@expo/config-plugins"; | |
| type PackagingOptionsProp = { | |
| pickFirsts?: string[]; | |
| excludes?: string[]; | |
| merges?: string[]; | |
| doNotStrip?: string[]; | |
| }; | |
| export const withPackagingOptions: ConfigPlugin<PackagingOptionsProp> = ( | 
| const { withDangerousMod, withPlugins } = require("@expo/config-plugins"); | |
| const { | |
| mergeContents, | |
| } = require("@expo/config-plugins/build/utils/generateCode"); | |
| const fs = require("fs"); | |
| const path = require("path"); | |
| async function readFileAsync(path) { | |
| return fs.promises.readFile(path, "utf8"); | |
| } | 
| *.class | |
| /labeled-raw | |
| /labeled-raw-verify | 
| const { | |
| AndroidConfig, | |
| WarningAggregator, | |
| withAndroidManifest, | |
| withAppDelegate, | |
| withDangerousMod, | |
| withInfoPlist, | |
| withMainActivity, | |
| withPlugins, | |
| } = require('@expo/config-plugins') |