- Install template - Debian 8.7 stable (Jessie) (6.4)
- Select [ x ] Custom installation
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
/* | |
* net/balusc/webapp/FileServlet.java | |
* | |
* Copyright (C) 2009 BalusC | |
* | |
* This program is free software: you can redistribute it and/or modify it under the terms of the | |
* GNU Lesser General Public License as published by the Free Software Foundation, either version 3 | |
* of the License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without |
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
""" | |
Registers any number of application permissions without model | |
Examples: | |
# .../project/app/models.py | |
from django.apps import apps | |
register_application_permissions( | |
( |
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 | |
export GOLANG_VERSION=1.5.3 | |
export GOLANG_DOWNLOAD_URL=https://storage.googleapis.com/golang/go$GOLANG_VERSION.linux-amd64.tar.gz | |
export GOLANG_DOWNLOAD_SHA256=43afe0c5017e502630b1aea4d44b8a7f059bf60d7f29dfd58db454d4e4e0ae53 | |
apt-get update -qq | |
apt-get install -y --no-install-recommends \ | |
g++ \ |
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
# Chrome Extension Privacy Policy | |
Our extensions are fully self-contained, so we have no ability to collect any information when you use them. |
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/env python3 | |
import os | |
def short_cwd(cwd, max_len=55): | |
home = os.environ.get('HOME') | |
cwd = cwd.replace(home, '~') | |
if len(cwd) < max_len: | |
return cwd |
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
Manifest-version: 1.0 | |
Created-By: 1.0 (https://github.com/plar) | |
Main-Class: hello.Main |
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 python3 | |
# | |
# `tf_diff` is a CLI tool for humanizing the output of `terraform plan` using python `difflib` module | |
# Requirements: | |
# 1. Python 3.x | |
# 2. If you want color output then you need to install a python module `colorama` (pip install colorama) | |
# | |
# Installation: | |
# Copy the file into your `bin` directory and make it executable (chmod u+x ~/bin/tf_diff) | |
# |
I hereby claim:
- I am plar on github.
- I am plarkin (https://keybase.io/plarkin) on keybase.
- I have a public key whose fingerprint is ACC7 96BD DEFF 1703 DA7B 06CA A074 420D DADB 4427
To claim this, I am signing this object:
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 -i | |
export DEV="/dev/sda" | |
export DEV="/dev/nvme0n1" | |
export DM="${DEV##*/}" | |
export DEVP="${DEV}$( if [[ "$DEV" =~ "nvme" ]]; then echo "p"; fi )" | |
export DM="${DM}$( if [[ "$DM" =~ "nvme" ]]; then echo "p"; fi )" | |
# export SDD_PASS=secret123 | |
sgdisk --print $DEV | |
sgdisk --zap-all $DEV |