Skip to content

Instantly share code, notes, and snippets.

View meskarune's full-sized avatar
Halfway back to productivity

Dolores Portalatin meskarune

Halfway back to productivity
View GitHub Profile
@meskarune
meskarune / pxeboot.txt
Created October 11, 2015 18:18
how to do pxe boot with the arch iso
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:
@meskarune
meskarune / html5 template.html
Created November 12, 2012 16:28
Simple HTML template
<!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>
@meskarune
meskarune / html includes
Created September 12, 2012 00:27
Include one html file in another
#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.
@meskarune
meskarune / nftables.conf
Created May 25, 2016 02:16
nftables config for ipv4
#!/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;
@meskarune
meskarune / weechat relay
Created September 14, 2015 18:05
weechat relay with ssl
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
@meskarune
meskarune / consul.sh
Created June 3, 2016 17:16
freebsd consul rc script
#!/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:
@meskarune
meskarune / gist:2721790
Created May 17, 2012 21:52
Global Dark CSS Theme
/*
"myfavolours" - global custom colour scheme
http://userstyles.org/styles/2187
BEGIN
*/
/*
summary:
- basic background = dark grey
- basic text = light grey
@meskarune
meskarune / weather.lua
Last active May 6, 2022 05:07
lua weather script
#!/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"
@meskarune
meskarune / tmux.conf
Created March 9, 2019 23:08
tmux theme for status/panel on bottom
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

Jelly Beans Terminal Color Theme

image

Terminal Colors

: