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
- hosts: localhost | |
vars: | |
users: | |
- name: alice | |
groups: | |
- wheel | |
- docker | |
- name: bob | |
groups: | |
- docker |
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
dependency: | |
name: galaxy | |
options: | |
force: False | |
--> Action: 'dependency' |
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
Ansible managed | |
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
log 127.0.0.1 local2 notice | |
stats socket /var/lib/haproxy/stats level admin | |
user haproxy | |
group company | |
daemon |
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
import os | |
import sys | |
import math | |
import time | |
import threading | |
import webbrowser # To launch the remote debugging page | |
import win32api # | |
import win32con # pip install pywin32 | |
import win32gui # |
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/bin/env bash | |
sudo vboxconfig | |
sudo update-secureboot-policy --enroll-key | |
sudo kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der /lib/modules/$(uname -r)/updates/dkms/vboxdrv.ko | |
sudo systemctl restart virtualbox | |
sudo systemctl status virtualbox |
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
# Description: Boxstarter Script | |
# Author: Rémy Garrigue, forked from Jess Frazelle's | |
# Last Updated: 2018-02-15 | |
################################################## HOWTO | |
# From CMD as administrator, install chocolatey, install boxstarter, run this script | |
# @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
# cinstm boxstarter -y | |
# start http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/rgarrigue/8de7a22ac468a94958dfd4ea88c53037/raw/1713bc3e73a8a3b0e2ca4cae34947c19b43b2bd9/boxstarter.ps1 |
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
def download_war(baseurl, login, password, war, version): | |
""" | |
Download a war from Nexus and return it's path | |
""" | |
try: | |
url = baseurl + "/" + war + "/" + version + "/" + war + "-" + version + ".war" | |
result = "/tmp/ " + war + "-" + version + ".war" | |
# Download file | |
# stream=True, total_size and with open just so a progress bar can be displayed with tqdm |
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
➜ kresus docker logs kresus -f | |
module.js:471 | |
throw err; | |
^ | |
Error: Cannot find module '/home/user/app/build/server' | |
at Function.Module._resolveFilename (module.js:469:15) | |
at Function.Module._load (module.js:417:25) | |
at Module.require (module.js:497:17) | |
at require (internal/module.js:20:19) |
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
remy@POADV175: ~ $ apt policy python3-click-package && sudo apt install python3-click-package [10:11:51] | |
python3-click-package: | |
Installé : 0.4.46+16.10.20170607.3-0ubuntu1 | |
Candidat : 0.4.46+16.10.20170607.3-0ubuntu1 | |
Table de version : | |
*** 0.4.46+16.10.20170607.3-0ubuntu1 500 | |
500 http://fr.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 Packages | |
100 /var/lib/dpkg/status | |
0.4.45.1+16.10.20160916-0ubuntu1 500 | |
500 http://fr.archive.ubuntu.com/ubuntu yakkety/main amd64 Packages |
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
TASK [me.docker-caddy : GeoLite2-Country database] *************************************************************************************************************************************************** | |
task path: /home/me/work/ansible-playbooks/roles/me.docker-caddy/tasks/main.yml:20 | |
<163.172.90.333> ESTABLISH SSH CONNECTION FOR USER: root | |
<163.172.90.333> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/me/.ansible/cp/ab8647d04f 163.172.90.333 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"'' | |
<163.172.90.333> (0, '/root\n', '') | |
<163.172.90.333> ESTABLISH SSH CONNECTION FOR USER: root | |
<163.172.90.333> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o C |
NewerOlder