Skip to content

Instantly share code, notes, and snippets.

View ilgityildirim's full-sized avatar
👽
working...

Ilgıt Yıldırım ilgityildirim

👽
working...
View GitHub Profile
@bradwestfall
bradwestfall / S3-Static-Sites.md
Last active April 10, 2024 16:40
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

⚠ This post is fairly old. I don't keep it up to date. Be sure to see comments where some people have posted updates

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation
@tkh44
tkh44 / Home.js
Last active September 13, 2022 01:32
Example of using branch to conditionally render components based on auth state
import authDoor from 'hoc/auth-door'
import Loadable from 'react-loadable';
import Loading from './Loading'
const Dashboard = Loadable({
loader: () => import('pages/Dashboard'),
LoadingComponent: Loading,
// optional options...
delay: 200,
serverSideRequirePath: path.join(__dirname, 'pages/Dashboard'),
@rgl
rgl / ss.go
Last active February 9, 2024 20:15 — forked from mitchellh/ss.go
take a screenshot of a specific Windows application window in pure Go
// +build windows
package screen
import (
"fmt"
"image"
"reflect"
"syscall"
"unsafe"
@mixxorz
mixxorz / graphene.py
Last active February 15, 2024 16:18
Get requested fields from ResolveInfo. Graphene python.
"""
MIT License
Copyright (c) 2018 Mitchel Cabuloy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is