Skip to content

Instantly share code, notes, and snippets.

View sshyran's full-sized avatar
:octocat:
Dev

Serhii Shyran sshyran

:octocat:
Dev
View GitHub Profile
@sshyran
sshyran / Rinkeby.md
Created May 24, 2020 12:55 — forked from learner-long-life/Rinkeby.md
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

@sshyran
sshyran / gist:531f67f75cc43fbb6f70e987f504a492
Created February 26, 2020 12:45
Windows 7 All Online/Offline [Retail-MAK] Activation Keys
Windows 7 All Online/Offline [Retail-MAK] Activation Keys
=================================================================================
. Run "Command Prompt" as Administrator
. slmgr.vbs -ipk Product Key
. slui4
=================================================================================
Windows 7 Ultimate Retail Phone Activation Keys
RHTBY-VWY6D-QJRJ9-JGQ3X-Q2289
V77DJ-CT8WB-Y3GXT-X3FBP-6F987
JC7BV-94FD2-D86PH-XRMHR-BXKDG
! 02.07.2019 http://www.outsidethebox.ms
! www.outsidethebox.ms##.widget-area.sidebar-primary.sidebar
www.outsidethebox.ms##div.sabai-clearfix.sabai-navigation:nth-of-type(1)
www.outsidethebox.ms##.breadcrumb
www.outsidethebox.ms###sabai-entity-content-153
www.outsidethebox.ms##.sabai-nav-tabs.sabai-nav
! 02.07.2019 https://www.microsoft.com
www.microsoft.com##.switchOfficeHeroFirst
www.microsoft.com##.c-uhfh-actions
@sshyran
sshyran / openlitespeed.sh
Created July 12, 2018 15:28 — forked from rodrigoslayertech/openlitespeed.sh
Install OpenLiteSpeed
#!/bin/bash
##############################################################################
# Open LiteSpeed is an open source HTTP server. #
# Copyright (C) 2013 - 2016 LiteSpeed Technologies, Inc. #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
@sshyran
sshyran / node-and-npm-in-30-seconds.sh
Created September 10, 2017 15:22 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@sshyran
sshyran / jquery.preload.js
Created March 26, 2017 10:56 — forked from mathiasbynens/jquery.preload.js
JavaScript preload() function
/*!
* $.preload() function for jQuery – http://mths.be/preload
* Preload images, CSS and JavaScript files without executing them
* Script by Stoyan Stefanov – http://www.phpied.com/preload-cssjavascript-without-execution/
* Slightly rewritten by Mathias Bynens – http://mathiasbynens.be/
* Note that since this script relies on jQuery, the preloading process will not start until jQuery has finished loading.
*/
jQuery.preload = function(array) {
var length = array.length,
@sshyran
sshyran / typeface.js
Created March 26, 2017 09:46
Typeface.js
/*****************************************************************
typeface.js, version 0.14 | typefacejs.neocracy.org
Copyright (c) 2008 - 2009, David Chester davidchester@gmx.net
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
# Add correct content-type for fonts
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType font/x-woff .woff
AddType image/svg+xml .svg
# Compress compressible fonts
AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml
@sshyran
sshyran / nginx-tuning.md
Created November 12, 2016 16:09 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@sshyran
sshyran / svgoptimize
Created September 15, 2016 11:02 — forked from mrinterweb/svgoptimize
Command line SVG optimizer and base64 converter for CSS
#! /usr/bin/env ruby
# nokogiri is required below unless --no-modify option is specified
require 'optparse'
require 'tempfile'
@options = {}
OptionParser.new do |opts|
opts.banner = "Usage: svgoptimize [options] <path-to-svg-file>"