Skip to content

Instantly share code, notes, and snippets.

View josephgoksu's full-sized avatar
🏛️
crafting

Joseph Goksu josephgoksu

🏛️
crafting
View GitHub Profile
@josephgoksu
josephgoksu / nginx.conf
Created January 12, 2018 22:23
Nginx Example Conf
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@josephgoksu
josephgoksu / FilesAndDirectories.md
Last active March 5, 2018 09:30
Important Nginx Files, Directories and Commands

Files And Directories

Content

/var/www/html: The actual web content, which by default only consists of the default Nginx page you saw earlier, is served out of the /var/www/html directory. This can be changed by altering Nginx configuration files.

Server Configuration

/etc/nginx: The Nginx configuration directory. All of the Nginx configuration files reside here.

@josephgoksu
josephgoksu / signature.html
Last active May 17, 2018 20:57
my email signature
<table cellPadding="0" cellSpacing="0" style="-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;margin-bottom:7px">
<tbody>
<tr>
<td style="vertical-align:top">
<img alt="" src="https://pbs.twimg.com/profile_images/976043631663513600/523CL60c.jpg" width="85" height="85" style="max-width:90px;max-height:90px;margin-right:10px;border-radius: 10px;"/>
</td>
<td>
<div style="font-size:0.9em;white-space:nowrap;border-left:2px solid #7bed9f;padding-left:10px">
<div style="color:#2c3e50">Yusuf E. Göksu</div>
<div style="color:#2c3e50; margin-bottom: 7px">Software Developer @<a href="https://neutrinosoft.com" style="text-decoration: none; color:#353b48"><b>Neutrino</b></a><a href="https://neutrinosoft.com" style="text-decoration:none; color:#273c75"><b>soft</b></a>
@josephgoksu
josephgoksu / createvirtualenvironment.md
Created August 14, 2018 07:15
Creating a Virtual Environment #python

$ mkdir Environments $ cd Environments

$ python3.6 -m venv my_env

$ source my_env/bin/activate

@josephgoksu
josephgoksu / git_branch_naming.md
Last active December 11, 2018 08:39
Awesome Git

Git Branch Naming Conventions

<type>/<name>

<type>

bug    - Code changes linked to a known issue.
feature - New feature.
relase - New Release.
@josephgoksu
josephgoksu / extensions.sh
Last active January 26, 2019 20:40
VSCode Configurations
code --install-extension \
aaron-bond.better-comments \
christian-kohler.npm-intellisense \
christian-kohler.path-intellisense \
codezombiech.gitignore \
CoenraadS.bracket-pair-colorizer \
cssho.vscode-svgviewer \
dbaeumer.vscode-eslint \
donjayamanne.githistory \
dsznajder.es7-react-js-snippets \
@josephgoksu
josephgoksu / countries.js
Created December 13, 2019 23:16
All Countries (code, name, region, LocaleKey, ISO3A)
const countries = [
{
code: 'FI',
name: 'Finland',
region: 'Europe',
regionLocaleKey: 'ITC.region.EUR',
currencyCodeISO3A: 'EUR',
},
{
code: 'MR',
@josephgoksu
josephgoksu / retrain-mobilenet-for-the-web.md
Created December 15, 2019 18:38 — forked from woudsma/retrain-mobilenet-for-the-web.md
Retrain a MobileNet model for the web with TensorFlow for Poets and TensorFlow.js

Retrain a MobileNet model and use it in the browser with TensorFlow.js

DRAFT

Combining TensorFlow for Poets and TensorFlow.js.
Retrain a MobileNet V1 or V2 model on your own dataset using the CPU only.
I'm using a MacBook Pro without Nvidia GPU.

MobileNets can be used for image classification. This guide shows the steps I took to retrain a MobileNet on a custom dataset, and how to convert and use the retrained model in the browser using TensorFlow.js. The total time to set up, retrain the model and use it in the browser can take less than 30 minutes (depending on the size of your dataset).

Example app - HTML/JS and a retrained MobileNet V1/V2 model.

@josephgoksu
josephgoksu / calculateAverageRank.js
Created August 16, 2020 20:20
Billion Dollar Company First Code
const input = {
id: "286ba27a-dffb-11ea-87d0-0242ac130003",
rank: 4.75,
date: 120,
};
const input2 = {
id: "286ba27a-dffb-11ea-87d0-0242ac130003",
rank: 2.5,
date: 121,
@josephgoksu
josephgoksu / aws-ec2-install-docker.md
Created April 27, 2022 08:04
Install docker and docker-compose to AWS EC2 instance

UPDATE (27 April 2022)

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user