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
| #!/bin/sh | |
| DEVICE=$1 | |
| SECTOR=$(sfdisk -luS|grep $DEVICE|gawk '{print $2}') | |
| echo $SECTOR | gawk '{printf("%c%c%c%c",$1,rshift($1,8),rshift($1,16),rshift($1,24))}' | dd bs=1 count=4 seek=28 of=$DEVICE |
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
| require 'gollum/frontend/app' | |
| require 'digest/sha1' | |
| class App < Precious::App | |
| User = Struct.new(:name, :email, :password_hash) | |
| before { authenticate! } | |
| helpers do | |
| def authenticate! |
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
| (function () { | |
| function cookieObserver() | |
| { | |
| this.register(); | |
| } | |
| cookieObserver.prototype = { | |
| observe: function(subject, topic, data) { | |
| this.onCookieChanged(subject.QueryInterface(Components.interfaces.nsICookie2), data); |
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"?> | |
| <project name="the project" default="compile" basedir="."> | |
| <property name="src.dir" location="src" /> | |
| <property name="bin.dir" location="bin" /> | |
| <property name="lib.dir" location="lib" /> | |
| <path id="classpath"> | |
| <fileset dir="${lib.dir}" includes="**/*.jar" /> | |
| </path> |
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
| 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 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
| \documentclass{article} | |
| \usepackage{fontspec, polyglossia} | |
| \setmainlanguage{french} | |
| \setotherlanguages{english, greek} | |
| \newfontfamily\greekfont{Times New Roman} | |
| \begin{document} |
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
| (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 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
| \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 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
| 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 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
| $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 } |
OlderNewer