Skip to content

Instantly share code, notes, and snippets.

View danielbehina's full-sized avatar
💭
I may be slow to respond.

Daniel Behina danielbehina

💭
I may be slow to respond.
View GitHub Profile
@danielbehina
danielbehina / media-query.css
Created January 31, 2020 14:07 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@danielbehina
danielbehina / .htaccess
Created November 23, 2018 10:53 — forked from yurydelendik/.htaccess
CORS for pdf.js
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "http://mozilla.github.io"
</IfModule>
#######################################################
### nginx.conf site wp vhost include start
#######################################################
###
### deny crawlers without 403 response
###
if ($http_user_agent ~* (HTTrack|HTMLParser|libwww|wget) ) {
return 444;
}
@danielbehina
danielbehina / custom_bean.info
Created September 27, 2016 11:55 — forked from indytechcook/custom_bean.info
Bean Listing Exammple
name = Custom Beans
description = My Custom Beans
core = 7.x
files[] = "custom_bean.listing.inc"
@danielbehina
danielbehina / MakeOpenVPN.sh
Created December 17, 2015 00:03 — forked from laurenorsini/MakeOpenVPN.sh
MakeOpenVPN.sh by Eric Jodoin
#!/bin/bash
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"
@danielbehina
danielbehina / taxonomy_ids
Last active August 29, 2015 14:14
Get taxonomy ids from Entity refernce linked field.
<?php
$query = new EntityFieldQuery();
$query
->entityCondition('entity_type', 'node', '=')
->entityCondition('bundle', array('article'))
->propertyCondition('status', 1)
// používám entity_reference, tak získáme tid pomocí target_id
->fieldCondition('field_category_reference', 'target_id', $tid, '=')
->range(0, 10)
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
// Transparent Background
// From: http://stackoverflow.com/questions/6902944/sass-mixin-for-background-transparency-back-to-ie8
// Extend this class to save bytes
.transparent-background {
background-color: transparent;
zoom: 1;
}
// The mixin
$default_rounded_amount: 5px
// Round corner at position by amount.
@mixin round-corner($position, $amount: $default_rounded_amount)
border-#{$position}-radius: $amount
-webkit-border-#{$position}-radius: $amount
@mixin round-corner-mozilla($position, $amount: $default_rounded_amount)
-moz-border-radius-#{$position}: $amount
// Round left corners by amount