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
-----BEGIN CERTIFICATE----- | |
MIID1TCCAr2gAwIBAgIULIdpnk5XdZ5HKgZKuHZklCBv0pEwDQYJKoZIhvcNAQEL | |
BQAwXjELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVN0YXRlMQ0wCwYDVQQHDARDaXR5 | |
MRUwEwYDVQQKDAxPcmdhbml6YXRpb24xGTAXBgNVBAMMEGs4cy1vbWljeC12Mi52 | |
aXAwHhcNMjUwMjIzMTQxMzUyWhcNMjYwMjIzMTQxMzUyWjBeMQswCQYDVQQGEwJV | |
UzEOMAwGA1UECAwFU3RhdGUxDTALBgNVBAcMBENpdHkxFTATBgNVBAoMDE9yZ2Fu | |
aXphdGlvbjEZMBcGA1UEAwwQazhzLW9taWN4LXYyLnZpcDCCASIwDQYJKoZIhvcN | |
AQEBBQADggEPADCCAQoCggEBAI38r5dwqDTAivbi8vNfIN01kyiXdB/sPlSnPRnN | |
GEOnW9b04jmxl0paiqFvJLYdnXMFBmg1aP+L2aR/PHHGxUSu5DRHkqrfzk/1HXiB | |
5n3avxEz/FgUCjnFomkDfof6P+dtozcLQQpniIguA+uhSs3oC11pBbOMnW9DfJfw |
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
{{ if regexMatch "^[0-9]+$" (tpl (printf "%v" $val) $) }}{{ tpl (printf "%v" $val) $ }}{{ else }}{{ tpl (printf "%v" $val) $ | quote }}{{ end }} |
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
# Clean cache | |
sudo rm -rf ~/Library/Application Support/Cursor | |
# Change mac id | |
#!/bin/bash | |
new_machine_id=$(uuidgen | tr '[:upper:]' '[:lower:]') | |
new_dev_device_id=$(uuidgen | tr '[:upper:]' '[:lower:]') | |
new_mac_machine_id=$(openssl rand -hex 32) | |
echo $new_machine_id > ~/Library/Application\ Support/Cursor/machineid |
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
FROM nginx:alpine AS builder | |
# nginx:alpine contains NGINX_VERSION environment variable, like so: | |
# ENV NGINX_VERSION 1.15.0 | |
# Our NCHAN version | |
ENV NCHAN_VERSION 1.1.15 | |
# Download sources | |
RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \ |
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 | |
# This script merges multiple kubeconfig files into one while preserving existing configurations | |
set -e | |
# Step 1: Create backup directory if it doesn't exist | |
BACKUP_DIR="$HOME/.kube/backups" | |
mkdir -p "$BACKUP_DIR" | |
# Step 2: Create timestamped backup of current config |
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 | |
# Bash shell script for generating self-signed certs. Run this in a folder, as it | |
# generates a few files. Large portions of this script were taken from the | |
# following artcile: | |
# | |
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html | |
# | |
# Additional alterations by: Brad Landers | |
# Date: 2012-01-27 |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name localhost; | |
#access_log /var/log/nginx/host.access.log main; | |
#location / { | |
# root /usr/share/nginx/html; | |
# index index.html index.htm; |
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
abstract class SDPFactory : DefaultTask() { | |
companion object { | |
private const val MIN_DPI = 300 | |
private const val MAX_DPI = 1080 | |
private const val DPI_STEP = 30 | |
} | |
@Input | |
var positiveMax = 600 |
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
# coding:utf-8 | |
# author LuShan | |
# version : 1.1.9 | |
import json | |
# import urllib3 | |
import logging | |
import random | |
import re | |
import requests | |
from urllib.parse import quote |