Skip to content

Instantly share code, notes, and snippets.

Please first try recreating Licensing Store.
Recreate the Licensing Store
Go to Start > All Programs > Accessories
Right-Click on Command Prompt and select Run as Administrator - accept the UAC prompt
Run the following commands in the Command Prompt window, using the Enter key at the end of each
net stop sppsvc
(wait until the service has stopped before entering the following lines)
Eat Pray Love
@breezhang
breezhang / bootclearn.sh
Created October 21, 2015 23:30
clearn boot
#!!!!
so reboot first
can do this command
ye !
apt-get remove `dpkg --list 'linux-image*' |grep ^ii | awk '{print $2}'\ | grep -v \`uname -r\``
like perl ruby <<
How about a "here document"
ssh otherhost << EOF
ls some_folder;
./someaction.sh 'some params'
pwd
./some_other_action 'other params'
#! /usr/bin/bash
echo "==================="
@breezhang
breezhang / bash-wap.sh
Created October 1, 2015 00:15
command fu
#!/bin/sh
#
# commandlinefu - Simple shell script using commandlinefu.com API
#
# All commands sorted by date:
# % commandlinefu
#
# All commands sorted by votes:
# % commandlinefu -v
#
@breezhang
breezhang / git overwrite local repo
Last active August 29, 2015 14:07
use vagrant make linux box
git fetch --all
git reset --hard origin/master
git fetch downloads the latest from remote without trying to merge or rebase anything. Then the git reset resets the master branch to what you just fetched.\
git push -f // push & override
Note that this will blow away other people's code.
res:
@breezhang
breezhang / ( ͡° ͜ʖ ͡°)
Created September 30, 2014 00:06
( ͡° ͜ʖ ͡°)
( ͡° ͜ʖ ͡°)
@breezhang
breezhang / get.rb
Created September 2, 2014 09:42
ruby Net http lib
require 'net/http'
url = URI.parse('http://localhost:3000/')
req = Net::HTTP::Get.new(url.to_s)
res = Net::HTTP.start(url.host, url.port) {|http|
http.request(req)
}
puts res.body
@breezhang
breezhang / gemfile
Last active August 29, 2015 14:05
html header
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.4'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'bootstrap-sass'
gem 'sass-rails', '~> 4.0.3'
gem 'bootswatch-rails'