Skip to content

Instantly share code, notes, and snippets.

@sriramnrn
sriramnrn / gist:ccdcfc020fed714432bd9f7cfd156832
Last active February 14, 2021 13:11
successful docker build of f1c56f3b8686a6728b26e09be46f98f78e428cb7 of tsunami-security-scanner
vagrant@ubuntu-bionic:~$ git clone https://github.com/google/tsunami-security-scanner.git
Cloning into 'tsunami-security-scanner'...
remote: Enumerating objects: 39, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 930 (delta 7), reused 26 (delta 2), pack-reused 891
Receiving objects: 100% (930/930), 298.32 KiB | 442.00 KiB/s, done.
Resolving deltas: 100% (349/349), done.
vagrant@ubuntu-bionic:~$ cd tsunami-security-scanner/
vagrant@ubuntu-bionic:~/tsunami-security-scanner$ sudo docker build -t tss:1 .
@sriramnrn
sriramnrn / merge_request
Created February 4, 2019 11:46
merge_request
{"object_kind":"merge_request","event_type":"merge_request","user":{"name":"Administrator","username":"root","avatar_url":"https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon"},"project":{"id":1,"name":"trial","description":"","web_url":"http://localhost/root/trial","avatar_url":null,"git_ssh_url":"git@localhost:root/trial.git","git_http_url":"http://localhost/root/trial.git","namespace":"root","visibility_level":20,"path_with_namespace":"root/trial","default_branch":"master","ci_config_path":null,"homepage":"http://localhost/root/trial","url":"git@localhost:root/trial.git","ssh_url":"git@localhost:root/trial.git","http_url":"http://localhost/root/trial.git"},"object_attributes":{"assignee_id":null,"author_id":1,"created_at":"2019-02-03T14:18:44.583Z","description":"","head_pipeline_id":null,"id":1,"iid":1,"last_edited_at":null,"last_edited_by_id":null,"merge_commit_sha":"a1cbd991d65facfac61d6a11c578cbe60f709577","merge_error":null,"merge_params":{"force_remove_source_branch
{"object_kind":"push","event_name":"push","before":"73e63a1a77e07bcc773f4a8949ee98b353de3240","after":"a1cbd991d65facfac61d6a11c578cbe60f709577","ref":"refs/heads/master","checkout_sha":"a1cbd991d65facfac61d6a11c578cbe60f709577","message":null,"user_id":1,"user_name":"Administrator","user_username":"root","user_email":"","user_avatar":"https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon","project_id":1,"project":{"id":1,"name":"trial","description":"","web_url":"http://localhost/root/trial","avatar_url":null,"git_ssh_url":"git@localhost:root/trial.git","git_http_url":"http://localhost/root/trial.git","namespace":"root","visibility_level":20,"path_with_namespace":"root/trial","default_branch":"master","ci_config_path":null,"homepage":"http://localhost/root/trial","url":"git@localhost:root/trial.git","ssh_url":"git@localhost:root/trial.git","http_url":"http://localhost/root/trial.git"},"commits":[{"id":"a1cbd991d65facfac61d6a11c578cbe60f709577","message":"Merge branch 'dummy'
@sriramnrn
sriramnrn / gist:1b5326544fcecfea32e2d667369ab741
Created February 3, 2019 08:58
prtconf-v of an AMD EPYC at Hetzner
System Configuration: GIGABYTE i86pc
Memory size: 130958 Megabytes
System Peripherals (Software Nodes):
i86pc
System properties:
name='relative-addressing' type=int items=1
value=00000001
name='MMU_PAGEOFFSET' type=int items=1
value=00000fff
@sriramnrn
sriramnrn / gist:5a6d3263b6e71317ceac7a49df2ca666
Created December 23, 2018 14:57
a well-formed JSON - first smartos image manifest
[{
"uuid": "b9523a48-4533-4b84-8d6a-87023bed5657",
"name": "osbuilder-base",
"version": "0.1",
"description": "SmartOS builder base image",
"os": "smartos",
"type": "zone-dataset",
"platform_type": "smartos",
"cloud_name": "hetzner",
"urn": "hetzner:SriramNarayanan:osbuilder-base:0.1",
@sriramnrn
sriramnrn / smartos-bootstrap.yml
Created August 11, 2017 04:54 — forked from jasperla/smartos-bootstrap.yml
Bootstrapping Ansible on SmartOS headnode
---
# Playbook to bootstrap a SmartOS headnode for use with Ansible
- name: bootstrap a SmartOS headnode
hosts: smartos-headnode
gather_facts: no
vars:
pkgsrc_rel: 2017Q1
bootstrap_tar: bootstrap-{{ pkgsrc_rel }}-tools.tar.gz
bootstrap_sha1: a39d8dce904c2d0afb3cb570c671490153a71f15
ansible_ssh_pubkey: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDCXRiC3PzMKMCI7X1s2l6amMfN0avqlyRasd1VU0pLiROwu6fyyA1HAkngnu68dXfReAx2/CVYOxXDAQUOyXAgR4wDPOd1NT7NQWFawr0xN8RdgD0l8BQRbJfz61KvBUyFC7brsg5liIbAsqDwB35s3Nchq8yEJj6cv7CPngP/5JMS6wUUT6CFtWimqsxRVGuUNWRlhGeU+CO62EoQXutndhbjbQKGXieKjO3ZLSKsXkDfrfwSwyoc/6HMZP4EJqKWVYufzq3zAxGargDm0a7RRincC1McvbwH/YEx9CDekCzoW1aaATJlvqooX4HzdqwjSduUQD/2rfHpL8576jYZsZWOAseJgDJAN5LvFiVTdFtC8el9BdT7J5EpKb8t7zlMRJ12qso5IJCabzcqTtpPhzu/JdP5wLDPyExAZI94vO8q0CLbMvkMYiS7hpgVHshmxsTiyOzT+nxmoJwqnCIUAq8sQgM8o/Nou0lzX55zVRx3icTlhdNCLQx/62pcbvm2pVjPDGd/yf0g1fdAxH7QIth6qmerFdiXmER0VkJ0V9nDQNbPbkzLp713TXaYI2grLbs9D+SHTXOSWD3H16V4KitYdGyBS17IwRGKxdSDDlX4lQiUNZhsEoEycqfKc3KXHTdZcXwK+gwkB+jl8L
@sriramnrn
sriramnrn / gist:98c99396166e46e93e9182bc69855a7b
Created July 29, 2017 10:05
ruby 2.4.1 make check errors
1) Failure:
TestMiniTestUnitTestCase#test_assert_equal_different_collection_array_hex_invisible [/home/builder/ruby-2.4.1/test/minitest/test_minitest_unit.rb:1657]:
--- expected
+++ actual
@@ -1,3 +1,2 @@
-"No visible difference in the Array#inspect output.
-You should look at the implementation of #== on Array or its members.
-[#<Object:0xXXXXXX>]"
+"No differences encountered
+"
@sriramnrn
sriramnrn / gist:5d9eb06f69cab3369f9c0ea75cd3ecad
Created June 4, 2017 09:54
prtconf -v output of a Hetzner PX61-NVMe
System Configuration: FUJITSU i86pc
Memory size: 65364 Megabytes
System Peripherals (Software Nodes):
i86pc
System properties:
name='relative-addressing' type=int items=1
value=00000001
name='MMU_PAGEOFFSET' type=int items=1
value=00000fff