Skip to content

Instantly share code, notes, and snippets.

View dimmy2000's full-sized avatar

Dmitrii Samoilenko dimmy2000

  • Moscow
View GitHub Profile
@bertrandmartel
bertrandmartel / steam_collection.py
Created June 3, 2020 23:00
search items in a specific collections on the Steam Market
import requests
import json
r = requests.get("https://steamcommunity.com/market/appfilters/730")
tags = json.loads(r.text)["facets"]["730_ItemSet"]["tags"]
winter_offensive_tag = [
t[0]
for t in tags.items()
if t[1]["localized_name"] == "The Winter Offensive Collection"
@vorozhba
vorozhba / Как удалить commit в Github.txt
Last active November 16, 2025 11:06
Как удалить commit в Github
1. Получаем хэш-код коммита, к которому хотим вернуться.
2. Заходим в папку репозитория и пишем в консоль:
$ git reset --hard a3775a5485af0af20375cedf46112db5f813322a
$ git push --force
@justintv
justintv / .bashrc
Created August 17, 2009 00:53
Display git branch in bash prompt
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer!
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ "
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty!
# ~/code/web:beta_directory$ git checkout master
# Switched to branch "master"
# ~/code/web:master$ git checkout beta_directory
# Switched to branch "beta_directory"