This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\AdminModule\Presenters; | |
use Nette, | |
App\Model, | |
Nette\Application\Responses, | |
Net_SSH2, //pear phpseclib 0.3.9. composer: phpseclib/phpseclib | |
Net_SCP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* example of html structure: | |
* | |
* <div class="row row-same-height"> | |
* <div class="col-sm-6 col-xs-12"> | |
* <div class="same-height-item">...</div> | |
* </div> | |
* <div class="col-sm-6 col-xs-12"> | |
* <div class="same-height-item">...</div> | |
* </div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Simple jQuery function for email obfuscation | |
* | |
*<a href="mailto:some#zavinac#email.cz" target="_blank" title="Email link">some#zavinac#email.cz</a> | |
* | |
*/ | |
jQuery(function(){ | |
$("a[href^='mailto:']").each(function(){ | |
var $repl = $(this).attr('href'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$aw_list_bg_color: $white; | |
$aw_list_border: none; | |
$aw_list_shadow: .05em .2em .6em rgba(0,0,0,.2); | |
$aw_list_radius: 0px; | |
$aw_list_color: $darkGray; | |
$aw_selected_item_bg: $blue; | |
$aw_selected_item_color: $white; | |
$aw_mark_bg: $lightBlue; | |
$aw_mark_color: $white; | |
$aw_selected_mark_bg: rgba($white, 0.15); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Model; | |
use Nette, | |
Nette\Utils\Strings, | |
Nette\Database\Connection; | |
class GopayAPI extends Nette\Object { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {ipcMain} from 'electron' | |
const fs = require('fs') | |
const axios = require('axios') | |
/* ... */ | |
ipcMain.on('downloadFile', function (event, data) { | |
const filePath = data.filePath | |
const item = data.item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# enable gzip compression | |
<IfModule mod_deflate.c> | |
<IfModule mod_filter.c> | |
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json | |
</IfModule> | |
</IfModule> | |
# ---------------------------------------------------------------------- | |
# Expires headers (for better cache control) | |
# ---------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
To get some attributes from AD, you need to set the correct permissions on the container | |
or object you are trying to read. (e.g., pwdLastSet, userAccountControl) | |
*/ | |
const ActiveDirectory = require('activedirectory') | |
/* eslint-disable-next-line no-unused-vars */ | |
const SCRIPT_FLAG = 0 | |
const ACCOUNTDISABLE_FLAG = 1 | |
/* eslint-disable-next-line no-unused-vars */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This file is part of the ReCaptchaControl package | |
* | |
* !!! needs polyfill for FormData in IE11 and Edge !!! | |
* https://github.com/jimmywarting/FormData | |
* | |
* @license MIT | |
* @author Petr Kessler (https://kesspess.cz) | |
* @link https://github.com/uestla/ReCaptchaControl | |
*/ |
OlderNewer