Skip to content

Instantly share code, notes, and snippets.

@IgorKurkov
IgorKurkov / .bashrc
Created October 18, 2023 09:33 — forked from justintv/.bashrc
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"
@IgorKurkov
IgorKurkov / gist:afdb472b467777a7bda70013c3a320d7
Created April 2, 2021 10:22 — forked from doobeh/gist:3188318
Installing WeasyPrint on Windows

Installing WeasyPrint on Windows

WeasyPrint converts HTML including images to PDF, it's cross platform but Windows requires a decent amount of massaging to persuade it to work.

To install Pango and Cairo download the [all in one bundle][GTK] of the GTK+ stack and extract the archive to C:\GTK.

You'll need to add the GTK bin folder to your system path so the various

@IgorKurkov
IgorKurkov / README.md
Created October 26, 2018 08:50
tmp 181026 PR clean-up

Избавляемся от ненужных изменений в пиаре

Это временный гист. Я его грохну по окончании операции. Сможешь форкнуть себе на память.

Если какая-то из команд ниже выдаёт ошибку - напиши в комменте - какая и что говорит.

Идём в папку локальной копии форка.

  1. Синхронизируемся с апстримом
@IgorKurkov
IgorKurkov / Sync gh-pages + master branches
Created January 12, 2018 14:37 — forked from mandiwise/Sync gh-pages + master branches
Keep gh-pages up to date with a master branch
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master
$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes