Skip to content

Instantly share code, notes, and snippets.

# Boxstarter options
$Boxstarter.RebootOk=$false # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showFileExtensions
Enable-RemoteDesktop
<?php
/**
*
* Origin: http://forums.steampowered.com/forums/showthread.php?t=1430511
*
* @package Steam Community API
* @copyright (c) 2010 ichimonai.com
* @license http://opensource.org/licenses/mit-license.php The MIT License
*
# Boxstarter options
$Boxstarter.RebootOk=$false # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
@samjaninf
samjaninf / cors-nginx.conf
Created March 4, 2016 08:42 — forked from michiel/cors-nginx.conf
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
@samjaninf
samjaninf / vimrc
Last active December 13, 2023 03:39
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic
" http://amix.dk - amix@amix.dk
"
" Version:
" 5.0 - 29/05/12 15:43:36
"
" Blog_post:
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github
# turns off the license screen
startup_message off
# always use a login shell
shell -$SHELL
# cleaner shell title
shelltitle ''
# allows you to keep what was displayed on your terminal when exiting things like man, less rather than having your terminal cleared
# =============================================================== #
#
# PERSONAL $HOME/.bashrc FILE for bash-3.0 (or later)
# By Emmanuel Rouat [no-email]
#
# Last modified: Tue Nov 20 22:04:47 CET 2012
# This file is normally read by interactive shells only.
#+ Here is the place to define your aliases, functions and
#+ other interactive features like your prompt.
Install platform-21 manually from the ~/.meteor/android_bundle/android-sdk folder,
Set the android-targetSdkVersion preference to 21 in mobile-config.js
Create the cordova-build-override/platforms/android/ folder
Copy the project.properties from .meteor/local/cordova-build/platforms/android/ to the cordova-build-override/platforms/android/ folder
Change the android-19 in the project.properties file to android-21
#!/bin/bash
for ip in `cat /home/list_of_servers`; do
ssh-copy-id -i ~/.ssh/id_rsa.pub $ip
done
Adding a list of users to each server
The best tool for this job is newusers. You will need to create a text file containing the list of users and their details. If you want to add the same user to each server, this file will only need one line.
Create the user's list. The general format of the file is
username:passwd:UID:GID:full name,room number,work phone,home phone,other:directory:shell
So, in your case, you would need to use something like
tom:password1:::"Tom Hanks","101","123456","654321","Tall"::