This file contains hidden or 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
-cd /usr/local/vesta/data/firewall | |
-vim custom.sh | |
-chmod +x $VESTA/data/firewall/custom.sh | |
Stop/Start your Firewall service from VestaCP | |
http://www.lowendtalk.com/discussion/44292/solved-server-with-vestacp-and-firewall-enabled-blocks-dns-lookups | |
http://www.lowendguide.com/3/networking/iptables-and-vestacp-output-rules-to-allow-dns-lookups/ | |
This file contains hidden or 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
A backup of http://sites.google.com/site/redcodenl/creating-shazam-in-java-1 just in case | |
Why is this necessary? Read http://sites.google.com/site/redcodenl/patent-infringement | |
Please fork, tweet about, etc. | |
---- | |
Creating Shazam in Java | |
A couple of days ago I encountered this article: How Shazam Works | |
This got me interested in how a program like Shazam works… And more importantly, how hard is it to program something similar in Java? |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
using System; | |
using System.Linq; | |
using System.Web.Mvc; | |
using Umbraco.Course.Models; | |
using Umbraco.Web.Mvc; | |
namespace Awesome.FormDemo.Controllers | |
{ | |
public class TicketOrderController : SurfaceController | |
{ |
This file contains hidden or 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
<select id="provincia" name="provincia"> | |
<option value="ag">Agrigento</option> | |
<option value="al">Alessandria</option> | |
<option value="an">Ancona</option> | |
<option value="ao">Aosta</option> | |
<option value="ar">Arezzo</option> | |
<option value="ap">Ascoli Piceno</option> | |
<option value="at">Asti</option> | |
<option value="av">Avellino</option> | |
<option value="ba">Bari</option> |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Usage: bash uninstall_vmware.bash | |
remove() { | |
entry="$1" | |
echo -ne "Removing \e[1;34m$entry\e[0m... " | |
sudo rm -rf "$entry" &> /tmp/uninstall-vmware.log | |
if [[ ! -e "$entry" ]]; then | |
echo -e "\e[1;32mOK\e[0m" |
This file contains hidden or 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
.jarallax { | |
position: relative; | |
background-size: cover; | |
background-repeat: no-repeat; | |
left: 50%; | |
top: 50%; | |
min-width: 100%; | |
min-height: 100%; | |
-webkit-transform: translate(-50%,-50%); | |
-moz-transform: translate(-50%,-50%); |
This file contains hidden or 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
@inherits Umbraco.Web.Mvc.UmbracoViewPage<IPublishedContent> | |
@using Articulate; | |
@using Articulate.Models; | |
@using Umbraco; | |
@using Umbraco.Web; | |
@using Umbraco.Core; | |
@using Umbraco.Core.Models; | |
@using System.Linq; | |
@using System; | |
@{ |
This file contains hidden or 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
@using FEE.Domain | |
@inherits UmbracoTemplatePage | |
@{ | |
Layout = "FEEMaster.cshtml"; | |
var featuredImage = CoverImageProvider.GetCoverImageOrDefault(CurrentPage.featuredImage); | |
} | |
@section bodyClass {subpage} | |
@*TODO maybe implement:https://github.com/warrenbuckley/CWS-Umbraco-Standard-Membership/blob/master/CWSUmbracoStandardMembership/Views/AuthSurface/ResetPassword.cshtml |