Skip to content

Instantly share code, notes, and snippets.


Sergejus sergejusb

  • Seattle, WA, USA
View GitHub Profile
sergejusb / share_internet.bat
Created Jan 16, 2014
share internet as wi-fi spot
View share_internet.bat
@echo off
set key=%1
set ssid=%2
if (%key%) == () set key=1234567890
if (%ssid%) == () set ssid=shared
echo Usage: share_internet.bat [network password] [network name]
echo Using: share_internet.bat %key% %ssid%
sergejusb / Sql-Functions.ps1
Last active Dec 16, 2015
Basic Power-Shell cmdlets to work with SQL Server (via sqlcmd.exe)
View Sql-Functions.ps1
# -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# SQL Server functions
function Execute-Sql($sql, $username, $password, $file) {
Write-Host -ForegroundColor Cyan "Executing $file on $sql with user $username"
& sqlcmd -S $sql -U $username -P $password -i $file
function Execute-SqlDir($sql, $username, $password, $dir) {
Get-ChildItem $dir | Select-Object FullName | foreach {
sergejusb / IIS-Functions.ps1
Last active Feb 9, 2018
Basic Power-Shell cmdlets to work with IIS 7+
View IIS-Functions.ps1
# -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# IIS functions
Import-Module WebAdministration
function Test-WebAppPool($Name) {
return Test-Path "IIS:\AppPools\$Name"
function Get-WebAppPool($Name) {
View Power.cs
namespace BeBetterDeveloper.Algorithms.Math
using System;
using NUnit.Framework;
public static class Power
public static double Pow(double number, int exp)
sergejusb / ilmerge
Last active Dec 14, 2015 — forked from crmckenzie/gist:4004375
PowerShell script used for IL Merging. Useful with CI servers like TeamCity
View ilmerge
IlMerges an assembly with its dependencies. Depends on nuget being installed in the PATH.
.PARAMETER targetProject
The name of the project to be ilmerged
.PARAMETER outputAssembly
The name of the ilmerged assembly when it is created
sergejusb / .gitignore
Created Jan 16, 2012
.gitignore for .NET
View .gitignore
#ignore thumbnails created by windows
#Ignore files build by Visual Studio
sergejusb / console.xml
Created Nov 10, 2011
Console2 Settings File
View console.xml
<?xml version="1.0"?>
<console change_refresh="10" refresh="100" rows="25" columns="80" buffer_rows="500" buffer_columns="0" shell="" init_dir="" start_hidden="0" save_size="0">
<color id="0" r="0" g="0" b="0"/>
<color id="1" r="0" g="0" b="128"/>
<color id="2" r="0" g="150" b="0"/>
<color id="3" r="0" g="150" b="150"/>
<color id="4" r="170" g="25" b="25"/>
<color id="5" r="128" g="0" b="128"/>
View feature roadmap


  • aggregation of #ltnet tweets
  • aggregation of rss from the manually added url list
  • feedback button for suggestions and bug report
  • initial site design, ready for more features
You can’t perform that action at this time.