Skip to content

Instantly share code, notes, and snippets.

View euharrison's full-sized avatar
🚲
Bike!

Harrison Mendonça euharrison

🚲
Bike!
View GitHub Profile
@pdrok
pdrok / 413_request_entity_too_large.md
Last active December 4, 2023 22:38
How to fix a "413 request entity too large" error on AWS Elastic Beanstalk

The .conf files directory have to be .platform/nginx/conf.d/elasticbeanstalk

Create a new file called .platform/nginx/conf.d/01_client_size.conf and paste in the following:

client_max_body_size 20M;

You don't need to restart the nginx manually, when you deploy it restart the services.

Thanks

@jarretmoses
jarretmoses / xcode-print-font-names.m
Created July 14, 2017 14:40
Script to place inside AppDelegate.m to print out actual font names in your iOS (and React Native) project
for (NSString *familyName in [UIFont familyNames]){
NSLog(@"Family name: %@", familyName);
for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) {
NSLog(@"--Font name: %@", fontName);
}
}
@andreibosco
andreibosco / creative-cloud-disable.md
Last active January 3, 2024 02:37
disable creative cloud startup on mac
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@nixta
nixta / .htaccess
Last active March 19, 2024 22:52
.htaccess to add CORS to your website
# Add these three lines to CORSify your server for everyone.
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET,PUT,POST,DELETE"
Header set Access-Control-Allow-Headers "Content-Type, Authorization"
@koush
koush / app.js
Created August 13, 2012 02:36
Make node.js express respect x-forwarded-proto on res.redirect
app.configure(function(){
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
// use this to let express know it is on a encrypted connection
app.use(function(req, res, next) {
var schema = req.headers["x-forwarded-proto"];
if (schema === "https") {