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
tell application "Transmit" | |
set myFave to item 1 of (favorites whose name is "NameOfFavorite") | |
set myRules to (skip rules whose name is "codekit") | |
tell current tab of (make new document at end) | |
connect to myFave | |
change location of local browser to path "~/Codekit/Projekt" | |
change location of remote browser to path "domains/domain/assets" | |
synchronize local browser to remote browser using skip rules myRules | |
close remote browser | |
close |
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
<p><em>Dette innlegget ble originalt publisert på <div xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/" about="http://knutmelvaer.no/colophon/"><span property="dct:title">knutmelvaer.no</span> (<a rel="cc:attributionURL" property="cc:attributionName" href="http://knutmelvaer.no">Knut Melvær</a>) / <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a></div></em></p> | |
<p>Heisann.</p> | |
<p><em>Jeg heter Knut og jeg er religionsviter</em>. Det vil si, jeg forsøker hver dag å være en religionsviter. Innimellom prøver jeg også å være <a href="http://github.com/kmelve">webutvikler</a>, <a href="http://twitter.com/kmelve">@kmelve</a>, ektemann, <a href="http://instagram.com/kmelve">hobbytømrer</a>, av og til er jeg også «slave av systemet», «politisk vaklende» eller «lat». Formelt sett er jeg utdannet religionsviter (med mastergrad i religionsvitenskap fra Universitetet i Bergen), og kan gjennom stillingsbeskrivelsen, kurs og Brønnøysundsregisteret |
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
# -*- coding: utf-8 -*- | |
import os | |
# make list with the files | |
def loop_files(directory): | |
files = [] | |
for fn in os.listdir(directory): # loop through directory | |
if(fn.endswith('txt')): # only pick text files | |
files.append(fn) # append filenames to list |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Nyeste artikler fra HF</title> | |
</head> | |
<body> | |
<pre> |
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
Drupal.behaviors.ndla_utils_gtm = function() { | |
var gtm_id = Drupal.settings.gtm_id; | |
jQuery('body').prepend('<noscript><iframe src="//www.googletagmanager.com/ns.html?id=' + gtm_id + '" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>' + '<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],' + 'j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=\'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);' + '})(window,document,\'script\',\'dataLayer\',\'' + gtm_id + '\');<\/script>'); | |
};; |
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 | |
for i in `cat url.txt` | |
# Your mileage may vary. | |
do curl -v $i -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Host: ret.nu' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.48 Safari/537.36' -L --compressed -O | |
done |
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
jQuery('.previousResultPage a:first')[0].click() |
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
document.getElementById("selectAll").click(); |
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
jQuery('.nextResultPage a:first')[0].click() |
OlderNewer