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
# become root | |
sudo -i | |
# flush all existing rules | |
iptables -F | |
# Accept traffic from existing connections | |
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
# accept SSH connections |
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
def request(linode_method, query_args = {}) | |
begin | |
args = { | |
api_key: @api_key, | |
api_action: linode_method, | |
}.merge(query_args).map{|k,v| "#{k}=#{v}"}.compact.join('&') | |
uri = URI("https://api.linode.com/?#{args}") | |
http = Net::HTTP.new(uri.host, uri.port) |
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
FROM php:7.0-fpm | |
# Get repository and install wget and vim | |
RUN apt-get update && apt-get install --no-install-recommends -y \ | |
wget \ | |
emacs \ | |
git \ | |
unzip | |
# Add PostgreSQL repository |
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/bash | |
set -eu -o pipefail # fail on error , debug all lines | |
# run as root | |
[ "$USER" = "root" ] || exec sudo "$0" "$@" | |
echo "=== $BASH_SOURCE on $(hostname -f) at $(date)" >&2 | |
err_msg="\n\nthis script is only for Ubuntu 17.04 zesty, BUT you have: \n"$(lsb_release -a) | |
test $(lsb_release -cs) != "zesty" && echo -e "$err_msg" |
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/bash | |
cd | |
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2 && \ | |
tar xvjf sklgucver61.tar.bz2 && cd skl_guc_ver6_1/ && sudo ./install.sh | |
cd | |
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/kbldmcver101.tar.bz2 && \ |
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/bash | |
# run with sudo | |
#------------------------------------------------------------------------------- | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update -q | |
apt-get upgrade -q -y |
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
#if __has_include(".extend.Xresources") | |
#include ".extend.Xresources" | |
#endif | |
! ^ The above lines are no comments! | |
! Leave them as they are if a file ~/.extend.Xresources is being used on your system. | |
! config can be added there or also here below. | |
! For comments use "!" | |
Xft.dpi: 96 |
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
! COLOR PALETTE HERE ! | |
*.foreground: #EAD49B | |
*.background: #1E272B | |
*.cursorColor: #EAD49B | |
*.cursor: #EAD49B | |
*.color0: #1E272B | |
*.color1: #685742 | |
*.color2: #9D6A47 | |
*.color3: #B36D43 |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
[global] | |
font = Ubuntu Mono, Bold 12 | |
# Allow a small subset of html markup: | |
# <b>bold</b> | |
# <i>italic</i> | |
# <s>strikethrough</s> | |
# <u>underline</u> | |
# | |
# For a complete reference see |
NewerOlder