DELAYLOGIN=no
FSCKFIX=yes
Add the nofail option to as many mount points as possible. This will allow the boot process to continue even if a file system is corrupted.
| # BEGIN: Put this in ~/.bashrc | |
| function err_handle { | |
| if [ "$?" != 0 ] | |
| then | |
| if echo "$previous_command" | grep -q '\<hlep\>' | |
| then | |
| NEW_COMMAND="$(echo "$previous_command" | sed 's/\<hlep\>/help/g')" | |
| echo -ne "Command failed. Retry with '$NEW_COMMAND' (y/n)? " | |
| read p |
| #!/usr/bin/env python | |
| from atomicfile import AtomicFile | |
| import feedparser | |
| import os | |
| import re | |
| import urllib2 | |
| import urlparse | |
| feed = feedparser.parse("http://www.tatw.co.uk/podcast.xml") |
| #!/bin/bash | |
| function @() | |
| { | |
| if [ $? = 127 ] | |
| then | |
| PROGRAM=$(history 2 | head -n 1 | tr -s \ \ | cut -f3 -d\ | tr -d '[:space:]') | |
| PATTERN="/s?bin/$PROGRAM\$" | |
| SHORT_PATTERN="$PROGRAM" | |
| elif [ $1 != "" ] |
| uint64_t Hash(const StringRef& key) { | |
| static const uint64_t mul = (0xc6a4a793UL << 32UL) + 0x5bd1e995UL; | |
| auto shift_mix = [](uint64_t v) -> uint64_t { return v ^ (v >> 47); }; | |
| auto len = key.size(); | |
| auto buf = key.data(); | |
| const auto len_aligned = len & ~7; | |
| const auto end = buf + len_aligned; |
| static __thread char* last_error; | |
| const char* last_error(void) { | |
| return last_error ? last_error : strerror(errno); | |
| } | |
| void clear_error(void) { | |
| free(last_error); | |
| last_error = NULL; | |
| } |
| #!/usr/bin/env python | |
| """Sample Google Cloud Storage API client. | |
| Based on <https://cloud.google.com/storage/docs/json_api/v1/json-api-python-samples>, | |
| but removed parts that are not relevant to the Cloud Storage API. | |
| Assumes the use of a service account, whose secrets are stored in | |
| $HOME/google-api-secrets.json""" |
| #!/bin/bash | |
| echo "Press Ctrl-C at any time to abort Makefile generation" | |
| echo | |
| echo "The project name should start with a letter and contain nothing but " | |
| echo "letters (A-z), digits (0-9) and dashes ('-'). Do not include the " | |
| echo "version number." | |
| echo | |
| echo "Example: hello-world" |
| #include <cstdio> | |
| #include <list> | |
| #include <vector> | |
| #include "zip.h" | |
| int main() { | |
| std::vector<int> one{{1, 11}}; | |
| auto two = [] { return std::vector<short>{{2, 22}}; }; | |
| const std::list<float> three{{3, 33}}; |
| #!/usr/bin/env python | |
| # Generates a curve for drawing a smooth histogram for a set of real values | |
| # provided on the standard input. | |
| # Copyright (C) 2016 Morten Hustveit | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or |