Skip to content

Instantly share code, notes, and snippets.

View greg-hellings's full-sized avatar

Greg Hellings greg-hellings

View GitHub Profile
[  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;
#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
ANSIBLE_COW_PATH(default) = None
ANSIBLE_COW_SELECTION(default) = default
ANSIBLE_COW_WHITELIST(default) = ['bud-frogs', 'bunny', 'cheese', 'daemon', 'default', 'dragon', 'elephant-in-snake', 'elephant', 'eyes', 'hellokitty', 'kitty', 'luke-koala', 'meow', 'milk', 'moofasa', 'moose', 'ren', 'sheep', 'small', 'stegosaurus', 'stimpy', 'supermilker', 'three-eyes', 'turkey', 'turtle', 'tux', 'udder', 'vader-koala', 'vader', 'www']
$ docker run -t centos:7 /usr/lib/systemd/systemd --system
^C
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3ce1f1998396 centos:7 "/usr/lib/systemd/..." 28 seconds ago Up 27 seconds musing_kare
$ docker exec -it musing_kare /bin/bash
[root@3ce1f1998396 /]# yum install openssh-server
<snip>
[root@3ce1f1998396 /]# systemctl start sshd.service
public class Base {
protected List<Cell> cells = new ArrayList<>();
protected Matrix matrix;
public Base(Matrix matrix) {
this.matrix = matrix;
for(int i = 0; i < matrix.dimension(); ++i)
// This call won't work, because Row.row isn't set until after the call to super(matrix);
this.cells.add(this.getCell(i));
}
- name: install Jenkins
hosts: all
tasks:
- name: install Jenkins repo file
get_url:
url: https://fedorapeople.org/~semyers/jenkins-rpm/jenkins1651.repo
dest: /etc/yum.repos.d/jenkins.repo
owner: root
group: root
become: true
- name: do something
lineinfile:
dest: "{{ item.file }}"
line: "{{ item.line }}"
state: present
with_items:
- file: /some/path/file.txt
line: "some line that needs to be there"
- file: /other/path/file.bat
line: "another line"
{
"language": "php",
"php" : ["7.0"],
"install": [
"composer self-update",
"composer install"
],
"script": [
"phpunit --bootstrap vendor/autoload.php tests"
]