action | rpm based | debian based | pacman |
---|---|---|---|
install pkgname |
yum install pkgname |
apt-get install pkgname |
pacman -S pkgname |
install pkgfile |
rpm -ivh pkgfile |
dpkg -i pkgfile apt-get install -f |
pacman -U pkgfile |
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 subprocess | |
import shlex | |
def _run(command): | |
"""subprocess wrapper to execute system commands, command is expected as string""" | |
try: | |
p = subprocess.Popen(shlex.split(command), | |
stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
output, error = p.communicate() |
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
Jun 27 22:29:45 zen systemd[1]: Started udev Kernel Device Manager. | |
Jun 27 22:29:45 zen kernel: ACPI Warning: 0x0000000000000428-0x000000000000042f SystemIO conflicts with Region \GPIS 1 (20130117/utaddress-251) | |
Jun 27 22:29:45 zen kernel: ACPI Warning: 0x0000000000000428-0x000000000000042f SystemIO conflicts with Region \PMIO 2 (20130117/utaddress-251) | |
Jun 27 22:29:45 zen kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver | |
Jun 27 22:29:45 zen kernel: ACPI Warning: 0x0000000000000530-0x000000000000053f SystemIO conflicts with Region \GPIO 1 (20130117/utaddress-251) | |
Jun 27 22:29:45 zen kernel: ACPI Warning: 0x0000000000000530-0x000000000000053f SystemIO conflicts with Region \GP01 2 (20130117/utaddress-251) | |
Jun 27 22:29:45 zen kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver | |
Jun 27 22:29:45 zen kernel: ACPI Warning: 0x0000000000000500-0x000000000000052f SystemIO conflicts with Region \GPIO 1 (20 |
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
#!/usr/bin/env python3 | |
import csv | |
import os | |
import sys | |
import math | |
import random | |
class Point(object): | |
def __init__(self, latitude, longitude, bearing=None): |
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
#!/usr/bin/env python | |
import sys | |
def save_csv(lines, filename): | |
print(filename) | |
with open(filename, 'w') as f: | |
for line in lines: | |
f.write("{}\n".format(line)) |
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 | |
while read line; do | |
echo '\hline' | |
echo $line"\\\\" | sed 's/°/\\degree/' | | |
awk ' | |
BEGIN{OFS=" & "} | |
{ | |
print $1,$2,$3,$4$5$6$7$8,$9 | |
} |