Skip to content

Instantly share code, notes, and snippets.

View msztorc's full-sized avatar
🎧
WFH

Mirosław Sztorc msztorc

🎧
WFH
View GitHub Profile
@msztorc
msztorc / curl-github-api-render-markdown.md
Created November 30, 2023 09:40 — forked from jkullick/curl-github-api-render-markdown.md
Render Markdown with cURL & Github API
curl \
  -H 'Content-Type: application/json' \
  -X POST \
  -d '{"text": "$TEXT", "mode": "markdown"}' \
  https://api.github.com/markdown
@msztorc
msztorc / centos_php_fpm_coredumps.md
Created January 21, 2023 16:03 — forked from mkubenka/centos_php_fpm_coredumps.md
How to enable CentOS PHP-FPM coredumps.

CentOS PHP-FPM coredumps

https://wiki.archlinux.org/index.php/Core_dump

Enabling core dumps for PHP-FPM on CentOS 7 require several steps.

Set the rlimit_core directive in /etc/php-fpm.d/pool.conf and /etc/php-fpm.conf to unlimited:

rlimit_core = unlimited
@msztorc
msztorc / modal.html
Created May 19, 2022 21:12 — forked from dpawluk/modal.html
Establishing a modal instance and communicating with it from the parent instance
<html>
<head>
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous">
</script>
</head>
@msztorc
msztorc / Core dumps and gdb backtrace for apache.md
Last active May 24, 2022 11:20 — forked from arungpro/Core dumps and gdb backtrace for apache
Core dumps and gdb backtrace for php-fpm and apache

#PHP Apache CORE DUMP - GDB backtrace

Open httpd.conf: vi httpd.conf

Add following line main config section: CoreDumpDirectory /tmp/apache2-gdb-dump

Unlimited core dump size, In terminal add below ulimit -c unlimited

@msztorc
msztorc / git-pushing-multiple.rst
Created August 31, 2021 20:24 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@msztorc
msztorc / jira_letsencrypt.md
Created February 22, 2019 21:19 — forked from dborin/jira_letsencrypt.md
HOWTO Configure Atlassian Jira to use Letsencrypt certificate

HOWTO Configure Atlassian Jira to use Letsencrypt certificate with default Tomcat

This is a primer for installing a Letsencrypt certificate on a Jira server that is running the Jira provided, default Tomcat for serving webpages.

I found lots of information about how to do it using a free-standing Tomcat or nginx, but nothing about this particular combination. I hope it helps you!

Obviously, in all the examples, you need to replace jira.example.com with your own domain! And (duh) you need to use your own password, not 1234

You need to have installed Java (outside the scope of this document). Then in your user's shell RC file and probably root's RC file, add

@msztorc
msztorc / smstools
Last active November 20, 2016 12:05 — forked from kmpm/README.md
smstools with usb dongle on rpi
How to install smstools on Raspberry PI with a nn dongle
========================================================
Get deviceid for the dongle
---------------------------
sudo lsusb
I get the result...