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
// | |
// Restart a systemd unit through gdbus | |
// | |
// Compile: | |
// gcc $(pkg-config --libs --cflags gio-2.0 glib-2.0) -o bounce bounce.c | |
// | |
// Equivalent to: | |
// # gdbus call --system --dest org.freedesktop.systemd1 --object-path /org/freedesktop/systemd1/unit/whatever_2eservice --method org.freedesktop.systemd1.Unit.ReloadOrRestart replace | |
// |
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
Mirror of https://www.mail-archive.com/[email protected]/msg256534.html: | |
############################# | |
# 1. Get sources from the GIT | |
############################# | |
mkdir /work/community && cd /work/community | |
git clone [email protected]:MarvellEmbeddedProcessors/atf-marvell.git -b | |
atf-v1.3-armada-17.06 |
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 | |
''' | |
test.c - clang -o test.so -fPIC -shared test.c | |
---------------------------------------------- | |
extern int baz(); | |
int foo() { | |
return 42; | |
} |
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/python2 | |
# | |
# Quick hack for migrating passwords from netbsd5 to rhel7. | |
# Christopher Hewitt 2014 | |
# | |
with open('master.passwd', 'r') as f: | |
print('#!/bin/sh') | |
for line in f: | |
locked = False |