Skip to content

Instantly share code, notes, and snippets.

View bsormagec's full-sized avatar
:shipit:
Signing new blocks..

Burak Sormageç bsormagec

:shipit:
Signing new blocks..
  • Laravel, Blockchain, Web3, Solidity, NodeJs
  • Toronto,Canada
  • X @bsormagec
View GitHub Profile
@bsormagec
bsormagec / default
Created October 11, 2022 23:08 — forked from bkawk/default
nginx reverse proxy with caching and SSL for IPFS
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript max;
~image/ max;
}
server {
listen 443 ssl http2 default_server;
@bsormagec
bsormagec / Public IPFS Guideway.md
Created October 10, 2022 08:43 — forked from NatoBoram/Public IPFS Gateway.md
The complete guide to hosting a public IPFS gateway

Hosting a public IPFS gateway

This guide assumes that you've used ssh before. If not, then you must read How to Set Up SSH Keys.

I'm also going to assume you've used ipfs before. If not, then take some time to discover IPFS with IPFS Desktop, IPFS Companion and go-ipfs!

Get a host

A public IPFS gateway can be hosted at home or on the cloud.

@bsormagec
bsormagec / stake_object.json
Last active July 8, 2022 11:24
stake example response
[
{
"id":5090,
"token_id":1,
"chamber":{
"id":1,
"badge":"image",
"name":"Radioactive",
"type":"months",
"count":1,
@bsormagec
bsormagec / backup.sh
Created July 12, 2021 21:42 — forked from skrajewski/backup.sh
Automate your macOS backup to Backblaze B2 using Restic and launchd.
#!/bin/bash
PID_FILE=~/.restic_backup.pid
TIMESTAMP_FILE=~/.restic_backup_timestamp
if [ -f "$PID_FILE" ]; then
if ps -p $(cat $PID_FILE) > /dev/null; then
echo $(date +"%Y-%m-%d %T") "File $PID_FILE exist. Probably backup is already in progress."
exit 1
else
@bsormagec
bsormagec / macosx-install-php-oracle-oci8.md
Created March 1, 2019 20:54 — forked from gido/macosx-install-php-oracle-oci8.md
install Oracle PHP Extension (oracle OCI8) - instantclient for Mac OS 10.8 - homebrew environnement

Installation

This procedure is tested on Mac OS X 10.8 with Developpers tools installed (xCode).

PHP 5.4 installed with Homebrew.

Update: I wrote a blog post about this.

Preparation

Download the following files from Oracle website (yes, you need to create an account and accept terms):

@bsormagec
bsormagec / create-multi-host-swarm-digitalocean.sh
Created January 31, 2019 12:49 — forked from jmshal/create-multi-host-swarm-digitalocean.sh
Setup a Docker Swarm multi-host cluster on DigitalOcean
docker-machine create \
--driver=digitalocean \
--digitalocean-access-token=$DO_TOKEN \
--digitalocean-size=512mb \
--digitalocean-region=nyc3 \
--digitalocean-private-networking=true \
--digitalocean-image=ubuntu-15-04-x64 \
docker-swarm-kv-store
docker $(docker-machine config docker-swarm-kv-store) run -d \
@bsormagec
bsormagec / README.md
Created December 21, 2018 19:41 — forked from denji/README.md
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker-compose exec sentry sentry upgrade to setup database and create admin user
  5. (Optional) Run docker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker-compose restart sentry
  7. Sentry is now running on public port 9000
@bsormagec
bsormagec / .bash_aliases
Last active November 8, 2018 15:06
cloud_init
alias apt='sudo apt'
alias a='php artisan'
alias service='sudo service'
alias nginx='sudo nginx'

Keybase proof

I hereby claim:

  • I am bsormagec on github.
  • I am sormagec (https://keybase.io/sormagec) on keybase.
  • I have a public key ASByYYxvWV5PXr1yc5u-qFon0VQ_3xcgGrPbyPpYWDA4iAo

To claim this, I am signing this object: