Skip to content

Instantly share code, notes, and snippets.

View alexandcote's full-sized avatar

Alexandre Côté alexandcote

View GitHub Profile
#!/bin/bash
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
os=linux
elif [[ "$OSTYPE" == "darwin"* ]]; then
os=macos
else
echo "OS not supported"
exit 1
fi
// Global payload
interface Global {
myGlobal: string;
myOtherGlobal: string;
}
// Type with all global keys
interface Schema1 {
schemaId: 'schema1';
payload: {
@alexandcote
alexandcote / SketchSystems.spec
Last active February 25, 2019 15:43
iFrameBuffer
iFrameBuffer
Loading*
loaded -> InjectBridgeBundle
cancel -> Loading
InjectBridgeBundle
injected -> SyncScroll
cancel -> Loading
SyncScroll
@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:
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;