Skip to content

Instantly share code, notes, and snippets.

rlam3

Block or report user

Report or block rlam3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rlam3
rlam3 / .git_ignore
Created Jan 12, 2019
2019_01_12_ios_swift_newbie_gotcha_medium_001
View .git_ignore
*.ipa
*.app.dSYM.zip
@rlam3
rlam3 / Fastfile
Created Dec 5, 2018
increment build number
View Fastfile
default_platform(:ios)
platform :ios do
before_all do |lane|
increment_build_number
end
# Beta TestFlight Lane
lane :testflight do
View news.vue
<template>
<q-page padding>
<!-- content -->
<q-card inline @click.native="handler1">
<q-card-media>
<img src="~assets/quasar-logo-full.svg">
</q-card-media>
<q-card-title>
Cafe Basilico
<div slot="right" class="row items-center">
View default.vue
<template>
<q-layout view="lHh Lpr lFf">
<q-layout-header>
<q-toolbar
color="primary"
:glossy="$q.theme === 'mat'"
:inverted="$q.theme === 'ios'"
>
<q-toolbar-title>
Quasar App 02
@rlam3
rlam3 / letsencrypt_2016.md
Created Apr 3, 2017 — forked from cecilemuller/letsencrypt_2019.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)
View letsencrypt_2016.md

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two modes when you don't want Certbot to edit your configuration:

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80) to renew certificates.

In the following, we're setting up mydomain.com to be served from /var/www/mydomain, and challenges will be served from /var/www/letsencrypt.

@rlam3
rlam3 / letsencrypt_2016.md
Created Apr 3, 2017 — forked from cecilemuller/letsencrypt_2019.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)
View letsencrypt_2016.md

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two modes when you don't want Certbot to edit your configuration:

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80) to renew certificates.

In the following, we're setting up mydomain.com to be served from /var/www/mydomain, and challenges will be served from /var/www/letsencrypt.

@rlam3
rlam3 / nginx.conf
Created Mar 31, 2017 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View .swift
let endpoint = Endpoint<ApiRouter>(
URL: target.baseURL.URLByAppendingPathComponent(target.path).absoluteString,
sampleResponseClosure: EndpointSampleResponse.NetworkResponse(200, NSData()), /// ERROR HERE .SUCCESS does not exists
method: target.method,
parameters: target.parameters,
parameterEncoding: self.parameterEncoding(target),
httpHeaderFields: [:]
)
@rlam3
rlam3 / ElasticSearch.sh
Created Apr 12, 2016 — forked from ricardo-rossi/ElasticSearch.sh
Installing ElasticSearch on Ubuntu 14.04
View ElasticSearch.sh
#!/bin/bash
### USAGE
###
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
View zero_downtime_reindexing.py
from datetime import datetime
from elasticsearch_dsl import (
DocType,
String,
Integer,
Float
)
def _suffix():
You can’t perform that action at this time.