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 | |
error_reporting(E_ALL); | |
$images_to_load = array( | |
'C:/img-folder/01.jpg', | |
'C:/img-folder/02.jpg', | |
'C:/img-folder/03.jpg', | |
'C:/img-folder/04.jpg', | |
'C:/img-folder/05.jpg', |
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
@echo off | |
:chooseversion | |
set /p javaVersion=Please choose Java version (type 6, 7, 8 or 0 for exit): %=% | |
IF "%javaVersion%" == "6" ( | |
start /d %CD% eclipse.exe -clean -vm "C:/Program Files/Java/jdk1.6.0_45/bin/javaw.exe" | |
) ELSE IF "%javaVersion%" == "7" ( |
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 | |
error_reporting(E_ALL); | |
function validate_email($email) | |
{ | |
$key = ''; // Setup Mailgun public key | |
if (function_exists('filter_var')) { |
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
var http = require('http'), https = require('https') | |
var apiKey = process.argv[2]; | |
var _quSelected = process.argv[3] || ''; | |
var _quPrompt = process.argv[4] || ''; | |
var _lang = process.argv[5] || 'en-bg'; |
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 | |
require('path-to-lib/httpful/bootstrap.php'); | |
$url = "https://api.sendgrid.com/api/mail.send.json"; | |
$payload = array( | |
'to' => "[email protected]", | |
'from' => "[email protected]", | |
'fromname' => "Delivery team", |
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
-cssTheme | |
none | |
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar | |
-vm | |
C:/Program Files/Java/jdk1.8.0_60/bin/javaw.exe | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417 | |
-product | |
org.eclipse.epp.package.committers.product |
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
<target name="delete.node_modules"> | |
<echo message="Delete node_modules from build directory"/> | |
<delete verbose="false" includeemptydirs="true"> | |
<fileset dir="${basedir}/build/node_modules" includes="**/*" defaultexcludes="false" /> | |
</delete> | |
<delete dir="${basedir}/build/node_modules" /> | |
</target> |
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
const https = require('https') | |
const headers = { | |
'Authorization' : 'Basic YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhOmFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ==', | |
'Content-Type' : 'application/x-www-form-urlencoded' | |
} | |
const optionsget = { | |
host : 'account.demandware.com', | |
port : 443, |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType"> | |
<listAttribute key="org.eclipse.debug.ui.favoriteGroups"> | |
<listEntry value="org.eclipse.ui.externaltools.launchGroup"/> | |
</listAttribute> | |
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE" value="${none}"/> | |
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="D:\programs\nodejs\node.exe"/> | |
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="${selected_resource_name}"/> | |
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${container_loc}"/> | |
</launchConfiguration> |
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
#!/bin/bash | |
# http://serverfault.com/questions/410321/debian-ip6tables-rules-setup-for-ipv6/410327#410327 | |
# http://ipset.netfilter.org/iptables.man.html | |
# https://www.sixxs.net/wiki/IPv6_Firewalling | |
# https://www.cyberciti.biz/faq/ip6tables-ipv6-firewall-for-linux/ | |
# https://gist.github.com/thomasfr/9712418 | |
# https://gist.github.com/SnakeDrak/f4150f6e517e5a1d525f | |
# http://www.thegeekstuff.com/2011/06/iptables-rules-examples | |
# http://www.thegeekstuff.com/scripts/iptables-rules |
OlderNewer