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 ( | |
"bytes" | |
"crypto/tls" | |
"fmt" | |
"log" |
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 you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
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 | |
# Configuration | |
URL="https://cilium.slack.com/join/shared_invite/zt-2i32e3vq8-wZwHT3v2RCI0YNDiqkIK3g" | |
EXPECTED_TITLE="Join Cilium & eBPF on Slack | Slack" | |
LOG_FILE="$HOME/Developer/Isovalent/check_slack/website_check_log.txt" | |
USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" | |
ACCEPT="text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" | |
ACCEPT_LANGUAGE="en-US,en;q=0.9" |
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 requests | |
def get_org_repos(org_name, token): | |
"""Fetch all repositories for the specified organization.""" | |
repos = [] | |
page = 1 | |
while True: | |
url = f'https://api.github.com/orgs/{org_name}/repos?page={page}' | |
headers = {'Authorization': f'token {token}'} | |
response = requests.get(url, headers=headers) |
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
# Setting PATH for Python 3.8 | |
# The original version is saved in .zprofile.pysave | |
PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}" | |
export PATH | |
export PATH="$HOME/.cargo/bin:$PATH" |
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
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
DISABLE_UNTRACKED_FILES_DIRTY="true" | |
export NVM_DIR="/Users/coder_blvck/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |
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
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference | |
version: 2.1 | |
# Use a package of configuration called an orb. | |
orbs: | |
# Declare a dependency on the cloudfoundry-orb | |
cloudfoundry: circleci/[email protected] | |
# Orchestrate or schedule a set of jobs | |
workflows: | |
cf-deploy: | |
jobs: |
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
version: '2.1' | |
jobs: | |
install-login-deploy: | |
docker: | |
- image: cimg/base:stable | |
steps: | |
- checkout | |
- run: | |
name: Install Cloud Foundry CLI |
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
stages: | |
- build | |
- deploy | |
build: | |
image: node:14 | |
stage: build | |
script: | |
- npm install | |
- npm audit fix |
NewerOlder