Skip to content

Instantly share code, notes, and snippets.

View greenboxal's full-sized avatar
🏵️
GitHub Gold Member

Jonathan Lima greenboxal

🏵️
GitHub Gold Member
  • Anti Social Media Company
  • San Francisco, CA
  • X @greenboxal
View GitHub Profile
#!/bin/bash
ARGS=()
FIX_LOG=""
WORKSPACE_DIR=$(bazel info | grep "workspace: " | cut -d' ' -f2)
function usage() {
echo "Runs ESLint for Bazel projects"
echo
echo "Usage: "
@control_keys ["$type"]
def cast_args(args) when is_map(args) do
{control, args} = Map.split(args, @control_keys)
type = Map.get(control, "$type", "map")
cast_arg(type, args, control)
end
def cast_args(args) when is_list(args), do: Enum.map(args, &cast_args/1)
defp cast_args(args) when is_map(args) do
Enum.map args, fn {k, v} ->
{key, rest} = case k do
":" <> k ->
{String.to_atom(k), k}
_ ->
{k, k}
end
{key, cast_arg(rest, value)}
#!/bin/bash
set -o nounset
set -o errexit
VTI_IF="vti${PLUTO_UNIQUEID}"
VTI_LOCAL="$1"
VTI_REMOTE="$2"
case "${PLUTO_VERB}" in
package accountserver
import (
"os"
"os/signal"
"syscall"
"github.com/spf13/cobra"
"github.com/zeusproject/zeus-server/account"
provider "aws" {
region = "us-east-1"
}
module "module1" {
source = "./module1"
}
module "module2" {
source = "./module2"
provider "aws" {
region = "us-east-1"
}
module "module1" {
source = "./module1"
}
module "module2" {
source = "./module2"
func rsaPublicDecrypt(modulus, remainder *big.Int, data []byte) []byte {
num := big.NewInt(0)
num.SetBytes(data)
result := big.NewInt(0)
result.Exp(num, modulus, remainder)
return result.Bytes()
}
func rsaPublicDecrypt(modulus, remainder *big.Int, data []byte) []byte { num := big.NewInt(0)
num.SetBytes(data)
result := big.NewInt(0)
result.Exp(num, modulus, remainder)
return result.Bytes()
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadCertificateFileName</key>
<string>cert.crt</string>
<key>PayloadContent</key>