GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.
For more information, visit our search help section.
| # Source: https://gist.github.com/0431989df4836eb82bdac0cc53c7f3d6 | |
| # Used in https://youtu.be/R6OeIgb7lUI | |
| ############################## | |
| # Flux 2 With GitOps Toolkit # | |
| ############################## | |
| # What Is GitOps And Why Do We Want It?: https://youtu.be/HKkhD6nokC8 | |
| # Argo CD: Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4 |
| const puppeteer = require("puppeteer"); | |
| const opn = require("opn"); | |
| const nodemailer = require("nodemailer"); | |
| const timeout = 5000; | |
| const waitForTimeout = 1000; | |
| const cartLink = | |
| "https://store.nvidia.com/store/nvidia/en_US/buy/productID.5438481700/clearCart.yes/nextPage.QuickBuyCartPage"; |
| // This script takes an iTerm Color Profile as an argument and translates it for use with Visual Studio Code's built-in terminal. | |
| // | |
| // usage: `node iterm-colors-to-vscode.js [path-to-iterm-profile.json] | |
| // | |
| // To export an iTerm Color Profile: | |
| // 1) Open iTerm | |
| // 2) Go to Preferences -> Profiles -> Colors | |
| // 3) Other Actions -> Save Profile as JSON | |
| // | |
| // To generate the applicable color settings and use them in VS Code: |
GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.
For more information, visit our search help section.
Objective: Print the lyrics for the current playing song.
How: We'll create a small bash script to do the fetching for us (using curl) and then we'll
display it either in the terminal or in our $EDITOR
First we'll need to get the name of the current song and its artist:
| //The global script scope | |
| def ctx = context(scope: scriptScope()) | |
| //What things can be on the script scope | |
| contributor(ctx) { | |
| method(name: 'pipeline', type: 'Object', params: [body: Closure]) | |
| property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable') | |
| property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder') | |
| property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder') | |
| property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar') |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
Operator Mono w/ Italics on OSX Vim
| $remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
| $found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
| if( $found ){ | |
| $remoteport = $matches[0]; | |
| } else{ | |
| echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
| exit; | |
| } |
| <?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>IncompatiblePaths</key> | |
| <array> | |
| <dict> | |
| <key>Application Name</key> | |
| <string>Sxs Memory Card Driver</string> | |
| <key>Blurb</key> |