Make sure we're using Amazon Linux
$ cat /etc/amazon-linux-release
Amazon Linux release 2023.4.20240429 (Amazon Linux)
/
for 200,302
)It appears kubectl
has first-class support via api-resources
like:
$ kubectl api-resources -o wide
$ kubectl api-resources --api-group certificates.k8s.io -o wide
$ kubectl api-resources --namespaced -o wide
Alternatively, we can use curl
to query Kubernetes API, but we have to expose the API endpoint first:
git config filter.strip-notebook-output.clean 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'
Or
git config --global filter.strip-notebook-output.clean 'docker run --rm -i -v \"${pwd}:/home/jovyan\" jupyter/datascience-notebook jupyter nbconvert --clear-output --to=notebook --stdin --stdout --log-level=ERROR'
.gitattributes
file inside the directory with the notebooksrequire Vagrant.source_root.join("plugins/commands/ssh_config/command") | |
Vagrant.configure(2) do |config| | |
config.vm.define "ubuntu" do |ubuntu| | |
ubuntu.vm.box = "ubuntu" | |
ubuntu.trigger.after :up do |trigger| | |
trigger.ruby do |env,machine| | |
ssh_template = VagrantPlugins::CommandSSHConfig::Command.new(["--host", machine.name.to_s, machine.name.to_s], env) | |
ssh_config = File.join(File.expand_path('~'), '.ssh', 'config.d', machine.name.to_s) | |
$stdout = File.new(ssh_config, 'w') |
#!/bin/sh | |
if [[ `id -u` != 0 ]]; then | |
echo "Must be root to run script" | |
exit | |
fi | |
read -p "Enter user name and press [ENTER]: " UserName | |
if [[ $UserName == `dscl . -list /Users UniqueID | awk '{print $1}' | grep -w $UserName` ]]; then |
# install p4v tools
brew install --cask p4v
# configure git
git config --global diff.tool p4merge
git config --global difftool.p4merge.path /Applications/p4merge.app/Contents/Resources/launchp4merge
git config --global difftool.prompt false
git config --global merge.tool p4merge
git config --global mergetool.p4merge.path /Applications/p4merge.app/Contents/Resources/launchp4merge
# Simple script to check drivers in C:\windows\system32\drivers against the loldrivers list | |
# Author: Oddvar Moe - @oddvar.moe | |
$drivers = get-childitem -Path c:\windows\system32\drivers | |
$web_client = new-object system.net.webclient | |
$loldrivers = $web_client.DownloadString(" https://www.loldrivers.io/api/drivers.json") | ConvertFrom-Json | |
Write-output("Checking {0} drivers in C:\windows\system32\drivers against loldrivers.io json file" -f $drivers.Count) | |
foreach ($lol in $loldrivers.KnownVulnerableSamples) | |
{ |