:
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
On ddwrt router under services - dnsmasq settings: | |
hostname and ip address should match Linux machine with tftp server running | |
dhcp-boot=/arch/boot/syslinux/lpxelinux.0,hostname,ip-address | |
dhcp-option-force=209,boot/syslinux/archiso.cfg | |
dhcp-option-force=210,/arch/ | |
On running Arch Linux Machine: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<META charset="UTF-8" /> | |
<title> | |
{put your title here} | |
</title> | |
<link rel="stylesheet" type="text/css" media="all" href="default.css" /> | |
</head> | |
<body> |
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
#PHP include one html file in another | |
1. Save the HTML for the common elements of your site to separate files. For example, your navigation section might be saved as navigation.html or navigation.php. | |
2. Use the following PHP code to include that HTML in each page. | |
<?php | |
require($DOCUMENT_ROOT . "path to file/include-file.html"); | |
?> | |
3. Use that same code on every page that you want to include the file. |
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/nft -f | |
# ipv4/ipv6 Simple & Safe Firewall | |
# you can find examples in /usr/share/nftables/ | |
flush ruleset | |
table firewall { | |
chain incoming { | |
type filter hook input priority 0; |
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
mkdir ~/.weechat/ssl-cert | |
cd ~/.weechat/ssl-cert | |
openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -out relay.pem | |
In weechat: | |
/set relay.network.ssl_cert_key "/home/username/.weechat/ssl-cert/relay.pem" | |
/relay add ssl.weechat 9001 |
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 | |
# $FreeBSD: head/sysutils/consul/files/consul.in 386655 2015-05-18 02:05:03Z swills $ | |
# | |
# PROVIDE: consul | |
# REQUIRE: LOGIN | |
# KEYWORD: shutdown | |
# | |
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf | |
# to enable this service: |
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
/* | |
"myfavolours" - global custom colour scheme | |
http://userstyles.org/styles/2187 | |
BEGIN | |
*/ | |
/* | |
summary: | |
- basic background = dark grey | |
- basic text = light grey |
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/lua | |
-- load the http socket module | |
http = require("socket.http") | |
-- load the json module | |
json = require("json") | |
api_url = "http://api.openweathermap.org/data/2.5/weather?" | |
-- http://openweathermap.org/help/city_list.txt , http://openweathermap.org/find | |
cityid = "5128581" |
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
set -g pane-active-border-fg "colour13" | |
set -g pane-border-fg "colour239" | |
set -g message-fg "colour0" | |
set -g message-bg "colour13" | |
set -g status-justify left | |
set -g status-bg "colour236" | |
set -g status-fg white |