-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
84 lines (64 loc) · 1.74 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# makefile for all somtimes needet things
# Copyright (C) 2020 Johannes Schmatz
#
# 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
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# network
j: wlan update
wlan:
sudo /usr/bin/wifi-menu
#dhcpcd wlp2s2
wlan_int:
sudo /usr/bin/wifi-menu wlp2s2
wlan_ext:
sudo /usr/bin/wifi-menu wlp0s29f7u1
lan:
sudo /usr/bin/dhcpcd enp2s0
#lan_pixy:
# sudo /usr/bin/dhcpcd enp0s25
resolv:
sudo /usr/bin/vim /etc/resolv.conf
# all services
sshd:
sudo /usr/bin/systemctl start sshd.service
sshd_stop:
sudo /usr/bin/systemctl stop sshd.service
httpd:
sudo systemctl start httpd
httpd_stop:
sudo systemctl stop httpd
serial_getty:
sudo systemctl start getty@ttyS0
serial_getty_stop:
sudo systemctl stop getty@ttyS0
# useful things
update:
~/bin/update
off:
sudo shutdown
hib:
sudo systemctl hibernate
poweroff:
sudo systemctl poweroff
# https://xkcd.com/149/
me:
@echo xkcd 149 > /dev/null
a:
@echo xkcd 149 > /dev/null
sandwich:
@if [ "$(USER)" != "root" ]; then echo What? make it yourself.; else echo okay.; fi
# https://xkcd.com/838/
dos:
@echo "Please run: PS1='C:\$${PWD//\//\\\\\}> '"
# syntax
# vim: ts=8 sts=8 sw=8 noet si syntax=make