Skip to content

Instantly share code, notes, and snippets.

View Samiulcse's full-sized avatar

MD SAMIUL ISLAM Samiulcse

View GitHub Profile
@Samiulcse
Samiulcse / nginx.conf
Created April 8, 2024 04:34 — forked from rummykhan/nginx.conf
Nginx + Supervisor conf for Octane
server {
listen 80;
server_name app.rehanmanzoor.me;
charset utf-8;
client_max_body_size 1M;
location / {
proxy_pass http://127.0.0.1:8001;
proxy_http_version 1.1;
@Samiulcse
Samiulcse / docker-compose.yml
Created March 28, 2024 06:14 — forked from hasinhayder/docker-compose.yml
Getting up and running with MariaDB and phpMyAdmin using Docker
version: '3.8'
services:
mariadb:
image: mariadb:10.8
restart: always
ports:
- 3307:3306
volumes:
- ./mariadb:/var/lib/mysql
loadYoutube(){
axios.create().get('https://www.googleapis.com/youtube/v3/channels', {
params: {
part: "contentDetails",
id: process.env.MIX_YOUTUBE_CHANNEL_ID,
key: process.env.MIX_GOOGLE_API_KEY,
},
headers: {
'Authorization': '',
}
@Samiulcse
Samiulcse / reorganize data for same type in javascript
Created July 2, 2020 11:54
reorganize data for same type in javascript
var orig_json = {
"dishList": [{
"dishName": "bla-bla1",
"dishNumber": 4,
"dishType": "Type 1"
}, {
"dishName": "bla-bla2",
"dishNumber": 12,
"dishType": "Type 1"
}, {
@Samiulcse
Samiulcse / cloudSettings
Last active June 6, 2021 16:14 — forked from sarthaksavvy/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-06-06T16:14:35.055Z","extensionVersion":"v3.4.3"}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css">
<div class="container">
<div class="row">
<div class="col-md-12">
<video controls crossorigin playsinline poster="<?= $file_thumb ?>"></video>
<button onclick="playVideo('low')">Low Quality</button>
<button onclick="playVideo('medium')">Medium Quality</button>
<button onclick="playVideo('high')">High Quality</button>
</div>
</div>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<title>My Chart.js Chart</title>
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
$(document).on('submit', '#editForm', function(e){
e.preventDefault();
});