Remove dead configs, update vim, add installer

This commit is contained in:
2021-06-17 15:35:23 -04:00
parent ec2f391732
commit b4f0e60887
51 changed files with 24 additions and 811 deletions

View File

@@ -3,8 +3,5 @@ Furry Octo Sansa
Some configuration files:
* blink(1) files suitable for the Blink1Control app in Windows
* Jenkins server
* Default varnish config
* Default vim config
* Default postfix config (does this work?)
* A handy example Uptime Robot heartbeat script

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

View File

@@ -1,61 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C43F0F6F-9DF2-4698-9493-354CE1ED71BC}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OutlookNewMail</RootNamespace>
<AssemblyName>OutlookNewMail</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -1,22 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OutlookNewMail", "OutlookNewMail.csproj", "{C43F0F6F-9DF2-4698-9493-354CE1ED71BC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C43F0F6F-9DF2-4698-9493-354CE1ED71BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C43F0F6F-9DF2-4698-9493-354CE1ED71BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C43F0F6F-9DF2-4698-9493-354CE1ED71BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C43F0F6F-9DF2-4698-9493-354CE1ED71BC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@@ -1,36 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Office.Interop.Outlook;
using System.Runtime.InteropServices;
namespace OutlookNewMail
{
class Program
{
static void Main(string[] args)
{
Application outlookApp;
System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName("OUTLOOK");
if (processes.Length > 0)
{
outlookApp = Marshal.GetActiveObject("Outlook.Application") as Application;
}
else
{
outlookApp = new Application();
}
var inbox = outlookApp.GetNamespace("mapi").GetDefaultFolder(OlDefaultFolders.olFolderInbox);
if (inbox.UnReadItemCount == 0)
{
Console.Out.Write("\"#000000\"");
return;
}
Console.Out.Write("\"pattern: \"NewMail\"\"");
}
}
}

View File

@@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OutlookNewMail")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("OutlookNewMail")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("7ff13c81-e91d-4227-8660-38e91c6ccbbe")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

View File

@@ -1,6 +0,0 @@
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\bin\Debug\OutlookNewMail.exe.config
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\bin\Debug\OutlookNewMail.exe
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\bin\Debug\OutlookNewMail.pdb
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\obj\Debug\OutlookNewMail.csprojResolveAssemblyReference.cache
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\obj\Debug\OutlookNewMail.exe
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\obj\Debug\OutlookNewMail.pdb

View File

@@ -1,5 +0,0 @@
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\bin\Release\OutlookNewMail.exe.config
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\bin\Release\OutlookNewMail.exe
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\bin\Release\OutlookNewMail.pdb
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\obj\Release\OutlookNewMail.exe
D:\GitHub\furry-octo-sansa\blink1\OutlookNewMail\OutlookNewMail\obj\Release\OutlookNewMail.pdb

View File

@@ -1,92 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<userSettings>
<Blink1Control.Properties.Settings>
<setting name="inputs" serializeAs="String">
<value>{
"New Comic": {
"iname": "New Comic",
"pname": "New Comic",
"type": "ifttt",
"arg1": "GR: New Comic",
"lastVal": "[couldn't connect]",
"possibleVals": [],
"lastTime": "1386700363"
},
"New Dev Article": {
"iname": "New Dev Article",
"pname": "New Dev Article",
"type": "ifttt",
"arg1": "GR:New Dev Item",
"lastVal": "[couldn't connect]",
"possibleVals": [],
"lastTime": "1386700363"
},
"NewMail": {
"iname": "NewMail",
"pname": "NewMail",
"type": "script",
"arg1": "C:\\Users\\maweir\\Documents\\blink1-scripts\\OutlookNewMail.exe",
"lastVal": "NewMail",
"possibleVals": [],
"lastTime": "1386700363"
},
"FPG New Mail": {
"iname": "FPG New Mail",
"pname": "FPG New Mail",
"type": "ifttt",
"arg1": "FPGNewMail",
"lastVal": "[couldn't connect]",
"possibleVals": [],
"lastTime": "1386700363"
}
}</value>
</setting>
<setting name="patterns" serializeAs="String">
<value>{
"New Comic": {
"name": "New Comic",
"repeats": 1,
"playcount": 0,
"playpos": 0,
"playing": false,
"pattern": "1,#D3FFBE,30.00"
},
"New Dev Article": {
"name": "New Dev Article",
"repeats": 1,
"playcount": 0,
"playpos": 0,
"playing": false,
"pattern": "1,#3CFF1D,30.00"
},
"NewMail": {
"name": "NewMail",
"repeats": 3,
"playcount": 0,
"playpos": 0,
"playing": false,
"pattern": "3,#FF7B8B,1.00,#000000,0.50,#EB60FF,1.00,#000000,0.50"
},
"FPG New Mail": {
"name": "FPG New Mail",
"repeats": 10,
"playcount": 0,
"playpos": 0,
"playing": false,
"pattern": "10,#20DBFF,2.00,#EEEEEE,0.50,#1FE0FF,2.00,#EEEEEE,0.50"
}
}</value>
</setting>
<setting name="logToScreen" serializeAs="String">
<value>True</value>
</setting>
<setting name="hostId" serializeAs="String">
<value>1A0012FA</value>
</setting>
<setting name="startMinimized" serializeAs="String">
<value>False</value>
</setting>
</Blink1Control.Properties.Settings>
</userSettings>
</configuration>

7
install-prefs.sh Normal file
View File

@@ -0,0 +1,7 @@
#! /bin/sh
# link all files to the home directory, asking about overwrites
cd `dirname $0`
SCRIPT_DIR=`pwd`
cd $HOME
ln --symbolic --interactive $SCRIPT_DIR/vim/.vimrc

View File

@@ -1,42 +0,0 @@
<VirtualHost *:8090>
ServerAdmin webmaster@localhost
ServerName irrsinn.net
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>

View File

@@ -1 +0,0 @@
include "/etc/varnish/projects.irrsinn.net.vcl";

58
jenkins/fabfile.py vendored
View File

@@ -1,58 +0,0 @@
from __future__ import with_statement
from fabric.api import settings, abort, run, cd, env, put
env.hosts = ['projects.irrsinn.net']
env.user = 'root'
def apache_config():
with cd('/etc/apache2/sites-available'):
put('projects.irrsinn.net-vhost', 'projects.irrsinn.net')
put('default-vhost', 'default')
run('apache2ctl -k restart')
def base_installs():
run('apt-get update')
run('apt-get install -y tomcat7 default-jdk git gitweb vim nano php5 libapache2-mod-php5 php5-mcrypt varnish')
def deploy_clean_jenkins():
run('wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war')
run('cp jenkins.war /var/lib/tomcat7/webapps')
run('chmod -R 0777 /usr/share/tomcat7')
def gitlist_install():
run('mkdir -r /var/www/projects.irrsinn.net/git')
run('mkdir /root/repositories')
with cd('/root/repositories'):
#Get repos somehow
run('chmod -R 0755 .')
with cd('/var/www/projects.irrsinn.net/git'):
run('chmod -R 0755 .')
run('mkdir cache')
run('chmod 0777 cache')
put('gitlist-config.ini', 'config.ini', mode=0755)
run('apache2ctl -k restart')
def projects_install():
gitlist_install()
apache_config()
varnish_config()
def setup_server():
base_installs()
tomcat_install()
projects_install()
def tomcat_install():
run('/etc/init.d/tomcat7 start')
def varnish_config():
with cd('/etc/varnish'):
put('projects.irrsinn.net.vcl', 'projects.irrsinn.net.vcl', mode=0755)
put('default.vcl', 'default.vcl', mode=0755)
run('pkill varnishd', warn_only=True)
run('apache2ctl -k restart')
run('service varnish restart')
run('varnishd -f /etc/varnish/default.vcl -s malloc,256M -a :80')

View File

@@ -1,6 +0,0 @@
[git]
client = '/usr/bin/git' ; Your git executable path
repositories = '/root/repositories/' ; Path to your repositories (with ending slash)
[app]
baseurl = 'http://projects.irrsinn.net/git' ; Base URL of the application (without ending slash)

View File

@@ -1 +0,0 @@
**/jasmine*.js,**/jquery*.js,**/angular*.js,**/bootstrap*.js,**/build/**/*.js,**/libs/**/*.js,**/publish/public/js/*.js,**/site/js/plugins.js

View File

@@ -1,22 +0,0 @@
<VirtualHost *:8088>
ServerAdmin averymd@irrsinn.net
ServerName projects.irrsinn.net
DocumentRoot /var/www/projects.irrsinn.net
<Directory /var/www/projects.irrsinn.net/git>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

View File

@@ -1,28 +0,0 @@
backend jenkins {
.host = "projects.irrsinn.net";
.port = "8080";
.connect_timeout = 300s;
.first_byte_timeout = 120s;
.between_bytes_timeout = 300s;
.max_connections = 800;
}
backend git {
.host = "projects.irrsinn.net";
.port = "8088";
.connect_timeout = 300s;
.first_byte_timeout = 120s;
.between_bytes_timeout = 300s;
.max_connections = 800;
}
sub vcl_recv {
if ((req.http.host ~ "projects.irrsinn.net") && (req.url ~ "jenkins"))
{
set req.backend = jenkins;
} else {
set req.backend = git;
}
return (pass);
}

View File

@@ -1 +0,0 @@
find . -name '*.py'|egrep -v '^./tests/|^./build/'|xargs pyflakes > pyflakes.log || :

View File

@@ -1,4 +0,0 @@
rm -f pylint.log
for f in `find . -name '*.py'|egrep -v '^./tests/|^./build/'`; do
pylint --output-format=parseable --disable=W0311,W0403,W0232,E1101 --generated-members=objects,content,status_code --reports=y $f >> pylint.log
done || :

View File

@@ -1 +0,0 @@
sloccount --duplicates --wide --details . | fgrep -v build > sloccount.sc || :

View File

@@ -1,40 +0,0 @@
daemon_directory = /usr/lib/postfix
#myorigin = local.irrsinn.net
mydomain = local.irrsinn.net
myhostname = irrsinn.net
smtp_generic_maps = hash:/etc/postfix/generic
header_checks = regexp:/etc/postfix/header_checks
# appending .domain is the MUA's job.
append_dot_mydomain = no
# TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#smtpd_use_tls=yes
#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_security_level = may
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = solitare, localhost.localdomain, , localhost
relayhost = smtp.gmail.com:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
soft_bounce = yes
disable_dns_lookups = yes
message_size_limit = 35651584
smtp_destination_rate_delay = 60
relay_destination_rate_delay = 60

View File

@@ -1 +0,0 @@
a5091bb7-b1c4-4279-8c61-166b7ecebd18

View File

@@ -1,113 +0,0 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise32"
config.vm.provision :shell, :path => "bootstrap.sh"
config.vm.network :forwarded_port, host: 8080, guest: 80
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
# config.vm.box_url = "http://domain.com/path/to/above.box"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network :forwarded_port, guest: 80, host: 8080
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network :private_network, ip: "192.168.33.10"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network :public_network
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider :virtualbox do |vb|
# # Don't boot with headless mode
# vb.gui = true
#
# # Use VBoxManage to customize the VM. For example to change memory:
# vb.customize ["modifyvm", :id, "--memory", "1024"]
# end
#
# View the documentation for the provider you're using for more
# information on available options.
# Enable provisioning with Puppet stand alone. Puppet manifests
# are contained in a directory path relative to this Vagrantfile.
# You will need to create the manifests directory and a manifest in
# the file base.pp in the manifests_path directory.
#
# An example Puppet manifest to provision the message of the day:
#
# # group { "puppet":
# # ensure => "present",
# # }
# #
# # File { owner => 0, group => 0, mode => 0644 }
# #
# # file { '/etc/motd':
# # content => "Welcome to your Vagrant-built virtual machine!
# # Managed by Puppet.\n"
# # }
#
# config.vm.provision :puppet do |puppet|
# puppet.manifests_path = "manifests"
# puppet.manifest_file = "init.pp"
# end
# Enable provisioning with chef solo, specifying a cookbooks path, roles
# path, and data_bags path (all relative to this Vagrantfile), and adding
# some recipes and/or roles.
#
# config.vm.provision :chef_solo do |chef|
# chef.cookbooks_path = "../my-recipes/cookbooks"
# chef.roles_path = "../my-recipes/roles"
# chef.data_bags_path = "../my-recipes/data_bags"
# chef.add_recipe "mysql"
# chef.add_role "web"
#
# # You may also specify custom JSON attributes:
# chef.json = { :mysql_password => "foo" }
# end
# Enable provisioning with chef server, specifying the chef server URL,
# and the path to the validation key (relative to this Vagrantfile).
#
# The Opscode Platform uses HTTPS. Substitute your organization for
# ORGNAME in the URL and validation key.
#
# If you have your own Chef Server, use the appropriate URL, which may be
# HTTP instead of HTTPS depending on your configuration. Also change the
# validation key to validation.pem.
#
# config.vm.provision :chef_client do |chef|
# chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
# chef.validation_key_path = "ORGNAME-validator.pem"
# end
#
# If you're using the Opscode platform, your validator client is
# ORGNAME-validator, replacing ORGNAME with your organization name.
#
# If you have your own Chef Server, the default validation client name is
# chef-validator, unless you changed the configuration.
#
# chef.validation_client_name = "ORGNAME-validator"
end

View File

@@ -1,8 +0,0 @@
#!/usr/bin/env bash
apt-get update
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password 0233235'
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password 0233235'
apt-get install -y apache2 python sqlite3 mysql-server git
rm -rf /var/www
ln -fs /vagrant /var/www

View File

@@ -1,177 +1,22 @@
" http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good
" choice.
" If you're a more advanced user, building your own .vimrc
" based
" on this file is still a good idea.
"
"------------------------------------------------------------
" Features {{{1
"
" These options and commands enable some very useful features in Vim, that
" no user should have to live without.
"
" Set 'nocompatible' to ward off unexpected things that your distro might
" have made, as well as sanely reset options when re-sourcing .vimrc
" set nocompatible
"
" Attempt to determine the type of a file based on its name and possibly its
" contents. Use this to allow intelligent auto-indenting for each filetype,
" and for plugins that are filetype specific.
filetype indent plugin on
" Install vim-plug automatically
" Enable syntax highlighting
syntax on
"
"
"------------------------------------------------------------
" Must have options {{{1
"
" These are highly recommended options.
"
" Vim with default settings does not allow easy switching between multiple
" files
" in the same editor window. Users can use multiple split windows or
" multiple
" tab pages to edit multiple files, but it is still best to enable an option
" to
" allow easier switching between files.
"
" One such option is the 'hidden' option, which allows you to re-use the
" same
" window and switch from an unsaved buffer without saving it first. Also
" allows
" you to keep an undo history for multiple files when re-using the same
" window
" in this way. Note that using persistent undo also lets you undo in
" multiple
" files even in the same window, but is less efficient and is actually
" designed
" for keeping undo history after closing Vim entirely. Vim will complain if
" you
" try to quit without saving, and swap files will keep you safe if your
" computer
" crashes.
set hidden
"
" Note that not everyone likes working this way (with the hidden option).
" Alternatives include using tabs or split windows instead of re-using the
" same
" window as mentioned above, and/or either of the following options:
" set confirm
" set autowriteall
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Better command-line completion
set wildmenu
" Run PlugInstall if there are missing plugins
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | source $MYVIMRC
\| endif
" Show partial commands in the last line of the screen
set showcmd
call plug#begin('~/.vim/plugged')
" Highlight searches (use <C-L> to temporarily turn off highlighting; see
" the
" mapping of <C-L> below)
set hlsearch
Plug 'jcherven/jummidark.vim'
Plug 'tpope/vim-sensible'
" Modelines have historically been a source of security vulnerabilities. As
" such, it may be a good idea to disable them and use the securemodelines
" script, <http://www.vim.org/scripts/script.php?script_id=1876>.
" set nomodeline
"------------------------------------------------------------
" Usability options {{{1
"
" These are options that users frequently set in their .vimrc. Some of them
" change Vim's behaviour in ways which deviate from the true Vi way, but
" which are considered to add usability. Which, if any, of these options to
" use is very much a personal preference, but they are harmless.
" Use case insensitive search, except when using capital letters
set ignorecase
set smartcase
" Allow backspacing over autoindent, line breaks and start of insert action
set backspace=indent,eol,start
" When opening a new line and no filetype-specific indenting is enabled,
" keep
" the same indent as the line you're currently on. Useful for READMEs, etc.
set autoindent
" Stop certain movements from always going to the first character of a line.
" While this behaviour deviates from that of Vi, it does what most users
" coming from other editors would expect.
set nostartofline
" " Display the cursor position on the last line of the screen or in the
" status
" line of a window
set ruler
" Always display the status line, even if only one window is displayed
set laststatus=2
" Instead of failing a command because of unsaved changes, instead raise a
" dialogue asking if you wish to save changed files.
set confirm
" Use visual bell instead of beeping when doing something wrong
set visualbell
" And reset the terminal code for the visual bell. If visualbell is set, and
" this line is also included, vim will neither flash nor beep. If visualbell
" is unset, this does nothing.
set t_vb=
" Enable use of the mouse for all modes
set mouse=a
" Set the command window height to 2 lines, to avoid many cases of having to
" "press <Enter> to continue"
set cmdheight=2
" Display line numbers on the left
set number
" Quickly time out on keycodes, but never time out on mappings
set notimeout ttimeout ttimeoutlen=200
" Use <F11> to toggle between 'paste' and 'nopaste'
set pastetoggle=<F11>
"------------------------------------------------------------
" Indentation options {{{1
"
" Indentation settings according to personal preference.
" Indentation settings for using 2 spaces instead of tabs.
" Do not change 'tabstop' from its default value of 8 with this setup.
set shiftwidth=2
set softtabstop=2
set expandtab
" Indentation settings for using hard tabs for indent. Display tabs as
" two characters wide.
"set shiftwidth=2
"set tabstop=2
"------------------------------------------------------------
" Mappings {{{1
"
" Useful mappings
" Map Y to act like D and C, i.e. to yank until EOL, rather than act as yy,
" which is the default
map Y y$
" Map <C-L> (redraw screen) to also turn off search highlighting until the
" next search
nnoremap <C-L> :nohl<CR><C-L>
"------------------------------------------------------------
call plug#end()
syntax enable
colorscheme jummidark