Skip to content

Instantly share code, notes, and snippets.

Сергей tz4678

Block or report user

Report or block tz4678

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tz4678
tz4678 / How-To-Install-Arch-Linux.md
Last active Oct 15, 2019
Как установить Arch Linux
View How-To-Install-Arch-Linux.md

Записываем образ

$ sudo dd if= of=/dev/sdX bs=8M status=progress; sync

Далее нужно загрузиться с флешки. Для этого во время загрузки системы нажимаем F2 или Del. Далее заходим в раздел Boot биоса и выбираем загрузку с флешки.

Размечаем диск

View pet-snippet.toml
[[snippets]]
description = "list items in current directory"
command = "ls"
tag = ["file system"]
output = ""
[[snippets]]
description = "list items in current directory and show in long format to see perimissions, size, and modification date"
command = "ls -l"
tag = ["file system"]
View file.md
$ yay -Qet | awk '{print $1}' # list of installed packages
aic94xx-firmware
alsa-utils
arc-kde
ark
asdf-vm
base
bison
blender
View mimeapps.list
#~/.local/share/applications/mimeapps.list
[Added Associations]
#...
x-scheme-handler/subl=subl-urlhandler.desktop
View packages.txt
a52dec 0.7.4-10
accounts-qml-module 0.7-2
accountsservice 0.6.55-1
acl 2.2.53-1
adobe-source-code-pro-fonts 2.030ro+1.050it-5
adwaita-icon-theme 3.34.0-1
alembic 1.7.11-1
alsa-lib 1.1.9-2
alsa-utils 1.1.9-1
aom 1.0.0.errata1-1
View Asyncio HOWTO.md

Asyncio HOWTO

Очереди

import asyncio


async def worker(q):
  while 1:
@tz4678
tz4678 / pubsub.py
Created Oct 4, 2019 — forked from appeltel/pubsub.py
asyncio pubsub example
View pubsub.py
import asyncio
import random
class Hub():
def __init__(self):
self.subscriptions = set()
def publish(self, message):
View gather_million_args.py
>>> async def foo(): pass
...
>>> tasks=[foo() for _ in range(1000000)]
>>> asyncio.gather(*tasks)
<_GatheringFuture pending>
>>>
@tz4678
tz4678 / git develop to master
Created Oct 3, 2019 — forked from royrusso/git develop to master
Git: merge 'develop' in to 'master'
View git develop to master
git checkout master
git merge develop
git push -u origin master
@tz4678
tz4678 / alexa.py
Created Sep 25, 2019
Alexa Top 1 Millison Sites
View alexa.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import csv
import io
import zipfile
import requests
You can’t perform that action at this time.