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 bash | |
# The file we will be editing | |
FILE=/etc/bind/domain.tld | |
DOMAIN=domain.tld | |
# A path to the BIND init script | |
BIND=/etc/init.d/bind9 | |
ETCKEEP=/usr/sbin/etckeeper | |
SUDO=/usr/bin/sudo |
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
(function(window, document, JSON){ | |
"use strict"; | |
var SEP = '|', ua, opera, ie; | |
/* | |
* Collect Browser & Device Data | |
*/ | |
var Collector = { | |
/* | |
* MD5 Checksum calculation | |
*/ |
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 | |
BASE03="\[\033[38;5;234m\]" | |
BASE02="\[\033[38;5;235m\]" | |
BASE01="\[\033[38;5;240m\]" | |
BASE00="\[\033[38;5;241m\]" | |
BASE0="\[\033[38;5;244m\]" | |
BASE1="\[\033[38;5;245m\]" | |
BASE2="\[\033[38;5;254m\]" | |
BASE3="\[\033[38;5;230m\]" |
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
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-add-repository -y ppa:philip.scott/elementary-tweaks | |
sudo apt-add-repository -y ppa:git-core/ppa | |
sudo apt-add-repository -y ppa:ondrej/php | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo add-apt-repository -y ppa:mc3man/mpv-tests | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' |
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
# Two user-friendly classes for integrating a 2D camera system for pygame. | |
# | |
# The first class is Camera2, which is essentially a 2D camera with rect-like behaviour. To setup something like player tracking, one can simply do: | |
### Cam2 = Camera2(area=(0, 0, WIDTH, HEIGHT), view_distance=1000) | |
### Cam2.center = player.rect.center | |
# for even more precise control, one can do: | |
### Cam2.anchor = (Cam2.w*0.3, Cam2.h*0.7) # some coordinate on the screen |