Skip to content

Instantly share code, notes, and snippets.

View alexandcote's full-sized avatar

Alexandre Côté alexandcote

View GitHub Profile
server {
{% if item.value.ssl is defined and item.value.ssl.enabled | default(false) -%}
listen 443 ssl http2;
{% else -%}
listen 80;
{% endif %}
server_name {% for host in item.value.site_hosts %} {{ host | reverse_www(append=false) }} {% if item.value.multisite.subdomains | default(false) %} *.{{ host }} {% endif %} {% endfor %};
access_log {{ www_root }}/{{ item.key }}/logs/access.log;
error_log {{ www_root }}/{{ item.key }}/logs/error.log;
@alexandcote
alexandcote / Gem Environment
Created May 10, 2018 15:57
A issue with hiredis
RubyGems Environment:
- RUBYGEMS VERSION: 2.7.6
- RUBY VERSION: 2.4.4 (2018-03-28 patchlevel 296) [x86_64-darwin17]
- INSTALLATION DIRECTORY: /Users/alexandrecote/.gem/ruby/2.4.4
- USER INSTALLATION DIRECTORY: /Users/alexandrecote/.gem/ruby/2.4.0
- RUBY EXECUTABLE: /opt/rubies/2.4.4/bin/ruby
- EXECUTABLE DIRECTORY: /Users/alexandrecote/.gem/ruby/2.4.4/bin
- SPEC CACHE DIRECTORY: /Users/alexandrecote/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /opt/rubies/2.4.4/etc
- RUBYGEMS PLATFORMS:
@alexandcote
alexandcote / SketchSystems.spec
Last active February 25, 2019 15:43
iFrameBuffer
iFrameBuffer
Loading*
loaded -> InjectBridgeBundle
cancel -> Loading
InjectBridgeBundle
injected -> SyncScroll
cancel -> Loading
SyncScroll
// Global payload
interface Global {
myGlobal: string;
myOtherGlobal: string;
}
// Type with all global keys
interface Schema1 {
schemaId: 'schema1';
payload: {
#!/bin/bash
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
os=linux
arch=amd64
elif [[ "$OSTYPE" == "darwin"* ]]; then
os=macos
if [[ $(uname -m) == "arm64" ]]; then
arch=arm64
else
@alexandcote
alexandcote / copy.svg
Last active April 23, 2026 02:40
Raccourcisseur d'URL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.