Skip to content

Instantly share code, notes, and snippets.

View murych's full-sized avatar
👑
I may be slow to respond.

Timur murych

👑
I may be slow to respond.
View GitHub Profile
@Fitzy1293
Fitzy1293 / pdfbib-citer
Last active August 29, 2021 06:22
Shell script to get BibTeX citations from PDF. For use in .bib files that you use to do references in LaTeX.
#!/bin/env bash
#https://gist.github.com/Fitzy1293/5c6019479456054b267764354df2a899
if [ $# -eq 0 ]; then
echo "Enter a pdf to create a bibtex citation for"
ls *.pdf | tr ' ' '\n'
exit 1
fi
@skyhisi
skyhisi / qtlogging.ini
Created August 6, 2019 12:20
Qt - Enable qDebug on Fedora - /etc/xdg/QtProject/qtlogging.ini
[Rules]
*.debug=true
qt.*.debug=false
@jtortoise
jtortoise / main.cpp
Last active March 9, 2022 10:18
Json format for Qt's QSettings class. Doesn't support json array
#include <QCoreApplication>
#include <QtCore>
#include "qsettings_json.hpp"
int main(int argc, char *argv[])
{
QSettings setting("config.json", JsonFormat);
qDebug().noquote() << setting.value("data").toInt();

от Али-Бабы и разбойников, к лье под водой и к вархаммеру

Давайте я сразу скажу - речь пойдет о биткоинах. При этом не буду вас агитировать за или против - это вообще не мое дело. Я просто расскажу вам о своем отношении к этому феномену и мифам вокруг него.

Для начала стоит сказать, что я не рассматриваю биткоин как валюту. Это не средство, которое заменит кредитные карты или ежедневные расчеты - для этого есть lightning network и другие средства децентрализации. Для меня биткоин - это актив, максимально похожий на золото во всех его проявлениях, кроме физического присутствия. Биткоины добывают, причем, чем больше биткоинов люди уже добыли, тем сложнее добывать дальше. Количество биткоинов, которые вообще можно будет добыть и пустить в оборот, фиксировано. Обмен биткоинами происходит “из рук в руки”. Хранить биткоины не трудно, затратно только получить или передать их. Замените “биткоины” на “золото” - каждое из этих заявлений так же будет действительно.

Поведение “золотых с

@zentralwerkstatt
zentralwerkstatt / instructions.md
Last active February 20, 2023 23:55
Install Syncthing on Linux
  • Install the necessary packages:
sudo apt-get install apt-transport-https ca-certificates
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt-get update
sudo apt-get install syncthing
sudo apt-get install git
  • Start syncthing once:
@leafstorm
leafstorm / print-server.md
Created April 11, 2017 02:09
How to set up a CUPS print server running Fedora Server for an HP printer, and connect to it from your Fedora Workstation:

How to set up a CUPS print server running Fedora Server for an HP printer, and connect to it from your Fedora Workstation:

Run these commands on the server:

dnf install cups hplip
systemctl start cups
firewall-cmd --zone=FedoraServer --add-service=ipp
firewall-cmd --zone=FedoraServer --add-service=ipp --permanent

Then go to the CUPS Web admin at http://[server]:631 and go to the "Administration" page.

@pwuertz
pwuertz / kicad_picknplace_assistant.py
Last active November 27, 2023 07:04
KiCad PCB pick and place assistant
Moved to:
https://github.com/pwuertz/kicad_picknplace_assistant
@demidovakatya
demidovakatya / rules.md
Last active November 19, 2016 22:17
machinelearning2016 rules

Пожалуйста, не спеши, и оформляй поток мыслей в один пост, а не в серию, так как у чата ограничение истории на 10000 постов. Каждый новый пост стирает что-то из истории.

Также очень просим оформлять код в обратные кавычки, а не постить его «как есть», потому как такие посты на порядок сложнее читать, а для истории они становятся совсем бесполезны.

Сообщения в слаке можно и нужно редактировать, а грамматические ошибки исправлять.

  • флуд — в #random,
  • по делу — в #general,
  • вопросы – в соответствующие каналы (дальше — подробнее),
  • политоту - в топку,
@peterspackman
peterspackman / mingw-w64-x86_64.cmake
Last active April 15, 2024 15:04
cmake toolchain file for mingw-w64 x86_64 builds on Ubuntu
# Sample toolchain file for building for Windows from an Ubuntu Linux system.
#
# Typical usage:
# *) install cross compiler: `sudo apt-get install mingw-w64`
# *) cd build
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake ..
# This is free and unencumbered software released into the public domain.
set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
@cube-drone
cube-drone / automation.md
Last active March 26, 2024 20:24
Automation For The People

Automation for the People

Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.

"Don't Use Manual Procedures".

This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.

The trouble was that I hadn't much of an idea how to actually go