Python support is needed by vim in order to run things like Conque and Slimv. Arch keeps vim slim by only providing Python support in gvim. But you may prefer vim to gvim, so here's what's needed.
# Install and run abs (sync)
sudo pacman -S abs
import random | |
import time | |
def main(): | |
numOfWords = 50 # change this number to modify how many words show up | |
word_file = "/usr/share/dict/words" # word file in Unix | |
words = open(word_file).read().splitlines() # file -> list | |
dup = ""; word = ""; # initialize strings |
# You will need to make this file executable (chmod u+x) and run it with sudo | |
apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk | |
mkdir -p /src/erlang | |
cd /src/erlang | |
wget http://www.erlang.org/download/otp_src_R15B.tar.gz | |
tar -xvzf otp_src_R15B.tar.gz | |
chmod -R 777 otp_src_R15B | |
cd otp_src_R15B | |
./configure | |
make |
# New non-root user | |
ssh root@<ip-address> | |
adduser --gecos "" stack | |
adduser stack sudo | |
exit | |
ssh stack@<ip-address> | |
# Install OpenStack Grizzly with DevStack | |
sudo apt-get install -y git | |
git clone https://github.com/openstack-dev/devstack.git -b stable/grizzly devstack/ |
Python support is needed by vim in order to run things like Conque and Slimv. Arch keeps vim slim by only providing Python support in gvim. But you may prefer vim to gvim, so here's what's needed.
# Install and run abs (sync)
sudo pacman -S abs
#!/bin/sh | |
# | |
# Automates signing and aligning Android APKs as per | |
# http://developer.android.com/tools/publishing/app-signing.html#signing-manually | |
# | |
# USAGE: signalign platforms/android/build/outputs/apk/android-release-unsigned.apk | |
# | |
set -e | |
# configure the next two properties for your own certificate |
""" | |
Example of setting up CORS with Bottle.py. | |
""" | |
from bottle import Bottle, request, response, run | |
app = Bottle() | |
@app.hook('after_request') | |
def enable_cors(): | |
""" |
<!-- | |
This disables app transport security and allows non-HTTPS requests. | |
Note: it is not recommended to use non-HTTPS requests for sensitive data. A better | |
approach is to fix the non-secure resources. However, this patch will work in a pinch. | |
To apply the fix in your Ionic/Cordova app, edit the file located here: | |
platforms/ios/MyApp/MyApp-Info.plist | |
And add this XML right before the end of the file inside of the last </dict> entry: |
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH |
[ | |
{ | |
"timestamp": 0, | |
"input": "W", | |
"type": "search_local", | |
"latency": 0 | |
}, | |
{ | |
"local_results": [ | |
"ddg_search", |