Skip to content

Instantly share code, notes, and snippets.

View calvez's full-sized avatar
🏠
Working from home

calvez calvez

🏠
Working from home
  • Budapest, Hungary
View GitHub Profile
RewriteEngine on
RewriteCond %{SERVER_NAME} =tk.opdev.eu
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
This file has been truncated, but you can view the full file.
Notice típus: Undefined offset: 1 üzenet varbase_bootstrap_paragraphs_field_widget_entity_reference_paragraphs_form_alter() függvényben (/home/magnet/www/magnet/docroot/modules/contrib/varbase_bootstrap_paragraphs/varbase_bootstrap_paragraphs.module fájl 141. sorában). => Array
(
[33: varbase_bootstrap_paragraphs_field_widget_entity_reference_paragraphs_form_alter()] => Array
(
[file] => modules/contrib/varbase_bootstrap_paragraphs/varbase_bootstrap_paragraphs.module:141
[args] => Array
(
[0] => Array
(
[#title] =>
.bg-edge2edge {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
}
add_action('wp', 'add_login_check');
add_action( 'template_redirect', function() {
if ( is_page('szavaz') && ! is_user_logged_in() ){
wp_redirect( site_url( '/' ) );
exit();
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Article extends Model
{
// use soft delete instead of permanent delete
@calvez
calvez / fix-drupal8-permissions.sh
Created September 23, 2018 19:26 — forked from GreenSkunk/fix-drupal8-permissions.sh
Drupal - Bash shell script to fix Drupal 8 permissions where the PHP Handler is FastCGI.
#!/bin/bash
path=${1%/}
user=${2}
group=${2}
help="\nHelp: This script is used to fix permissions of a Drupal 8 installation in which the PHP Handler is FastCGI\nYou need to provide the following arguments:\n\t 1) Path to your drupal installation\n\t 2) Username of the user that you want to give files/directories ownership\n\nNote: This script assumes that the group is the same as the username if your PHP is compiled to run as FastCGI. If this is different you need to modify it manually by editing this script or checking out forks on GitHub.\nUsage: bash ${0##*/} drupal_path user_name\n"
echo "Refer to https://www.Drupal.org/node/244924"
<a class="navbar-brand ml-3" href="#">
<span class="">BootstrapCreative </span>
</a>
<nav class="navbar navbar-expand-md navbar-dark bg-dark sticky-top">
<!-- One of the primary actions on mobile is to call a business - This displays a phone button on mobile only -->
<div class="navbar-toggler-right">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
@calvez
calvez / gnome-keyring-daemon-use-100percent-cpu.mkd
Created August 24, 2018 09:04 — forked from noromanba/gnome-keyring-daemon-use-100percent-cpu.mkd
gnome-keyring use 100% CPU usage when Google Chrome started
<?php
// Register Sidebars
function szif_sidebars() {
$args = array(
'id' => 'szif',
'class' => 'szif-right',
'name' => __( 'Szépirodalmi figyelő', 'szif' ),
'description' => __( 'A szépirodalmi figyelő oldalain megejelenő sidebar', 'szif' ),
@calvez
calvez / wp-recent-posts-shortcode.php
Last active August 4, 2018 18:02
How To Create WordPress Recent Posts Shortcode
//https://chiefthemes.com/create-wordpress-recent-posts-shortcode/
<?php
function chiefthemes_posts_shortcode($atts, $content = NULL)
{
$atts = shortcode_atts(
[
'orderby' => 'date',