Skip to content

Instantly share code, notes, and snippets.

Logan Lindquist llbbl

Block or report user

Report or block llbbl

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
@llbbl
llbbl / fix_openssl_catalina.sh
Created Oct 15, 2019
fix missing openssl files in catalina
View fix_openssl_catalina.sh
#!/bin/bash
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
@llbbl
llbbl / Safari Needs WebP Support
Created Aug 16, 2019
Safari Needs WebP Support
View Safari Needs WebP Support
It has been brought up before, but creating a new post to start the conversation again.
* 80% of the current global web traffic supports WebP
* All the other current browsers support WebP
* If Safari on iOS and Mac were to support it, we would see an additional 12-14% of the entire web traffic that supports WebP [bringing total to ~94%]
* Apple is the only/last of the major browser vendors to not support WebP
* Chrome has had at least partial support of WebP since 2011 almost 2 years before Blink was forked from Webkit
* WebP was released 8 (almost 9) years ago
View Meetup-past-events.py
#!/usr/bin/env python3
import collections
import datetime
import pprint
import click
import jinja2
import requests
@llbbl
llbbl / cloudflare.conf
Last active Jun 1, 2019
nginx conf file for setting actual IPs behind cloudflare
View cloudflare.conf
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 131.0.72.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 172.31.0.0/18;
set_real_ip_from 172.64.0.0/13;
@llbbl
llbbl / .screenrc
Last active Feb 24, 2018 — forked from joaopizani/.screenrc
A killer GNU Screen Config
View .screenrc
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
View bash-ssh-to-instance-id.sh
function ec2-ssh () {
ssh -i ~/.ssh/$2 -l ubuntu $(aws ec2 describe-instances --filter Name=instance-id,Values=$1 | jq '.Reservations[0].Instances[0].PublicIpAddress' | tr -d '"')
}
@llbbl
llbbl / opencfp-simple.com
Last active Apr 17, 2016
nginx opencfp simple example
View opencfp-simple.com
server{
server_name cfp.sitename.com;
root /var/www/opencfp/web;
listen 80;
index index.php index.html index.htm;
access_log /var/log/nginx/access.cfp.log;
error_log /var/log/nginx/error.cfp.log;
location / {
@llbbl
llbbl / opencfp.com
Last active Apr 17, 2016
nginx opencfp conf example
View opencfp.com
server{
server_name cfp.sitename.com;
root /var/www/opencfp/web;
access_log /var/log/nginx/access.cfp.log;
error_log /var/log/nginx/error.cfp.log;
listen 80;
index index.php index.html index.htm;
View .gitlab-ci.yml
# Before Script
before_script:
- composer self-update
- composer install --prefer-dist > /dev/null
- cp .env.example .env
- php artisan key:generate
- php artisan migrate:refresh
# Services
services:
@llbbl
llbbl / deploy.rb
Last active Apr 21, 2018
Capistrano deploy file for Laravel 5.x
View deploy.rb
# config valid only for current version of Capistrano
lock '3.4.0'
set :application, "Your app name" # EDIT your app name
set :repo_url, "https://github.com/laravel/laravel.git" # EDIT your git repository
set :deploy_to, "/var/www/my-app" # EDIT folder where files should be deployed to
set :keep_releases, 5
# set :linked_files, %w{.env} #EDIT uncomment this line once you have a .env file in :deploy_to/shared
You can’t perform that action at this time.