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 sh | |
| # Usage: zig-hash <path to build.zig.zon> | |
| BUILD_ZIG_ZON="${1:-build.zig.zon}" | |
| ROOT_DIR="$(dirname "$BUILD_ZIG_ZON")" | |
| # Get hash of a file, which is computed from: | |
| # - its normalized filepath | |
| # - followed by two null bytes (apparently temporary solution in Zig, only for normal files) | |
| # - followed by actual file content |
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 | |
| echo "WARN: This will remove everything from docker: volumes, containers and images. Will you dare? [y/N] " | |
| read choice | |
| if [ \( "$choice" == "y" \) -o \( "$choice" == "Y" \) ] | |
| then | |
| sudo echo "> sudo rights [OK]" | |
| sizea=`sudo du -sh /var/lib/docker/aufs` |
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
| [Unit] | |
| Description=X Virtual Frame Buffer Service | |
| After=network.target | |
| [Service] | |
| ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24 | |
| [Install] | |
| WantedBy=multi-user.target |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| cluster = { | |
| "master" => { :ip => "192.168.33.10", :cpus => 1, :mem => 1024 }, | |
| "slave" => { :ip => "192.168.33.11", :cpus => 1, :mem => 1024 } | |
| } | |
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
| $type = [System.Security.Cryptography.X509Certificates.X509ContentType]::Cert | |
| get-childitem -path cert:\LocalMachine\AuthRoot | ForEach-Object { | |
| $hash = $_.GetCertHashString() | |
| [System.IO.File]::WriteAllBytes("$hash.der", $_.export($type) ) | |
| } |
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
| wget http://download.virtualbox.org/virtualbox/4.3.12/VBoxGuestAdditions_4.3.12.iso | |
| sudo mkdir /media/iso | |
| sudo mount -o loop ./VBoxGuestAdditions_4.3.12.iso /media/iso | |
| sudo bash /media/iso/VBoxLinuxAdditions.run --nox11 | |
| sudo umount /media/iso |
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 | |
| ### BEGIN INIT INFO | |
| # Provides: vmwareautostart | |
| # Required-Start: $vmware $network $syslog | |
| # Required-Stop: $vmware $network $syslog | |
| # X-Start-Before: | |
| # X-Stop-After: | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 |
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
| file_to_disk = './tmp/large_disk.vdi' | |
| Vagrant::Config.run do |config| | |
| config.vm.box = 'base' | |
| config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024] | |
| config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk] | |
| end |
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
| # Tell system when Xcode utilities live: | |
| sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | |
| # Set "opendiff" as the default mergetool globally: | |
| git config --global merge.tool opendiff |