Skip to content

Instantly share code, notes, and snippets.

View Rishats's full-sized avatar
☣️

Rishat Sultanov Rishats

☣️
View GitHub Profile
FROM php:7.4-fpm
ARG user
ARG uid
RUN apt-get update && apt-get install -y \
git \
curl \
libpng-dev \
libonig-dev \
@Rishats
Rishats / main.go
Created December 19, 2019 04:27
AWS S3 writer from Lambda with AGG
package main
import (
"bytes"
"context"
"encoding/json"
"fmt"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/aws/aws-sdk-go/aws"
@Rishats
Rishats / sonarqube-docker-compose.yml
Created July 18, 2019 09:00 — forked from Warchant/sonarqube-docker-compose.yml
docker-compose file to setup production-ready sonarqube
version: "3"
services:
sonarqube:
image: sonarqube
expose:
- 9000
ports:
- "127.0.0.1:9000:9000"
networks:
@Rishats
Rishats / cloudSettings
Last active February 22, 2021 07:06
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-02-22T07:06:38.847Z","extensionVersion":"v3.4.3"}
@Rishats
Rishats / Vagrantfile
Created August 26, 2018 10:23
Vagrant with 2 ubuntu machine for grafana and client.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-18.04"
config.vm.box_check_update = false
config.vm.define "default" do |default|
default.vm.network "private_network", ip: "192.168.10.3"
@Rishats
Rishats / Dockerfile
Last active June 25, 2018 15:24 — forked from patmaddox/Dockerfile
Using personal SSH keys on docker container (OS X)
RUN mkdir ~/.ssh
RUN echo 'IdentityFile ~/.ssh/id_rsa.pub' > ~/.ssh/id_rsa.pub
@Rishats
Rishats / Homestead.yaml
Created December 16, 2017 08:38
Homestead sites mac
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
@Rishats
Rishats / file.sql
Last active November 18, 2017 06:08
sql trigers
CREATE TRIGGER counter_points BEFORE INSERT ON `students_work`
FOR EACH ROW SET @sum = @sum + NEW.points;
SET @sum = 0;
INSERT INTO `students_work` (`id`, `name`, `description`, `points`, `done`, `created_at`, `student_id`) VALUES (NULL, 'TEST', 'TEST', '100', NULL, '2017-11-18 00:00:00.000000', '1');
SELECT @sum AS 'Общее количество доступных баллов на студентов';
@Rishats
Rishats / 000-default.conf
Last active November 14, 2017 09:29
For Apache2 conf.
<VirtualHost *:80>
# This is name based virtual hosting. So place an appropriate server name
# here. Example: django.devsrv.local
ServerName platform.tk
ServerAdmin rihasultanov@gmail.com
# This alias makes serving static files possible.
# Please note, that this is geared to our settings/common.py
# In production environment, you will propably adjust this!
@Rishats
Rishats / Python3 Virtualenv Setup.md
Created October 13, 2017 05:39 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3