Skip to content

Instantly share code, notes, and snippets.

View srusskih's full-sized avatar

Serhii Ruskykh srusskih

View GitHub Profile
srusskih / English all 1-grams
Created May 1, 2024 18:49 — forked from Kroid/English all 1-grams
Google Books Ngrams
srusskih / Spacevim.init.toml
Created December 16, 2022 15:38 — forked from masihtehrani/Spacevim.init.toml
spacevim golang ide
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2017 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at >
# URL:
# License: GPLv3
lint_on_the_fly = true
srusskih /
Created April 14, 2020 11:30 — forked from ryu1kn/
Getting GCP access token from a service account key JSON file

Getting GCP access token from a service account key

Use your service account's key JSON file to get an access token to call Google APIs.

Good for seeing how things work, including the creation of JWT token.

To create a JWT token, you can replace script with tools like step.

If you just want to get an access token for a service account,

srusskih / disable mcafee endpoint
Created September 7, 2018 08:25 — forked from tegansnyder/disable mcafee endpoint
Disable McAffee Endpoint Protection OSX

method 1

sudo /usr/local/McAfee/AntiMalware/VSControl stopoas


sudo defaults write /Library/Preferences/com.mcafee.ssm.antimalware.plist OAS_Enable -bool False
sudo /usr/local/McAfee/AntiMalware/VSControl stop
sudo /usr/local/McAfee/AntiMalware/VSControl reload
srusskih / gist:e412d17a56936b9fa5929f6e50557f27
Created October 3, 2017 12:28 — forked from dwins/gist:1790448
Pylint rc file to identify functions, classes, and modules without docstrings
# Specify a configuration file.
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
# Profiled execution.
import sublime, sublime_plugin
import os.path, string
VALID_FILENAME_CHARS = "-_.() %s%s%s" % (string.ascii_letters, string.digits, "/:\\")
# { "keys": ["alt+o"], "command": "open_filename_under_cursor" }
class OpenFilenameUnderCursor(sublime_plugin.TextCommand):
def run(self, edit):
for region in self.view.sel():
srusskih /
Created October 29, 2012 13:08 — forked from ftao/
update to python 2.7 on debian 6
cd /tmp/
sudo apt-get install build-essential
tar -xzf Python-2.7.2.tgz
cd Python-2.7.2
sudo apt-get install libsqlite3-dev zlib1g-dev libncurses5-dev
sudo apt-get install libgdbm-dev libbz2-dev libreadline5-dev
sudo apt-get install libssl-dev libdb-dev
./configure --enable-shared