Skip to content

Instantly share code, notes, and snippets.

View NeonSalamander's full-sized avatar
:octocat:
Wear mjölnir and hail Thor

NeonSalamander NeonSalamander

:octocat:
Wear mjölnir and hail Thor
View GitHub Profile
@NeonSalamander
NeonSalamander / upsert.py
Created February 17, 2025 15:08 — forked from bhtucker/upsert.py
A demonstration of Postgres upserts in SQLAlchemy
"""
Upsert gist
Requires at least postgres 9.5 and sqlalchemy 1.1
Initial state:
[]
Initial upsert:
@NeonSalamander
NeonSalamander / xampp_php7_xdebug.md
Created May 20, 2020 10:28 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP

Install RabbitMQ on CentOS 7

sudo yum -y install epel-release
sudo yum -y update

Install Erlang

Download repository

Java

sudo apt update  
sudo apt install oracle-java8-installer  
sudo apt install oracle-java8-set-default  

scala

sudo apt-get remove scala-library scala 
@NeonSalamander
NeonSalamander / Steam-on-fedora.md
Created January 20, 2019 04:37 — forked from mattbell87/Steam-on-fedora.md
How to install Steam on Fedora

Installing Steam on Fedora

These instructions are currently for Fedora 24. I'll update them over the releases if anything changes.

Before you follow these, make sure you have RPM Fusion installed.

Open a terminal

Press the Win/Super key, type terminal and press Enter.

Upgrade to super user

@NeonSalamander
NeonSalamander / slack.php
Created July 12, 2017 00:54 — forked from stefanzweifel/slack.php
Slack.com Webhook Integration (PHP) - Simple snippet which tells you, how to build your payload array.
<?php
//Options
$token = 'YOUR_TOKEN_HERE';
$domain = 'YOUR_SLACK_DOMAIN_GOES_HERE';
$channel = '#general';
$bot_name = 'Webhook';
$icon = ':alien:';
$message = 'Your message';