Skip to content

Instantly share code, notes, and snippets.

View greg-hellings's full-sized avatar

Greg Hellings greg-hellings

View GitHub Profile
__ZN5sword14SWOptionFilterC2EPKcS2_PKNSt3__14listINS_5SWBufENS3_9allocatorIS5_EEEE T c11a0 0
__ZN5sword14SWOptionFilterC2Ev T c1030 0
__ZN5sword14SWOptionFilterD0Ev T c1580 0
__ZN5sword14SWOptionFilterD1Ev T c15d0 0
__ZN5sword14SWOptionFilterD2Ev T c1670 0
var someThings = [1, 2, 3, 4];
someThings.each(function(thing) {
x = thing + 1;
});
var x;
alert(x);
[
{ "Name1": 2 },
{ "Name2": 2 },
{ "Name1": 5 },
{ "Name3": 2 },
{ "Name2": 1 }
]
- name: set facts
set_fact:
arg_name: test_true
when: foo
- name: set facts
set_fact:
arg_name: test_false
when: not foo
{
"language": "php",
"php" : ["7.0"],
"install": [
"composer self-update",
"composer install"
],
"script": [
"phpunit --bootstrap vendor/autoload.php tests"
]
- 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"
- 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
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));
}
$ 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
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']