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
# Change the default shell to Bash by running the following command: | |
chsh -s /bin/bash |
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
# With swiss keyboard: | |
Shift + > + space | |
# US keybpard | |
Shift + ` + space | |
# It is basically the key right next to the left Shift key + Shift key itself + space |
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
sudo launchctl unload /Library/LaunchDaemons/com.zscaler.service.plist && sudo launchctl unload /Library/LaunchDaemons/com.zscaler.UPMServiceController.plist |
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
xattr -d com.apple.quarantine /path/to/file |
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 | |
# From https://rakhesh.com/powershell/vpn-client-over-riding-dns-on-macos/ | |
# You can debug dns issues with: dns-sd -G v4v6 host.example.com | |
# You can put this file in home then crontab: | |
# @hourly /Users/yourname/fix_dns.sh | |
sudo scutil << EOF | |
get State:/Network/Service/gpd.pan/DNS | |
d.remove SearchDomains | |
d.remove ServerAddress |
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
for i in $(ls -d */); do echo "$i"; cd $(echo "$(pwd)/$i" | sed -e $'s/\x1b\[[0-9;]*m//g'); git branch | grep BRANCH_NAME_TO_SEARCH ;cd ..; done |
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 | |
# Install prerequisites | |
sudo apt install -y ubuntu-desktop | |
sudo apt install -y qemu-guest-agent, spice-vdagent, spice-webdavd, davfs2 | |
# Check if spice vdagent is enabled to get right click/clipboard working through utm | |
sudo systemctl start spice-vdagent | |
sudo systemctl enable spice-vdagent | |
sudo systemctl status spice-vdagent |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Terraform v1.1.5 | |
on linux_amd64 | |
Initializing plugins and modules... | |
{"@level":"info","@message":"Terraform 1.1.5","@module":"terraform.ui","@timestamp":"2022-03-16T16:22:52.985423Z","terraform":"1.1.5","type":"version","ui":"1.0"} | |
{"@level":"info","@message":"module.gcloud.null_resource.gcloud_init: Plan to replace","@module":"terraform.ui","@timestamp":"2022-03-16T16:22:59.765190Z","change":{"resource":{"addr":"module.gcloud.null_resource.gcloud_init","module":"module.gcloud","resource":"null_resource.gcloud_init","implied_provider":"null","resource_type":"null_resource","resource_name":"gcloud_init","resource_key":null},"action":"replace","reason":"cannot_update"},"type":"planned_change"} | |
{"@level":"info","@message":"module.monitoring.module.stackdriver-alerting.google_monitoring_metric_descriptor.with_alert: Plan to replace","@module":"terraform.ui","@timestamp":"2022-03-16T16:22:59.766321Z","change":{"resource":{"addr":"module.monitoring.module.stackdriver-alerting.google_monitoring_metric_descriptor.with |
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 https://stackoverflow.com/questions/16244969/how-to-tell-git-to-ignore-individual-lines-i-e-gitignore-for-specific-lines-of | |
# Run the following command: | |
git config --global filter.gitignore.clean "sed '/#gitignore$/d'" | |
# Now, either add a local file in .git/info/attributes | |
echo "*.extension_to_be_ignored filter=gitignore" > ./.git/info/attributes | |
# or write into a file that will be part of your code | |
echo "path_to_file_with_the_ignore_directive filter=gitignore" > ./.gitattributes |
NewerOlder