Skip to content

Instantly share code, notes, and snippets.

View denvit's full-sized avatar
🎯
Focusing

Denis Veg denvit

🎯
Focusing
  • Gornja Radgona, Slovenia
  • 22:29 (UTC +02:00)
View GitHub Profile
@denvit
denvit / sphp.sh
Created November 27, 2020 14:20 — forked from w00fz/sphp.sh
PHP switcher
#!/bin/bash
# Check if command was ran as root.
if [[ $(id -u) -eq 0 ]]; then
echo "The command \"sphp\" should not be executed as root or via sudo directly."
echo "When a service requires root access, you will be prompted for a password as needed."
exit 1
fi
# Usage
@denvit
denvit / xampp_php7_xdebug.md
Created May 4, 2019 15:37 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP

Installing Xdebug for XAMPP with PHP 7.x

Requirements

Setup

@denvit
denvit / jwtRS256.sh
Created June 6, 2018 09:02 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@denvit
denvit / __INDEX.txt
Created October 16, 2017 12:14 — forked from facine/__INDEX.txt
Drupal 8 - Examples
# Taxonomy terms:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_taxonomy_term-php
# Menu links:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_menu_link-php
# File items:
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_file-php
# Nodes:
<?php
//=========================================================================
// Skripta za posiljanje sms preko Simobilove Klape / Najdi.si / Tusmobil
// Verzija 2.40 (c) blackclw @ slo-tech
//=========================================================================
// Pošiljanje:
// SendFreeSms("ponudnik", "uporabniskoime", "geslo", "stevilka", "sporocilo")
//
// Preverjanje stanja:
// SendFreeSms("ponudnik", "uporabniskoime", "geslo", "stevilka", "sporocilo", False)