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 | |
read -p"How many alarms?" count | |
for c in $(seq 1 $count); do | |
read -p"What time are you setting alarm #${c} for? " date | |
echo "Okay, will ring you on $(date --date="$date")." | |
# Create a subshell and background it | |
( | |
sleep $(( $(date --date="$date" +%s) - $(date +%s) )); | |
echo 'Wake up!' #or whatever action you want to take | |
)& |
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
i=0; ls data/js/tweets/*.js | while read; do sed /Grailbird/d $REPLY; done | sed -r 's/^} \] ?\[ \{/}, \{/g' | jq -r '.[] | select(.retweeted_status == null) | select (.entities.media != []) | .entities.media[] | .expanded_url + " " + .media_url_https' | while read tweet image; do id=$(printf $tweet | cut -d/ -f6); filename=$(printf $image | cut -d/ -f5); wget -O data/images/$id-$filename $image:orig& sleep 0.1; 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
差出人: Breeze Productions <career@breezeprod.com> | |
Reply-to: michaelocsferro@gmail.com | |
宛先: undisclosed-recipients : ; | |
件名: Join Breeze Production upcoming project... | |
日付: Mon, 11 Dec 2017 11:08:16 -0600 (11.12.2017 09:08:16) | |
Hello, | |
I’ve reviewed your resume from Zip Recruiter and I think that you’d be a | |
great fit for our project as a Production Assistant for an event we have |
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
travis_fold:start:worker_info | |
[0K[33;1mWorker information[0m | |
hostname: fec3afaa-7996-4133-8812-c0676b894efe@1.production-3-worker-org-b-1-gce | |
version: v3.3.1 https://github.com/travis-ci/worker/tree/1153e5010ef9863bf96264b75fba506109633460 | |
instance: travis-job-b8c9b089-150e-4340-a43f-8e4296fe3324 travis-ci-garnet-trusty-1503972833 (via amqp) | |
startup: 24.915979172s | |
travis_fold:end:worker_info | |
[0Ktravis_fold:start:system_info | |
[0K[33;1mBuild system information[0m | |
Build language: python |
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
[musee@birdy ~]$ /home/musee/.virtualenvs/github3/bin/python | |
/home/musee/.virtualenvs/github3/bin/python: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory | |
[musee@birdy ~]$ mkvirtualenv github3 | |
Using base prefix '/usr' | |
New python executable in /home/musee/.virtualenvs/github3/bin/python3 | |
Not overwriting existing python script /home/musee/.virtualenvs/github3/bin/python (you must use /home/musee/.virtualenvs/github3/bin/python3) | |
Installing setuptools, pip, wheel...done. | |
Overwriting /home/musee/.virtualenvs/github3/bin/activate with new content | |
Overwriting /home/musee/.virtualenvs/github3/bin/activate.fish with new content | |
(github3) [musee@birdy ~]$ /home/musee/.virtualenvs/github3/bin/python |
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
--- discovery.yml 2017-10-31 10:26:55.019158268 -0700 | |
+++ labs-discovery.yml 2017-10-31 10:26:42.012188661 -0700 | |
@@ -1,6 +1,6 @@ | |
--- | |
-Name: "discovery" | |
-Description: "The boot environment to use to have unknown machines boot to default Stage/BootEnv" | |
+Name: "labs-discovery" | |
+Description: "The boot environment to use to have unknown machines boot to Sledgehammer" | |
OnlyUnknown: true | |
OS: |
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
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/site-packages/ansible/runner/__init__.py", line 589, in _executor | |
exec_rc = self._executor_internal(host, new_stdin) | |
File "/usr/local/lib/python2.7/site-packages/ansible/runner/__init__.py", line 793, in _executor_internal | |
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args) | |
File "/usr/local/lib/python2.7/site-packages/ansible/runner/__init__.py", line 972, in _executor_internal_inner | |
conn = self.connector.connect(actual_host, actual_port, actual_user, actual_pass, actual_transport, actual_private_key_file, delegate_host) | |
File "/usr/local/lib/python2.7/site-packages/ansible/runner/connection.py", line 35, in connect | |
conn = utils.plugins.connection_loader.get(transport, self.runner, host, port, user=user, password=password, private_key_file=private_key_file) | |
File "/usr/local/lib/python2.7/site-packages/ansible/utils/plugins.py", line 219, in get |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
ANSIBLE_METADATA = { | |
'metadata_version': '0.2', | |
'status': ['preview'], | |
'supported_by': 'lae' | |
} | |
DOCUMENTATION = ''' |
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
{{if .ParamExists "operating-system-disk" -}} | |
d-i partman-auto/disk string {{.Param "operating-system-disk"}} | |
d-i grub-installer/choose_bootdev select {{.Param "operating-system-disk"}} | |
d-i grub-installer/bootdev string {{.Param "operating-system-disk"}} | |
{{else -}} | |
d-i partman-auto/disk string /dev/sda | |
d-i grub-installer/choose_bootdev select /dev/sda | |
d-i grub-installer/bootdev string /dev/sda | |
{{end -}} | |
d-i partman-auto/method string regular |
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
>>> h = re.search('^(127\.0\.0\.1 (?!hello\.local hello( pvelocalhost)?$)|(?!127\.0\.0\.1)[\w.]*\b(hello\.local|hello)\b.*)', "127.2.0.1 hello.local") | |
>>> h | |
>>> h = re.search('^(127\.0\.0\.1 (?!hello\.local hello( pvelocalhost)?$)|(?!127\.0\.0\.1)[\w.]*\s+(hello\.local|hello)\b.*)', "127.2.0.1 hello.local") | |
>>> h | |
>>> h = re.search('^(127\.0\.0\.1 (?!hello\.local hello( pvelocalhost)?$)|(?!127\.0\.0\.1)[\w.]*\b(hello\.local|hello)(\s*|\s+.*))', "127.2.0.1 hello.local") | |
>>> h | |
>>> h = re.search('^(127\.0\.0\.1 (?!hello\.local hello( pvelocalhost)?$)|(?!127\.0\.0\.1)[\w.]*\s+(hello\.local|hello)(\s*|\s+.*))', "127.2.0.1 hello.local") | |
>>> h | |
<_sre.SRE_Match object at 0x7fbe68e30c00> |