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
#!/usr/bin/env python3 | |
import argparse | |
import subprocess | |
def main(): | |
parser = argparse.ArgumentParser(description='compress self tape') | |
parser.add_argument('input', metavar='INPUT', |
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
/** | |
* @OnlyCurrentDoc Limits the script to only accessing the current spreadsheet. | |
*/ | |
var projectName = 'List Files and Find Dupes'; | |
/** | |
* Adds a custom menu with items to show the sidebar and dialog. | |
* | |
* @param {Object} e The event parameter for a simple onOpen trigger. |
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
#include <time.h> | |
#include <stdio.h> | |
int main() | |
{ | |
struct timespec t; | |
clock_gettime(CLOCK_REALTIME, &t); | |
struct tm* loc = localtime(&t.tv_sec); | |
char tstr[20] = ""; | |
strftime(tstr, 20, "%F %T", loc); |
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
source /opt/rh/devtoolset-2/enable | |
export X_SCLS="`scl enable devtoolset-2 'echo $X_SCLS'`" |
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 | |
# This script is written for Scientific Linux 6.5 x64. | |
# Should also work for CentOS 6.5 (see below). | |
# It should be run as root (not sure whether sudo is fine also). | |
# boost version to install | |
boost_ver="1.55.0" | |
# This is only required with "Minimal" installation variant (for wget & scp). |
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
caption always "%H %= %-w%L>%{= BW}%n*%t%{-}%52<%+w %L=" |
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 | |
vimrc="$HOME/.vimrc" | |
read -d '' vim_conf <<"EOF" | |
" start scrolling when the cursor is 2 lines from the screen edge | |
set so=2 | |
" line numbers | |
set nu | |
" show incomplete command |