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 | |
# This file must be executable to work! chmod 755! | |
key="$1" | |
opts="-fstype=cifs,file_mode=0640,dir_mode=0750" | |
macaddr=`grep $key /etc/ethers | egrep -v '^#' | cut -d' ' -f1` | |
max_retries=60 | |
ping_deadline=1 |
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
(function () { | |
function cookieObserver() | |
{ | |
this.register(); | |
} | |
cookieObserver.prototype = { | |
observe: function(subject, topic, data) { | |
this.onCookieChanged(subject.QueryInterface(Components.interfaces.nsICookie2), data); |
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 java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
class DummyRunnable implements Runnable { | |
public static void main(String[] args) { | |
init(); | |
start(); |
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
############################################################################### | |
# The MIT License | |
# | |
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
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
\documentclass{article} | |
\usepackage{fontspec, polyglossia} | |
\setmainlanguage{french} | |
\setotherlanguages{english, greek} | |
\newfontfamily\greekfont{Times New Roman} | |
\begin{document} |
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
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(TeX-PDF-mode t) | |
'(TeX-engine (quote xetex)) | |
'(calendar-holidays nil) | |
'(column-number-mode t) | |
'(epg-gpg-program "C:/Program Files (x86)/GNU/GnuPG/gpg2.exe") |
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
\documentclass[10pt,a4paper]{article} | |
\usepackage{fontspec, polyglossia} | |
\usepackage{amsmath, amssymb, amsthm} | |
\usepackage{multicol} | |
\usepackage[margin=.3in]{geometry} | |
\usepackage[normalem]{ulem} | |
\setmainlanguage{french} | |
\setotherlanguages{english, greek} |
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
function emacs | |
{ | |
&"C:\Program Files (x86)\emacs-24.2\bin\emacs.exe" "-nw" $args | |
} | |
function Get-BitsFile | |
{ | |
Get-BitsTransfer | % { | |
$_.FileList | % { | |
New-Object PSObject -Property @{ |
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
$regex = 'some regex goes here' | |
sls .\*.* -patt $regex -All | % { $_.Matches } | ? { $_.Success } | % { $_.Groups[2].Value } | |
sls .\*.* -patt $regex -All | % { $_.Matches } | ? { $_.Success } | % { Invoke-WebRequest $_.Groups[2].Value } | % { $_.StatusCode } |
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
$cue = 'c:\Users\gp\example.cue' | |
$patt = '(?smi)TITLE\s"([^"]*)"(?:\n|\s)*PERFORMER\s*"([^"]*)"' | |
cat $cue -Raw | | |
sls -patt $patt -AllMatches | | |
% { $_.Matches } | | |
% { New-Object -Property @{ Title = $_.Groups[1].Value; Artist = $_.Groups[2].Value } } | | |
% { "\track {0} - {1}" -f $_.Artist, $_.Title } |
OlderNewer