-
Go to https://cachedview.com/
-
Navigate to the deleted repo, e.g. https://webcache.googleusercontent.com/search?q=cache:https://github.com/apcera/termtables
-
Copy latest known commit sha1 signature
This file contains hidden or 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 | |
| read -p "Enter the new Git repo name: " REPO_NAME | |
| if [ -d "$REPO_NAME" ]; then | |
| echo "A repository named '$REPO_NAME' already exists." | |
| exit 1 | |
| else | |
| echo "Creating new repo '$REPO_NAME'..." | |
| fi | |
| BARE_REPO_PATH="/home/git/${REPO_NAME}" | |
| WORKING_REPO_PATH="/tmp/${REPO_NAME}-working" |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
This file contains hidden or 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 | |
| # Refer to https://github.com/k3s-io/k3s/releases for your prefered release | |
| export INSTALL_K3S_VERSION="v1.24.10+k3s1" | |
| for node in node1 node2 node3;do | |
| multipass launch -n $node -c 2 -m 4G | |
| done | |
| # Init cluster on node1 |
This file contains hidden or 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
| redis-cli keys \* | while read key; do value="`redis-cli get "$key"`"; echo "$key: $value"; done |
Original blog: https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated
Example for new timezone aware objects:
from datetime import datetime, timezone
def aware_utcnow():
return datetime.now(timezone.utc)Just run the following command:
cat ~/.vscode/extensions/extensions.json | jq -r ".[] | .identifier.id"The script will create a ZIP file according to the AWS Documented process.
The resulting ZIP file can then be uploaded to S3 from where you can create the Lambda function, either by the AWS CLI, the AWS Console or by AWS CloudFormation. Just supply the S3 ZIP file URL and your Lambda function will be created.
- Create a directory for your Python script (Lambda function) and create the initial script. If you need additional packages, specify then in a
requirements.txtfile in the same directory as the Python script - Code... coffee... code... coffee... etc. (repeat as required)
This file contains hidden or 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
| [2023-12-30T07:12:55Z TRACE hyper::client::pool] checkout waiting for idle connection: ("https", github.com) | |
| [2023-12-30T07:12:55Z DEBUG reqwest::connect] starting new connection: https://github.com/ | |
| [2023-12-30T07:12:55Z TRACE hyper::client::connect::http] Http::connect; scheme=Some("https"), host=Some("github.com"), port=None | |
| [2023-12-30T07:12:55Z DEBUG hyper::client::connect::dns] resolving host="github.com" | |
| [2023-12-30T07:12:55Z DEBUG hyper::client::connect::http] connecting to 140.82.121.3:443 | |
| [2023-12-30T07:12:55Z DEBUG hyper::client::connect::http] connected to 140.82.121.3:443 | |
| [2023-12-30T07:12:55Z TRACE hyper::client::conn] client handshake Http1 | |
| [2023-12-30T07:12:55Z TRACE hyper::client::client] handshake complete, spawning background dispatcher task | |
| [2023-12-30T07:12:55Z TRACE hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy } | |
| [2023-12-30T07:12:55Z TRACE hyper::client::pool] checkout dropped for ("https", github.com) |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
NewerOlder