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 load_efi_video { | |
set gfxmode=auto | |
insmod efi_gop | |
insmod efi_uga | |
insmod gfxterm | |
terminal_output gfxterm | |
} | |
function load_video { | |
set gfxmode=auto |
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 | |
# Plant rope vim's plugin | |
# This is a script to install or update 'ropevim' | |
# Copyright Alexander Artemenko, 2008 | |
# Contact me at svetlyak.40wt at gmail com | |
release_ubuntu=`lsb_release -r | awk {'print $2'}` | |
#url_rope='http://bitbucket.org/agr/rope' | |
#url_ropevim='http://bitbucket.org/agr/ropevim' |
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/python | |
#rt[100].get('lat') | |
#rt[100].get('lon') | |
#rt[100][0].text | |
# | |
# | |
#for child_of_root in rt: | |
# if child_of_root.tag == '{http://www.topografix.com/GPX/1/0}wpt': | |
# for cc in child_of_root: |
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 | |
# | |
# Author: Taihsiang Ho (tai271828) | |
# License: BSD 3-clause | |
# | |
# This script uses modulegraph to prepare a Graphviz dot file. | |
# | |
# The first positional argument is the target python script to be scanned. The | |
# result of the optional arguments could refer to the --help. | |
# |
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 | |
# | |
# Copyright 2017, Taihsiang Ho <[email protected]> | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. | |
# |
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
serial.log |
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/python3 | |
import csv | |
import pprint | |
import sys | |
def fill_null_value(input, filler="\\N"): | |
""" | |
Replace empty elements of input by a filler. |
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 python | |
# | |
# Batch start vm by virsh | |
# | |
# usage: | |
# ./virsh-batch-start-vm.py <domain1> [<domain2> ... <domainN>] | |
# | |
# | |
import sys |
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
/* | |
* RTC class driver for "CMOS RTC": PCs, ACPI, etc | |
* | |
* Copyright (C) 1996 Paul Gortmaker (drivers/char/rtc.c) | |
* Copyright (C) 2006 David Brownell (convert to new framework) | |
* | |
* 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 | |
* 2 of the License, or (at your option) any later version. |
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 | |
# | |
# A simple script tool to change the deb of kernel images. | |
# | |
# | |
function usage() { | |
local usage="Usage: `basename $0` [-t target_kernel_version] [-i increment] [-d decrement] [--dry --dryrun]" | |
echo $usage | |
exit | |
} |
OlderNewer