Skip to content

Instantly share code, notes, and snippets.

View tinhvqbk's full-sized avatar
🎯
Focusing

Kyle Tình Vũ tinhvqbk

🎯
Focusing
  • Got It, Inc.
  • Hanoi, VN
View GitHub Profile
server {
server_name _;
listen [::]:80 ipv6only=off;
root /usr/share/nginx/html;
index index.html;
location ~* \.(?:js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|map)$ {
expires 1y;
add_header Cache-Control "public, immutable";
@tinhvqbk
tinhvqbk / install.sh
Last active November 25, 2024 07:34
#!/bin/bash
# Script Name: Git Clone Boilerplate Script
# Author: https://github.com/tinhvqbk
# Description: This script sets up the boilerplate for a new project.
# Usage: ./install.sh
# Exit immediately if a command exits with a non-zero status
set -e
@tinhvqbk
tinhvqbk / put-object-on-aws-s3.php
Created October 29, 2020 03:30 — forked from keithweaver/put-object-on-aws-s3.php
Upload an image/object to an AWS S3 Bucket using PHP
<?php
// Installed the need packages with Composer by running:
// $ composer require aws/aws-sdk-php
$filePath = "https://example.com/test.png";
require 'vendor/autoload.php';
$bucketName = 'YOUR_BUCKET_NAME';
$filePath = './YOUR_FILE_NAME.png';
@tinhvqbk
tinhvqbk / swiperinit.html
Created April 5, 2017 11:24 — forked from AminulBD/swiperinit.html
Swiper Initialization with data attribute and Animate.css integrate
<div id="content-carousel" class="content-carousel-widget" data-carousel="swiper">
<!--
You can use: data-items="5" for total items display in single page
data-autoplay="true" or "false" for autoplay.
data-loop="true" or "false" for looping the carousel
data-effect="fade" or "cube" for slide changing effects
data-direction="horizontal" or "vertical" for sliding direction
data-initlal="3" for for first active slide
data-center="true" or "false" for centerize slider
-->