Skip to content

Instantly share code, notes, and snippets.

View bbg's full-sized avatar
👍
"Our true mentor in life is science."   Mustafa Kemal Atatürk

Batuhan Göksu bbg

👍
"Our true mentor in life is science."   Mustafa Kemal Atatürk
View GitHub Profile
<section class="main-campaigns">
<h2 class="main-campaigns__title">Secom Haberler</h2>
<a class="main-campaigns__full-campaings" href="#" title="---">Tüm Haberler</a>
<div class="main-campaigns__items owl-carousel">
<div class="main-campaigns__item">
<div class="main-campaigns__image">
<img src="https://via.placeholder.com/180x100.png?text=Visit+WhoIsHostingThis.com+Buyers+Guide" alt="---">
</div>
<span class="main-campaigns__campaign-title">Ev Güvenlik Sistemleri</span>
<span class="main-campaigns__text">
import { ApolloServer, AuthenticationError, gql } from "apollo-server"
// API's
import Dashboard from "@root/api/dashboard"
import General from "@root/api/general"
import Assets from "@root/api/assets"
import { importSchema } from "graphql-import"
<div class="navigation-bar">
<div class="navigation-bar__social-media-links">
<a class="navigation-bar__social-media-link navigation-bar__social-media-link--non-opacity" href="">
<img class="navigation-bar__sisecam-logo" src="/assets/images/sisecam-logo-mini.png">
</a>
<a class="navigation-bar__social-media-link" href="">
<i class="fab fa-instagram"></i>
</a>
<a class="navigation-bar__social-media-link" href="">
<i class="fab fa-twitter"></i>
@bbg
bbg / gist:d1c4bae8e484acec0a264c50cbd3ea6b
Created April 16, 2020 09:28 — forked from bcremer/gist:12167985b442d0d195de
NGINX as caching REST-API Proxy
upstream backend {
server localhost:8080;
#server backup1.example.com:8080 backup;
#server backup2.example.com:8080 backup;
}
# Set cache dir
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:10m;
# Set cache key to include identifying components
@bbg
bbg / nginx-stat-failed-13-permission-denied.md
Created April 1, 2020 01:51 — forked from windsting/nginx-stat-failed-13-permission-denied.md
fix: Nginx: stat() failed (13: permission denied)

Nginx: stat() failed (13: permission denied)

from https://stackoverflow.com/questions/25774999/nginx-stat-failed-13-permission-denied

Nginx operates within the directory, so if you can't cd to that directory from the nginx user then it will fail (as does the stat command in your log). Make sure the www-user can cd all the way to the /username/test/static. You can confirm that the stat will fail or succeed by running

sudo -u www-data stat /username/test/static
@bbg
bbg / *constant-locals-loader.md
Created March 13, 2020 20:00 — forked from developit/*constant-locals-loader.md
Inline Webpack CSS Modules classNames, reducing bundle size. https://npm.im/constant-locals-loader

constant-locals-loader for Webpack

This loader optimizes the output of mini-css-extract-plugin and/or css-loader, entirely removing the potentially large CSS classname mappings normally inlined into your bundle when using CSS Modules.

Run npm install constant-locals-loader, then make these changes in your Webpack config:

module.exports = {
 module: {
@bbg
bbg / git-deployment.md
Created March 5, 2020 13:52 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@bbg
bbg / space-astronaut.svg
Created February 19, 2020 22:52
404 sayfası için svg formatında görsel
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bbg
bbg / workbench.colorCustomizations.json
Created February 19, 2020 20:18 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",
@bbg
bbg / grub2_options_update_f.sh
Created February 15, 2020 22:55 — forked from dbfin/grub2_options_update_f.sh
Update grub in Fedora
sudo grub2-mkconfig -o /boot/grub2/grub.cfg