- Install GPG4Win.
- Start up Kleopatra (a UI tool from 1) and make sure your YubiKey is loaded there.
- You can also add GPG4Win to Startup folder using a link with this Target:
This will only load the agent at Startup, and you won't be bothered by any UI or tray agent."C:\Program Files (x86)\GnuPG\bin\gpg-connect-agent.exe" /bye
- You can also add GPG4Win to Startup folder using a link with this Target:
- Download wsl2-ssh-pageant into your Windows
%userprofile%/.ssh
directory (Windows dir is important for performance).
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
# train_grpo.py | |
import re | |
import torch | |
from datasets import load_dataset, Dataset | |
from transformers import AutoTokenizer, AutoModelForCausalLM | |
from peft import LoraConfig | |
from trl import GRPOConfig, GRPOTrainer | |
# Load and prep dataset |
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
apiVersion: customize.core.cnrm.cloud.google.com/v1beta1 | |
kind: ControllerResource | |
metadata: | |
name: cnrm-controller-manager | |
spec: | |
replicas: 1 | |
containers: | |
- name: manager | |
resources: | |
limits: |
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
$ trufflehog filesystem . --debug --trace | |
2023/06/28 15:53:38 [updater parent] run | |
2023/06/28 15:53:38 [updater parent] checking for updates... | |
2023/06/28 15:53:39 [updater parent] failed to get latest version: Post "https://oss.trufflehog.org/updates": stopped after 10 redirects | |
2023/06/28 15:53:39 [updater parent] starting /usr/local/bin/trufflehog | |
2023/06/28 15:53:40 [updater child#1] run | |
2023/06/28 15:53:40 [updater child#1] start program | |
2023-06-28T15:53:40-04:00 info-2 trufflehog trufflehog 3.40.0 | |
2023-06-28T15:53:40-04:00 info-2 trufflehog engine started {"workers": 16} | |
2023-06-28T15:53:40-04:00 info-0 trufflehog loaded decoders {"count": 3} |
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
$ trufflehog git https://github.com/dinvlad/pyro-cov.git \ | |
--branch bkotzen-CEPI --max-depth 2 \ | |
--since-commit 9cd031577750f88648a0cee5f8d6ed781f717c6b --trace | |
DEBU[0000] running version dev | |
DEBU[0000] running version dev | |
DEBU[0000] running with up to 1 workers | |
DEBU[0000] loaded 2 decoders | |
DEBU[0000] loaded 694 detectors total, 694 with verification enabled. 0 with verification disabled | |
DEBU[0000] Cloning remote Git repo without authentication |
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
$ trufflehog filesystem --directory . --trace | |
DEBU[0000] running version dev | |
DEBU[0000] running version dev | |
DEBU[0000] running with up to 32 workers | |
DEBU[0000] loaded 2 decoders | |
DEBU[0000] loaded 694 detectors total, 694 with verification enabled. 0 with verification disabled | |
🐷🔑🐷 TruffleHog. Unearth your secrets. 🐷🔑🐷 | |
Found unverified result 🐷🔑❓ | |
Detector Type: AWS |
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 hashlib | |
import hmac | |
import os | |
from time import time | |
from flask import Request, abort | |
SLACK_SIGNING_SECRET = os.environ['SLACK_SIGNING_SECRET'] |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
# define GCP project and GCS bucket backend for Terraform state | |
GCP_PROJECT="$1" | |
BACKEND_BUCKET="${2:-${GCP_PROJECT}-terraform}" | |
# create versioned bucket if it doesn't exist, skip otherwise | |
if gsutil mb -p "${GCP_PROJECT}" "gs://${BACKEND_BUCKET}" ; then |
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
// one can also use Google Cloud Firestore library, | |
// with a slight change in semantics | |
import { firestore } from 'firebase-admin'; | |
import { EventContext, runWith } from 'firebase-functions'; | |
import { promisify } from 'util'; | |
const eventCollection = 'function-events'; | |
enum EventStatus { | |
RUNNING = 'running', |
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
{% set PROJECT = env['project'] %} | |
{% set REGION = properties['region'] | default('us-east1') %} | |
{% set PARENT = 'projects/' + PROJECT + '/locations/' + REGION %} | |
{% set PREFIX = env['deployment'] %} | |
{% set CLOUDRUN_TYPE_PROVIDER = PREFIX + '-provider' %} | |
{% set CLOUDRUN_SERVICE_TYPE = PROJECT + '/' + CLOUDRUN_TYPE_PROVIDER + ':projects.locations.services' %} |
NewerOlder