SASS Versions of
- Fontawesome 5
- Bootstrap 4
in Phoenix 1.3 and 1.4 via Webpack
| import json | |
| import gzip | |
| def compress_data(data): | |
| # Convert to JSON | |
| json_data = json.dumps(data, indent=2) | |
| # Convert to bytes | |
| encoded = json_data.encode('utf-8') | |
| # Compress | |
| compressed = gzip.compress(encoded) |
SASS Versions of
in Phoenix 1.3 and 1.4 via Webpack
body_filter_by_lua documentation: https://github.com/openresty/lua-nginx-module#body_filter_by_luahttp {
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:60m max_size=1G;
server {
listen 8080;
location /replace-body {
| module Jekyll | |
| module CacheBust | |
| class CacheDigester | |
| require 'digest/md5' | |
| attr_accessor :file_name, :directory | |
| def initialize(file_name:, directory: nil) | |
| self.file_name = file_name | |
| self.directory = directory |
I got to here after spending hours trying to deploy to an Elastic Beanstalk instance via CircleCi 2.0 so I thought I'd write up what worked for me to hopefully help others. Shout out to RobertoSchneiders who's steps for getting it to work with CircleCi 1.0 were my starting point.
For the record, I'm not the most server-savvy of developers so there may be a better way of doing this.
| package main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| "net/url" | |
| "os" | |
| "reflect" | |
| "regexp" | |
| "strconv" |
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "net/http/httputil" | |
| "net/url" | |
| ) | |
| var ( |
| # frozen_string_literal: true | |
| begin | |
| require "bundler/inline" | |
| rescue LoadError => e | |
| $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
| raise e | |
| end | |
| gemfile(true) do |
| SAN_CMP := -fno-omit-frame-pointer -fsanitize=address | |
| SAN_STAT := -static-libstdc++ -static-libasan | |
| BIN_CMP := -std=c++11 -c -I. main.cpp -O -g3 -o main.o | |
| LIB_CMP := -std=c++11 my.cpp -o libmy.so -shared -fPIC -g3 | |
| RUN := LD_LIBRARY_PATH=. ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(shell which llvm-symbolizer) | |
| PRELOAD := LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.1 | |
| lib-gcc: |
Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.
And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.
If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.