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
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011) | |
Copyright 2004 Free Software Foundation, Inc. | |
GDB is free software, covered by the GNU General Public License, and you are | |
welcome to change it and/or distribute copies of it under certain conditions. | |
Type "show copying" to see the conditions. | |
There is absolutely no warranty for GDB. Type "show warranty" for details. | |
This GDB was configured as "x86_64-apple-darwin".Attaching to process 58085. | |
2012-03-01 18:59:02.097 iOctocat[58085:15203] (07f5ed60.0092)-[GHResource loadData] Loading https://api.github.com/user | |
==== |
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
# Capybara defaults to CSS3 selectors rather than XPath. | |
# If you'd prefer to use XPath, just uncomment this line and adjust any | |
# selectors in your step definitions to use the XPath syntax. | |
# Capybara.default_selector = :xpath | |
Capybara.register_driver :chrome do |app| | |
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( | |
chromeOptions: { | |
args: [ | |
'--disable-default-apps', |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: mysql-debug | |
spec: | |
containers: | |
- name: mysql-debug | |
image: mysql:5.7 | |
command: | |
- sleep |
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
server { | |
listen *:80; | |
server_name repository.votre-serveur.com; | |
server_tokens off; | |
root /srv/reprepro; | |
autoindex on; # Permet de voir les fichiers. Commentez la ligne pour l'interdire. | |
access_log /var/log/nginx/repository.votre-serveur.com_access.log; | |
error_log /var/log/nginx/repository.votre-serveur.com_error.log; | |
} |
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
require 'pty' | |
# Initialize master | |
ruby_block 'kubeadm init' do | |
block do | |
command = <<-CMD | |
kubeadm init \ | |
--token=#{node['kubeadm']['token']} \ | |
--pod-network-cidr=#{node['kubeadm']['pod_cidr']} \ | |
--service-cidr=#{node['kubeadm']['service_cidr']} \ |
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
execute 'kubeadm init' do | |
command = <<-CMD | |
kubeadm init \ | |
--token=#{node['kubeadm']['token']} \ | |
--pod-network-cidr=#{node['kubeadm']['pod_cidr']} \ | |
--service-cidr=#{node['kubeadm']['service_cidr']} \ | |
--service-dns-domain=#{node['kubeadm']['dns_domain']} \ | |
--apiserver-advertise-address=#{node['kubeadm']['api_ip_address']} | |
CMD | |
action :run |
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
require 'sidekiq/api' | |
module Sidekiq | |
class JobSet < SortedSet | |
alias :old_delete_by_value :delete_by_value | |
def delete_by_value(name, value) | |
parsed = JSON.parse(value) | |
CommisChannel::BackgroundTasks.broadcast_delete(parsed['jid']) |
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
let ws = new WebSocket('wss://ws.domain.eu/cable/', ['actioncable-v1-json']); | |
ws.onopen = () => { console.log('WS Open') }; | |
ws.onerror = (error) => { console.log('WS ERROR:', error) }; | |
ws.onclose = () => { console.log('WS CLOSED') }; | |
ws.onmessage = (message) => { console.log('WS message:', message) }; |
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
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: csi-pvc | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5Gi |
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
# | |
# In order to get Kubernetes to be authorised to fetch the Docker images from | |
# the private gitlab registry, we are creating a docker-registry secret. | |
# | |
function create_gitlab_registry_secret() { | |
echo "Creating the gitlab-registry secret ..." | |
# Save the JSON to create the gitlab-registry docker-registry secret | |
GITLAB_REGISTRY_SECRET_JSON=$( | |
kubectl create secret --namespace=$KUBE_NAMESPACE \ | |
docker-registry gitlab-registry \ |
NewerOlder