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 ruby | |
folder = "Products_HTML/" | |
new_folder = "fixed_HTML/" | |
fileForChange = [] | |
def changeFile(file_list, f, n) | |
Dir.mkdir(n) | |
file_list.each do |file_name| | |
text = File.read(f + file_name) | |
File.open(n + file_name, "w") {|file| file.puts text.gsub(/<a href=/, "<a style='color:blue' href=")} |
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
module Jekyll | |
class Youtube < Liquid::Tag | |
@width = 640 | |
@height = 390 | |
def initialize(name, id, tokens) | |
super | |
@id = id | |
end |
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
#coding: utf-8 | |
require 'wombat' | |
class BahtsoldCrawler | |
include Wombat::Crawler | |
base_url "http://www.bahtsold.com" | |
path "/en/results?category=7&ad_type=NULL&ar1=1006&c1=377&c2=NULL&6=NULL&price=2&co=Thailand-1" | |
document_format :html |
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
# List of environments and their heroku git remotes | |
ENVIRONMENTS = { | |
:staging => 'myapp-staging', | |
:production => 'myapp-production' | |
} | |
namespace :deploy do | |
ENVIRONMENTS.keys.each do |env| | |
desc "Deploy to #{env}" | |
task env do |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="AntConfiguration"> | |
<defaultAnt bundledAnt="true" /> | |
</component> | |
</project> | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>My feedly feeds</title> | |
</head> | |
<body> | |
<outline text="android"> | |
<outline text="Android-er" htmlUrl="http://android-er.blogspot.com/" type="rss" xmlUrl="http://feeds.feedburner.com/Android-er?format=xml"/> | |
</outline> |
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
package ee.era.geek.sms_spammer.service; | |
import android.app.Service; | |
import android.content.Intent; | |
import android.os.*; | |
import android.telephony.SmsManager; | |
import android.text.format.DateFormat; | |
import android.util.Log; | |
import ee.era.geek.sms_spammer.ConfigUtil; |
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
# | |
# Defines environment variables. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# Ensure that a non-login, non-interactive shell has a defined environment. | |
if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprofile" | |
fi§ |
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
Chain INPUT (policy DROP) | |
target prot opt source destination | |
ufw-before-logging-input all -- anywhere anywhere | |
ufw-before-input all -- anywhere anywhere | |
ufw-after-input all -- anywhere anywhere | |
ufw-after-logging-input all -- anywhere anywhere | |
ufw-reject-input all -- anywhere anywhere | |
ufw-track-input all -- anywhere anywhere | |
Chain FORWARD (policy DROP) |
OlderNewer