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/sh | |
#Written by Remco Haszing: https://plus.google.com/u/0/101152546828331333610/ | |
#Original post: https://plus.google.com/101152546828331333610/posts/8iaeaqd7hhz | |
for iso in /opt/iso/*.iso; do | |
if [ "`isoinfo -f -i $iso | grep '/CASPER/VMLINUZ.EFI;1'`" == "" ]; then | |
vmlinuz=vmlinuz | |
else | |
vmlinuz=vmlinuz.efi | |
fi |
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
.PHONY: all clean submit check | |
TARGETS=ex1 ex2 ex3 | |
LABNO=1 | |
MYID=$(shell id -un) | |
LOGDIR=/home/montek/comp411/.log | |
CC=gcc | |
CFLAGS= |
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
const fs = require('fs'); | |
const path = require('path'); | |
const basename = path.basename(module.filename); | |
const controllers = {}; | |
fs | |
.readdirSync(__dirname) | |
.filter((file) => { | |
return (file.indexOf('.') !== 0) && (file !== basename) && (file.match(/\.js$/)); | |
}) |
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 sys | |
import os | |
import argparse | |
placeholder = 'Paste mojibake here\nここで文字化けをペースト下さい' | |
default_source_enc = 'sjis' | |
# Open a file in binary mode and overwrite contents | |
# with the text encoded in the given encoding | |
def write_file(filename, encoding, text): |