View softdelete.go
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 softdelete | |
import ( | |
"context" | |
"entgo.io/contrib/entgql" | |
"entgo.io/ent" | |
"entgo.io/ent/entql" | |
"entgo.io/ent/schema/field" | |
"entgo.io/ent/schema/mixin" |
View codespaces.zsh-theme
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
# 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 |
View withPackagingOptions.ts
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
import { ConfigPlugin, withGradleProperties } from "@expo/config-plugins"; | |
type PackagingOptionsProp = { | |
pickFirsts?: string[]; | |
excludes?: string[]; | |
merges?: string[]; | |
doNotStrip?: string[]; | |
}; | |
export const withPackagingOptions: ConfigPlugin<PackagingOptionsProp> = ( |
View rnf-disable-ad-id-support.plugin.js
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
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"); | |
} |
View .gitignore
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
*.class | |
/labeled-raw | |
/labeled-raw-verify |
View branch.plugin.js
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
const { | |
AndroidConfig, | |
WarningAggregator, | |
withAndroidManifest, | |
withAppDelegate, | |
withDangerousMod, | |
withInfoPlist, | |
withMainActivity, | |
withPlugins, | |
} = require('@expo/config-plugins') |
View CodeToUUID.go
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 ( | |
"fmt" | |
"crypto/md5" | |
"github.com/google/uuid" | |
) | |
func CodeToUUID(code string) uuid.UUID { |
View jira_oauth.go
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 ( | |
"context" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/json" | |
"encoding/pem" | |
"fmt" | |
"log" |
View vscode-remote-ssh-root.sh
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
# Add sudo to node runner | |
sed -i "/node/s/^/sudo /" ~/.vscode-server/bin/*/server.sh | |
# Restart remote vscode | |
pkill -f vscode |
View gist:468ff472fc9dabb8151520cf0a5baf3f
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
### Keybase proof | |
I hereby claim: | |
* I am giautm on github. | |
* I am giautm (https://keybase.io/giautm) on keybase. | |
* I have a public key ASA0zR-54poGym5RYb0Z5RUovY_20zg-kdvD-cHzmmI5qQo | |
To claim this, I am signing this object: |
NewerOlder