Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
This file has been truncated, but you can view the full file.
This file contains hidden or 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
# gettimeofday gettimeofday REALTIME MONOTONIC PROCESS THREAD TSC | |
0 2016-12-31T23:59:00Z 1483228740.980454 1483228740.980456486 1675912.304489305 0.045795000 0.045841000 000ed62beff58586 | |
1 2016-12-31T23:59:00Z 1483228740.984106 1483228740.984106261 1675912.308139016 0.045795000 0.049488000 000ed62bf0802efe | |
2 2016-12-31T23:59:00Z 1483228740.987764 1483228740.987764731 1675912.311797474 0.045795000 0.053146000 000ed62bf10b47e6 | |
3 2016-12-31T23:59:00Z 1483228740.991402 1483228740.991402781 1675912.315435528 0.045795000 0.056784000 000ed62bf1959af6 | |
4 2016-12-31T23:59:00Z 1483228740.995043 1483228740.995043336 1675912.319076072 0.045795000 0.060424000 000ed62bf220045e | |
5 2016-12-31T23:59:00Z 1483228740.998685 1483228740.998685918 1675912.322718656 0.045795000 0.06406600 |
This file contains hidden or 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
bundle agent detect_guest_freebsd | |
{ | |
vars: | |
freebsd:: | |
"fbsd_vm_guest" string => execresult("$(paths.path[sysctl]) -n kern.vm_guest", "noshell"); | |
"fbsd_known_guest_vms" data => '{ | |
"xen": "xen_domu", |
This file contains hidden or 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
bundle agent travis_ci | |
{ | |
vars: | |
"travis" string => getenv("TRAVIS", "4"); | |
"ci" string => getenv("CI", "4"); | |
"os_name" string => getenv("TRAVIS_OS_NAME", "6"); | |
classes: |
This file contains hidden or 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
bundle agent aws | |
{ | |
methods: | |
"any" usebundle => ec2_metadata("meta-data/instance-id", "^i-.*"), | |
useresult => "metadata"; | |
"any" usebundle => ec2_metadata("meta-data/instance-type", "^[tmcxrpgid]\d\.(nano|micro|small|medium|\d?x?large)$"), | |
useresult => "metadata"; |
This file contains hidden or 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
bundle agent detect_vm | |
{ | |
vars: | |
"mac_address" string => string_downcase(string_head("$(sys.hardware_mac[$(sys.interface)])", "8")); | |
"vm_ouis" data => '{ | |
"00:05:69": "vmware", | |
"00:0C:29": "vmware", | |
"00:1C:14": "vmware", |
This file contains hidden or 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
set remindMe to (date (short date string of ((current date)))) + (17 * 60 * 60) | |
tell application "Reminders" | |
set mylist to list "Work" | |
tell mylist | |
make new reminder with properties {name:"Roll Out DNS Updates", remind me date:remindMe} | |
end tell | |
end tell |
This file contains hidden or 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
#!/usr/local/bin/python | |
import json | |
import sys | |
from urllib import urlencode, urlopen | |
from tabulate import tabulate | |
from colorama import Fore, Style | |
stocks = [ 'AAPL', 'NFLX', 'YHOO', 'GOOG', 'TSLA', 'MSFT', 'TEAM', 'NTAP' ] |
This file contains hidden or 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
#!/usr/local/bin/python | |
import socket | |
import sys | |
if(len(sys.argv) != 3): | |
print('usage: rdymsg.py PRINTER MESSAGE') | |
sys.exit(1) | |
printer = sys.argv[1] |
This file contains hidden or 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
$ acpiconf -i0 | |
Design capacity: 5616 mAh | |
Last full capacity: 3216 mAh | |
Technology: secondary (rechargeable) | |
Design voltage: 10800 mV | |
Capacity (warn): 160 mAh | |
Capacity (low): 18 mAh | |
Low/warn granularity: 1 mAh | |
Warn/full granularity: 1 mAh | |
Model number: 42T4791 |