Skip to content

Instantly share code, notes, and snippets.

View denvit's full-sized avatar
🎯
Focusing

Denis Veg denvit

🎯
Focusing
  • Gornja Radgona, Slovenia
  • 08:13 (UTC +01:00)
View GitHub Profile
@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 / Drupal 7 Commerce stock - custom stock message
Last active November 12, 2018 13:17
Drupal 7 - Hook alters stock display message. Formatter for Stock must be set as "Unformatted" on Product > Manage display.
/**
* Implements hook_commerce_product_reference_default_delta_alter().
*/
function test_module_commerce_product_reference_default_delta_alter(&$delta, $products) {
$test = 123;
foreach ($products as $product) {
if ($product->commerce_stock['und'][0]['value'] > 0){
$products[1]->commerce_stock['und'][0]['value'] = "On stock";
}else {
@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 / Laravel Packages You Install on Every Project.txt
Last active July 5, 2018 17:10
Laravel Packages You Install on Every Project
https://github.com/spatie
https://github.com/Maatwebsite/Laravel-Excel
https://github.com/laravel-frontend-presets/bulma
https://github.com/LaravelCollective/html
https://github.com/atoum/atoum
https://github.com/atoum/stubs
https://github.com/atoum/reports-extension
https://github.com/barryvdh/laravel-debugbar
https://github.com/fzaninotto/Faker
https://github.com/laravel/tinker
@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)