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
from typing import NamedTuple, Optional | |
from enum import Enum | |
class Dir(Enum): | |
Up = 0 | |
Right = 1 | |
Down = 2 | |
Left = 3 |
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
Bringing machine 'macos' up with 'virtualbox' provider... | |
==> macos: Importing base box 'https://vagrant-osx.nyc3.digitaloceanspaces.com/osx-sierra-0.3.1.box'... | |
==> macos: Matching MAC address for NAT networking... | |
==> macos: Setting the name of the VM: 6003_baltech_sdk_macos_1566675902572_24670 | |
==> macos: Fixed port collision for 22 => 2222. Now on port 2200. | |
==> macos: Preparing SMB shared folders... | |
Vagrant requires administrator access to create SMB shares and | |
may request access to complete setup of configured shares. | |
==> macos: Clearing any previously set network interfaces... |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "koalephant/debian9-i386" | |
config.vm.provision "shell", inline: <<-SHELL | |
echo deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main >>/etc/apt/sources.list | |
apt-get update | |
apt-get -y --allow-unauthenticated install libclang1-7 | |
SHELL | |
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
import subprocess | |
import pygit2 | |
import tempfile | |
REPODIR = tempfile.mkdtemp() + '/errrepo' | |
repo = pygit2.init_repository(REPODIR) | |
# create invalid tree with empty dir | |
emptyTree = repo.TreeBuilder().write() |
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
#!python3 | |
""" | |
Access windows credentials | |
""" | |
from typing import Tuple | |
import ctypes as CT | |
import ctypes.wintypes as WT | |
CRED_TYPE_GENERIC = 0x01 |
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
Invalid remote Gitlab url: https://gitlab.com/tobyd/drone-boat.git |
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
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty32" | |
config.vm.provision "shell", inline: <<-SHELL | |
# install components required for building libgit2 / pygit2 | |
sudo apt-get install -y git | |
sudo apt-get install -y cmake | |
sudo apt-get install -y --fix-missing python-pip # ignore missing server | |
sudo apt-get install -y python-dev | |
sudo apt-get install -y python-cffi | |