Skip to content

Instantly share code, notes, and snippets.

View greg-hellings's full-sized avatar

Greg Hellings greg-hellings

View GitHub Profile
#cloud-config
system_info:
default_user:
name: vagrant
chpasswd:
list: |
vagrant:vagrant
expire: false
runcmd:
- service sshd start
#!/usr/bin/env python3
import fileinput
from Sword import VerseKey
for line in fileinput.input():
print(VerseKey(line).getOSISRef())
#cloud-config
system_info:
default_user:
name: vagrant
chpasswd:
list: |
vagrant:vagrant
expire: false
runcmd:
- service sshd start
[  2%] Building CXX object CMakeFiles/sword.dir/src/keys/treekeyidx.cpp.o
In file included from /usr/include/asm/types.h:26,
                 from /usr/include/linux/types.h:5,
                 from /usr/include/linux/stat.h:5,
                 from /usr/include/bits/statx.h:31,
                 from /usr/include/sys/stat.h:446,
                 from /home/vagrant/sword/include/filemgr.h:26,
                 from /home/vagrant/sword/src/keys/treekeyidx.cpp:31:
/usr/include/asm-generic/int-l64.h:29:25: error: conflicting declaration ‘typedef long int __s64’
   29 | typedef __signed__ long __s64;
#include <iostream>
class Poop {
public:
Poop(int i, int j) :
x(i),
y(j) {}
int x = 0;
int y = 0;
#cloud-config
system_info:
default_user:
name: vagrant
chpasswd:
list: |
vagrant:vagrant
expire: false
runcmd:
- service sshd start
$$$Gen.1.1
In the beginning, God create the heaves and the earth.
$$$Gen.1.2
And the earth was without form, and void
And darkness was upon the face of the deep
$$$Gen.1.3
And the Spirit of God moved
--------------------------------------------------
Teflo Framework v1.1.0
Copyright (C) 2020, Red Hat, Inc.
--------------------------------------------------
2021-04-27 08:20:16,469 WARNING Scenario workspace was not set, therefore the workspace is automatically assigned to the current working directory. You may experience problems if files needed by teflo do not exists in the scenario workspace.
2021-04-27 08:20:16,558 INFO
2021-04-27 08:20:16,559 INFO TEFLO RUN (START)
2021-04-27 08:20:16,559 INFO -------------------------------------------------------------------------------
2021-04-27 08:20:16,559 INFO * Data Folder : /tmp/0tve6a0oey
mykey: some string value
myListKey:
- string element
- string element
- dict_key: value
other_key: value
- dict_key: Bob
other_key: is a dumb dumb
def palindrome(word: str) -> bool:
for x in range(0, len(word)):
if word[x] != word[len(word)-1-x]:
return False
return True
print(palindrome("racecar"))
print(palindrome("bird"))