Skip to content

Instantly share code, notes, and snippets.

View fport's full-sized avatar
🍊
osman mod on

Furkan Portakal fport

🍊
osman mod on
View GitHub Profile
@fport
fport / readme.md
Created March 12, 2024 20:19 — forked from cagataycali/readme.md
Run multimodal llm (llava with llamafile) and open browser after the model start.

Install

[wget ... or download](https://gist.github.com/acaa476865821b02813b8a8e88e59c13.git)
chmod +x run-local-multimodal-llm-openai-compatible.sh
./run-local-multimodal-llm-openai-compatible.sh
@fport
fport / settings.md
Created March 5, 2023 17:52 — forked from mehmetsagir/settings.md
Eslint, Prettier, husky and lint-staged configurations for TypeScript projects

If husky is not running, run the following command

chmod ug+x .husky/*

Installation

Install dependencies

yarn add -D prettier eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-simple-import-sort husky lint-staged
@fport
fport / node_nginx_ssl.md
Created November 9, 2022 21:50 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@fport
fport / semantic-commit-messages.md
Created October 14, 2021 06:55 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@fport
fport / semantic-commit-messages.md
Created October 14, 2021 06:55 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

function makeResizableDiv(div) {
const element = document.querySelector(div);
const resizers = document.querySelectorAll(div + ' .resizer')
for (let i = 0;i < resizers.length; i++) {
const currentResizer = resizers[i];
currentResizer.addEventListener('mousedown', function(e) {
currentResizer.addEventListener('mousemove', resize)
})
function resize(e) {
@fport
fport / docker-help.md
Created February 7, 2021 21:37 — forked from SelmanKahya/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@fport
fport / style.css
Created January 5, 2021 14:39 — forked from ozcanzaferayan/style.css
Media queries for laptop tablet and mobile
@media screen and (max-width: 1024px) {
/* Laptop (1024px) */
}
@media screen and (max-width: 768px) {
/* Tablet (768px) */
}
@media screen and (max-width: 320px) {
/* Phone (Small) */
@fport
fport / gist:57d1d037e86847a7c5d499e322b665bd
Created December 10, 2020 20:12 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream