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
@james2doyle
james2doyle / ios-chrome-devtools.md
Last active May 10, 2019
Enable remote debugging on the iOS simulator using Chrome Dev Tools
View ios-chrome-devtools.md

Install the tools:

brew install ios-webkit-debug-proxy

Run the simulator. And choose an iOS 10 device. The chrome remote debugging doesn't work with iOS 11 yet.

Enable the inspector

@cecilemuller
cecilemuller / letsencrypt_2019.md
Last active May 26, 2019
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)
View letsencrypt_2019.md

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


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@AvdLee
AvdLee / ALSwiftyBeaverCLLogger
Last active Apr 19, 2017
CocoaLumberjack logger for SwiftyBeaver
View ALSwiftyBeaverCLLogger
//
// ALSwiftyBeaverCLLogger.swift
//
// Created by Antoine van der Lee on 09/05/16.
// Copyright © 2016 Antoine van der Lee. All rights reserved.
//
import Foundation
import CocoaLumberjack
import SwiftyBeaver
@jpgiago
jpgiago / gulpfile.js
Last active Sep 22, 2017
Gulp.js for Stylus (lost, axis, rupture w/ postcss)
View gulpfile.js
var gulp = require('gulp'),
plumber = require('gulp-plumber'),
gutil = require('gulp-util'),
autoprefixer = require('autoprefixer'),
sourcemaps = require('gulp-sourcemaps'),
postcss = require('gulp-postcss'),
poststylus = require('poststylus'),
stylus = require('gulp-stylus'),
axis = require('axis'),
rupture = require('rupture'),
@mbalex99
mbalex99 / gist:8802db1695f20c520ca0
Last active May 19, 2018
Alamofire and RxSwift
View gist:8802db1695f20c520ca0
let rx_request = Observable<Value>.create { (observer) -> Disposable in
let requestReference = Alamofire.request(.POST, url, parameters: payload)
.responseJSON(completionHandler: { (response) in
if let value = response.result.value {
observer.onNext(value)
observer.onCompleted()
}else if let error = response.result.error {
observer.onError(error)
}
})
@ikeikeikeike
ikeikeikeike / zero_downtime_reindexing.py
Created Mar 30, 2015
Elasticsearch Zero Downtime Reindexing using elasticsearch-dsl-py ref: https://www.elastic.co/blog/changing-mapping-with-zero-downtime
View zero_downtime_reindexing.py
from datetime import datetime
from elasticsearch_dsl import (
DocType,
String,
Integer,
Float
)
def _suffix():
@ebuildy
ebuildy / gist:5d4ad0998848eaefdad8
Last active Nov 7, 2018
Setup sentry logger on a fresh Ubuntu server
View gist:5d4ad0998848eaefdad8
sudo apt-get update
sudo apt-get install python-virtualenv
sudo apt-get install python-dev
sudo apt-get install postgresql
sudo apt-get install postgresql-server-dev-9.3
sudo apt-get install redis-server
sudo -u postgres createuser -s sentry
sudo -u postgres psql -c "alter user sentry with password 'sentry';"
@scabbiaza
scabbiaza / README.md
Created Sep 22, 2014
Flask with infinity scroll navigation
View README.md

Flask with infinity scroll navigation

Using: Flask, SQLAlchemy, Infinite-scroll

@ricardo-rossi
ricardo-rossi / ElasticSearch.sh
Last active May 26, 2019
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
You can’t perform that action at this time.