Skip to content

Instantly share code, notes, and snippets.

View yurinnick's full-sized avatar
🏠
Working from home

Nikolay Yurin yurinnick

🏠
Working from home
View GitHub Profile
(.env) [yurinnick@yurinnick-laptop unicode-bug]$ cat ./unicode_bug.egg-info/PKG-INFO | xxd
00000000: 4d65 7461 6461 7461 2d56 6572 7369 6f6e Metadata-Version
00000010: 3a20 322e 310a 4e61 6d65 3a20 756e 6963 : 2.1.Name: unic
00000020: 6f64 652d 6275 670a 5665 7273 696f 6e3a ode-bug.Version:
00000030: 2030 2e31 2e30 0a4c 6963 656e 7365 3a20 0.1.0.License:
00000040: 0b0a 2020 2020 2020 2020 0a52 6571 7569 .. .Requi
00000050: 7265 732d 5079 7468 6f6e 3a20 3e3d 332e res-Python: >=3.
00000060: 3130 0a50 726f 7669 6465 732d 4578 7472 10.Provides-Extr
00000070: 613a 2064 6576 0a4c 6963 656e 7365 2d46 a: dev.License-F
00000080: 696c 653a 204c 4943 454e 5345 0a ile: LICENSE.
Using pip 23.2.1 from /home/yurinnick/Documents/test/.venv/lib64/python3.11/site-packages/pip (python 3.11)
Obtaining file:///home/yurinnick/Documents/test
Running command pip subprocess to install build dependencies
Collecting setuptools
Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/4f/ab/0bcfebdfc3bfa8554b2b2c97a555569c4c1ebc74ea288741ea8326c51906/setuptools-68.1.2-py3-none-any.whl.metadata
Using cached setuptools-68.1.2-py3-none-any.whl.metadata (6.2 kB)
Collecting wheel
Obtaining dependency information for wheel from https://files.pythonhosted.org/packages/b8/8b/31273bf66016be6ad22bb7345c37ff350276cfd46e389a0c2ac5da9d9073/wheel-0.41.2-py3-none-any.whl.metadata
Using cached wheel-0.41.2-py3-none-any.whl.metadata (2.2 kB)
Using cached setuptools-68.1.2-py3-none-any.whl (805 kB)
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools, wheel)
* Getting build dependencies for sdist...
running egg_info
writing unicode_bug.egg-info/PKG-INFO
writing dependency_links to unicode_bug.egg-info/dependency_links.txt
writing requirements to unicode_bug.egg-info/requires.txt
writing top-level names to unicode_bug.egg-info/top_level.txt
reading manifest file 'unicode_bug.egg-info/SOURCES.txt'
adding license file 'LICENSE'
hostname:
k3os
k3os:
modules:
- nfs
k3s_args:
- -server
- --cluster-init
- --disable=traefik
dns_nameservers:
@yurinnick
yurinnick / layout.sh
Created January 6, 2021 10:24
Setup Mac Russian Phonetic keyboard layout in Gnome
#!/bin/bash
gsettings set org.gnome.desktop.input-sources sources "[('xkb','us'), ('xkb', 'ru+phonetic_mac')]"
@yurinnick
yurinnick / vpn_ip_update.sh
Created November 3, 2017 04:57
Automatically update VPN gateway IP
#!/bin/bash
vpn_host="netherlands-udp.ivacy.net"
log_file="/var/log/vpn_ip_update.log"
log() {
echo ${1} | tee ${log_file}
}
new_ip=$(host ${vpn_host} | awk '/has address/ { print $4 }')
@yurinnick
yurinnick / Dockerfile
Created April 19, 2016 23:23
docker-container-testing-demo
FROM debian:jessie
RUN apt-get update && \
apt-get install -y --no-install-recommends apache2 net-tools && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/lock/apache2
ENV APACHE_RUN_USER www-data
from github import Github
import json
org = 'place-org-name-here'
gh_token = 'place-gh-token-here'
g = Github(gh_token)
repo_list = g.get_organization(org).get_repos()
data = map(lambda repo: { 'repository': repo.name, 'last_update': str(repo.pushed_at) }, repo_list)
with open('output.json', 'w') as outfile:
require 'git'
module Metadata
class SharedContext
attr_reader :state
def initialize
@state ||= []
end
zk:
image: bobrik/zookeeper
ports:
- 2181:2181
environment:
ZK_CONFIG: tickTime=2000,initLimit=10,syncLimit=5,maxClientCnxns=128,forceSync=no,clientPort=2181
ZK_ID: 1
master:
image: mesosphere/mesos-master:0.26.0-0.2.145.ubuntu1404