This file contains 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
#bluesky { | |
height: 33px; | |
width: 36px; | |
display: block; | |
color: black; | |
background-color: white; | |
background-repeat: no-repeat; | |
background-image: url("data:image/svg+xml,%3Csvg width='36' height='32' viewBox='0 0 360 320' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M254.896 184.158C252.81 183.926 250.733 183.645 248.671 183.315C250.773 183.574 252.849 183.855 254.896 184.158Z' fill='white'/%3E%3Cpath d='M180 141.964C163.699 110.262 119.308 51.1817 78.0347 22.044C38.4971 -5.86834 23.414 -1.03207 13.526 3.43594C2.08093 8.60755 0 26.1785 0 36.5164C0 46.8542 5.66748 121.272 9.36416 133.694C21.5786 174.738 65.0603 188.607 105.104 184.156C107.151 183.852 109.227 183.572 111.329 183.312C109.267 183.642 107.19 183.924 105.104 184.156C46.4204 192.847 -5.69621 214.233 62.6582 290.33C137.848 368.18 165.705 273.637 180 225.702C194.295 273.637 210.76 364.771 295.995 290.33C360 225.702 313.58 192.85 254.896 184.158C252.81 183.926 250.733 183.645 248.671 183.315C250.773 183.574 252.849 183.855 254.8 |
This file contains 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
#!/bin/sh | |
while true; do | |
echo "hello world" | |
/bin/sleep 10 | |
done |
This file contains 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
#!/bin/bash | |
apt-get update | |
apt-get install --assume-yes fio htop sysstat | |
sudo mkdir -p /mnt/disks/ssd0 | |
sudo mkfs.ext4 -F /dev/disk/by-id/google-local-ssd-0 | |
sudo mount -o discard,defaults,noatime,nodiratime /dev/disk/by-id/google-local-ssd-0 /mnt/disks/ssd0 | |
sudo chown fcuny /mnt/disks/ssd0 |
This file contains 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1 | |
mQMuBFKXzrERCAC7KPUVUub247LnrJRX/LhTgi0SkQ64IDT8oHJqxKjvvTyNRZ+f | |
JhYFQ9eYcSiG87lEWo8qpmiqnPDsGr0AJjFi8P1dkiXpnJUdm0C2GJNmkQ81fI1m | |
wlSoqCCfaR2wv8LSnjJ6lrUZrRE3G1CkKdlC/UuuCtYz7od207p+zFc8xcvWMzmp | |
4CK+rkA6LTZaSO+TA/0FeCfPLQ/JKay2Fv2+BPjMSRuz1Qsj5GKKJZzzLBkpK6D/ | |
L5wbcfJeGxReraMH/HGV7pzUdXRxSc9xVyZYVtyw2BWU+1RKg+1PHiBIpqrgvEFN | |
+gCUbIP/AqUaHDf7dxWQDUme3G+SAa0D9NyTAQDKWgZV2AXMPPzRvNYPsnb31umo | |
06n8w9wR3E4j0vywCQgAn/O2htz4PE6Y+dRl0v/WWDNiXAIGUno2k/doeFaUeKPc |
This file contains 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 'default' up with 'virtualbox' provider... | |
[default] Importing base box 'precise64'... | |
[default] Matching MAC address for NAT networking... | |
[default] Setting the name of the VM... | |
[default] Clearing any previously set forwarded ports... | |
[default] Clearing any previously set network interfaces... | |
[default] Preparing network interfaces based on configuration... | |
[default] Forwarding ports... | |
[default] -- 22 => 2222 (adapter 1) | |
[default] Booting VM... |
This file contains 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.provision :ansible, :playbook => 'playbook.yml' | |
# This configuration is for our local box, when we use virtualbox as the provider | |
config.vm.provider :virtualbox do |vb, override| | |
override.vm.box = "precise64" | |
override.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
end | |
# This configuration is for our EC2 instance |
This file contains 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 = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.ssh.forward_agent = true | |
config.vm.provision :ansible, :playbook => "playbook.yml" | |
end |
This file contains 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
- | |
hosts: all | |
sudo: yes | |
tasks: | |
- name: Install htop | |
apt: pkg=htop state=installed |
This file contains 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
$ valgrind --tool=cachegrind ./test | |
==11710== Cachegrind, a cache and branch-prediction profiler | |
==11710== Copyright (C) 2002-2013, and GNU GPL'd, by Nicholas Nethercote et al. | |
==11710== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info | |
==11710== Command: ./test | |
==11710== | |
--11710-- warning: L3 cache found, using its data for the LL simulation. | |
--11710-- warning: pretending that LL cache has associativity 30 instead of actual 20 | |
==11710== | |
==11710== I refs: 163,367 |
This file contains 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
$ valgrind --tool=callgrind --simulate-cache=yes ./test | |
$ callgrind_annotate --auto=yes callgrind.out.11015 test.c | |
-------------------------------------------------------------------------------- | |
-- User-annotated source: test.c | |
-------------------------------------------------------------------------------- | |
Ir Dr Dw I1mr D1mr D1mw ILmr DLmr DLmw | |
. . . . . . . . . #include <stdio.h> | |
. . . . . . . . . | |
3 0 1 1 0 0 1 . . int main() { |
NewerOlder