Skip to content

Instantly share code, notes, and snippets.

View SevereCloud's full-sized avatar

Daniil Suvorov SevereCloud

View GitHub Profile
  1. Получаем сертификат в личном кабинете.
  2. Проверяем, работает ли сертификат, добавив перед доменом https://
  3. В файл .htaccess после строчки RewriteEngine On нужно написать
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@SevereCloud
SevereCloud / im2cl.sh
Last active July 5, 2017 18:17
Последний скриншот в буфер обмена
#!/bin/bash
cd /home/severecloud/Изображения/
lasti=-1
endfile=''
while true
do
i=0
@SevereCloud
SevereCloud / keybase.md
Created October 21, 2017 18:44
Keybase proof

Keybase proof

I hereby claim:

  • I am severecloud on github.
  • I am severecloud (https://keybase.io/severecloud) on keybase.
  • I have a public key whose fingerprint is 1336 21E2 715E 7EF7 5C00 0F9F AFFB 176B EEC9 12DE

To claim this, I am signing this object:

@SevereCloud
SevereCloud / optiimg.sh
Created October 25, 2017 18:31
Оптимизация изображений
#!/bin/bash
for f in $(find . -type f -name "*.png");do optipng $f;done
for f in $(find . -type f -name "*.jp*g");do jpegoptim -m70 $f --strip-all;done
exit 0
// GET VK ACCESS_TOKEN
https://oauth.vk.com/authorize?client_id=6278770&scope=offline,photos,audio,video,docs,notes,pages,status,offers,questions,wall,groups,messages,email,notifications,ads,stats&response_type=token&redirect_uri=https://oauth.vk.com/blank.html

Keybase proof

I hereby claim:

  • I am severecloud on github.
  • I am severecloud (https://keybase.io/severecloud) on keybase.
  • I have a public key whose fingerprint is 0883 B753 DB22 2EAA 345D C7B4 9E75 0307 D739 3AF1

To claim this, I am signing this object:

@SevereCloud
SevereCloud / pip.js
Last active July 12, 2018 12:29
pictureInPicture для вк
// ==UserScript==
// @name pictureInPicture
// @namespace http://tampermonkey.net/
// @version 0.1
// @description pictureInPicture
// @license MIT
// @author SevereCloud
// @match https://vk.com/*
// ==/UserScript==
@SevereCloud
SevereCloud / graffitiVk.js
Created September 1, 2018 16:24
graffitiVk
// ==UserScript==
// @name graffitiVk
// @namespace http://tampermonkey.net/
// @version 0.1
// @description graffitiVk
// @license MIT
// @author SevereCloud
// @match https://vk.com/im*
// ==/UserScript==
// ==UserScript==
// @name Pixel Bot
// @namespace https://tampermonkey.net/
// @version 3.0
// @description try to take over the world!
// @author Flyink13, igoose
// @match https://pixel.vkforms.ru/*
// @grant none
// ==/UserScript==
image: docker:latest
services:
- docker:dind
stages:
- build
variables:
RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest