Skip to content

Instantly share code, notes, and snippets.

@basictheprogram
basictheprogram / gist:8c14970176a003407ba2
Created December 10, 2015 18:10
python -c "import urllib2; print urllib2.urlopen('https://launchpad.net').read()"
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en" dir="ltr">
<head>
<meta charset="UTF-8" />
<title>Launchpad</title>
<link rel="shortcut icon" href="/@@/launchpad.png" />
<link rel="alternate" type="application/atom+xml"
INFO global: Vagrant version: 1.8.1
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_OLD_ENV_TERM_PROGRAM="iTerm.app"
INFO global: VAGRANT_OLD_ENV_Apple_PubSub_Socket_Render="/private/tmp/com.apple.launchd.KVwHU1e6Ki/Render"
INFO global: VAGRANT_OLD_ENV_CCACHE_DIR="/var/tmp/ccache/tanner"
INFO global: VAGRANT_OLD_ENV_HISTSIZE="1500"
INFO global: VAGRANT_OLD_ENV_rvm_prefix="/Users/tanner"
INFO global: VAGRANT_OLD_ENV_CVS_RSH="ssh"
- name: restart ntp
service: >
name="ntpd"
state="restarted"
tags: ntp-clients
- name: reload ntp
service: >
name="ntpd"
state="reloaded"
---
# tasks file for roles/ntp-clients
- name: install ntp packages (zypper)
zypper: >
name="{{ item }}"
state="latest"
with_items:
- "ntp"
notify:
### Keybase proof
I hereby claim:
* I am basictheprogram on github.
* I am basictheprogram (https://keybase.io/basictheprogram) on keybase.
* I have a public key ASCwmu-UCK4Hnp5pN2QP_P10AAEolaBb4HUeSWXCsqexCgo
To claim this, I am signing this object:
@basictheprogram
basictheprogram / gist:d12b9d03b07025564250f823f83c5cec
Created February 20, 2017 07:43
System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: releaseNotes, metad ata, package. Line 56, position 82.
PS C:\ProgramData\chocolatey\logs> choco install powershell -debug -verbose
Chocolatey v0.10.3
Chocolatey is running on Windows v 6.1.7601.65536
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install powershell -debug -verbose
Received arguments: install powershell -debug -verbose
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
<32Bit>
1.1.4322.573
->C:\Windows\Microsoft.NET\Framework\v1.1.4322
2.0.50727.5485
->C:\Windows\Microsoft.NET\Framework\v2.0.50727
4.6.1087.0
->C:\Windows\Microsoft.NET\Framework\v4.0.30319
<64Bit>
2.0.50727.5485
@basictheprogram
basictheprogram / gist:018789574e04104932c002777e5a3a76
Created February 23, 2017 22:20
win_chocolatey powershell install/upgrade failure
failed: [PC128.local] (item=powershell) => {"changed": false, "choco_error_cmd": "choco.exe install -dv -y powershell", "choco_error_log": "Chocolatey v0.10.3 Chocolatey is running on Windows v 6.1.7601.65536 Attempting to delete file \"C:/ProgramData/chocolatey/choco.exe.old\". Attempting to delete file \"C:\\ProgramData\\chocolatey\\choco.exe.old\". Command line: \"C:\\ProgramData\\chocolatey\\choco.exe\" install -dv -y powershell Received arguments: install -dv -y powershell RemovePendingPackagesTask is now ready and waiting for PreRunMessage. Sending message 'PreRunMessage' out if there are subscribers... [Pending] Removing all pending packages that should not be considered installed... The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type NOTE: Hiding sensitive configuration data! Please double and triple check to be sure no sensitive data is shown, especially if copying output to a gist for review. Configuration: CommandName='install'| CacheLocation='C:\\Users\\Administrat
@basictheprogram
basictheprogram / gist:74b48320e386d308a69f82f7c90019b5
Created March 23, 2017 03:20
win_chocolatey installing powershell when powershell4 is installed #22892
TASK [win_chocolatey : install chocolatey] *************************************
task path: /Users/tanner/projects/ansible.git/playbooks.git/roles/win_chocolatey/tasks/main.yml:22
<192.168.249.130> ESTABLISH WINRM CONNECTION FOR USER: IEUser on PORT 5986 TO 192.168.249.130
EXEC (via pipeline wrapper)
EXEC (via pipeline wrapper)
<192.168.249.130> PUT "/Users/tanner/projects/ansible.git/playbooks.git/roles/win_chocolatey/files/InstallChocolatey.ps1" TO "C:\Users\IEUser\AppData\Local\Temp\ansible-tmp-1490238977.78-226443804334486\InstallChocolatey.ps1"
EXEC (via pipeline wrapper)
EXEC (via pipeline wrapper)
ok: [ie11win7] => {
"changed": false,
2017-03-22 20:47:31,679 [INFO ] - ============================================================
2017-03-22 20:47:31,679 [INFO ] - Chocolatey v0.10.3
2017-03-22 20:47:31,914 [WARN ] - Nothing to change. Config already set.
2017-03-22 20:47:38,195 [INFO ] - ============================================================
2017-03-22 20:47:38,336 [INFO ] - Chocolatey v0.10.3
2017-03-22 20:47:38,554 [INFO ] - Upgrading the following packages:
2017-03-22 20:47:38,554 [INFO ] - all
2017-03-22 20:47:38,554 [INFO ] - By upgrading you accept licenses for the packages.
2017-03-22 20:47:41,633 [INFO ] - ccleaner v5.28.6005 is the latest version available based on your source(s).
2017-03-22 20:47:42,554 [INFO ] - chocolatey v0.10.3 is the latest version available based on your source(s).