christianmlong + windows   303

ruamel / winpysetup — Bitbucket
Automatic setup for multiple python versions on Windows
Windows  python  testing 
may 2015 by christianmlong
msabramo/vagrant_hyperv_python2
A lightweight Vagrant VM with Microsoft Hyper-V Server 2012 R2 and Python 2
vagrant  box  windows  vm  2012_R2 
april 2015 by christianmlong
How can I setup my vim-airline or vim-powerline - Stack Overflow
if !exists('g:airline_symbols') let g:airline_symbols = {} endif " unicode symbols let g:airline_left_sep = '»' let g:airline_left_sep = '▶' let g:airline_right_sep = '«' let g:airline_right_sep = '◀' let g:airline_symbols.linenr = '␊' let g:airline_symbols.linenr = '␤' let g:airline_symbols.linenr = '¶' let g:airline_symbols.branch = '⎇' let g:airline_symbols.paste = 'ρ' let g:airline_symbols.paste = 'Þ' let g:airline_symbols.paste = '∥' let g:airline_symbols.whitespace = 'Ξ'
windows  vim  airline  powerline 
march 2015 by christianmlong
runsisi/consolas-font-for-powerline
Powerline consolas font that works with PuTTY on Windows
Windows  font  config  consolas  PuTTY  powerline 
march 2015 by christianmlong
Issue 23246: distutils fails to locate vcvarsall with Visual C++ Compiler for Python - Python tracker
ortunately, a workaround is available:

1) Enter MSVC for Python command prompt
2) SET DISTUTILS_USE_SDK=1
3) SET MSSdk=1
4) python.exe setup.py ...
python  vcvarsall.bat  compiler  windows  distutils  setuptools 
february 2015 by christianmlong
Tcl doesn't work inside a virtualenv on Windows · Issue #93 · pypa/virtualenv
Thanks Wietse. I took a similar approach by modifying my activate.bat script to include:

set TCL_LIBRARY=C:\Python26\ArcGIS10.0\tcl\tcl8.5
set TK_LIBRARY=C:\Python26\ArcGIS10.0\tcl\tk8.5

mapplotlib is now working in the virtualenv.
python  tcl  tk  matplotlib  windows  virtualenv 
february 2015 by christianmlong
ConEmu Solarized color scheme not displaying properly in vim - Super User
down vote accepted


Found that this is a vim/solarized/cmd related problem. Instead of changing the ConEmu color settings, I can resolve this by adding this to my vimrc:

let g:solarized_underline=0
windows  conemu  annoyances  underline 
february 2015 by christianmlong
Tim Golden's Python Stuff: Print
Data must be printer-ready

import os, sys
import win32print
printer_name = win32print.GetDefaultPrinter ()
#
# raw_data could equally be raw PCL/PS read from
# some print-to-file operation
#
if sys.version_info >= (3,):
raw_data = bytes ("This is a test", "utf-8")
else:
raw_data = "This is a test"

hPrinter = win32print.OpenPrinter (printer_name)
try:
hJob = win32print.StartDocPrinter (hPrinter, 1, ("test of raw data", None, "RAW"))
try:
win32print.StartPagePrinter (hPrinter)
win32print.WritePrinter (hPrinter, raw_data)
win32print.EndPagePrinter (hPrinter)
finally:
win32print.EndDocPrinter (hPrinter)
finally:
win32print.ClosePrinter (hPrinter)
python  Windows  print 
january 2015 by christianmlong
Tim Golden's Python Stuff: Win32 How Do I...?
Big list of recipes for doing things on Windows with python.
python  Windows  win32  howto 
january 2015 by christianmlong
iCacls - Modify Access Control List | Windows CMD | SS64.com
# Read permission. This folder, subfolders, and files.
icacls "C:\Users\clongadmin\Documents\Projects\bla\bla" /grant "nt service\my_service_name_here":(OI)(CI)R
Windows  user  access  permissions  acl  icacls 
january 2015 by christianmlong
windows - Convenient cross-platform help on checking secure hashes like SHA-256 - Information Security Stack Exchange
For Windows, you can use PowerShell, which is installed by default on Windows 7 / Server 2008 R2 and onwards. The Get-FileHash function was introduced in PowerShell v4, which comes with Windows 8.1 and Windows Server 2012 R2
Windows  PowerShell  file  hash  checksum  sha256 
january 2015 by christianmlong
Scott Forsyth's Blog - Managed Service Accounts (MSA) and Virtual Accounts
All you need to do is assign an account with the name NT SERVICE\{servicename}. For example, “NT SERVICE\NetworkCall”. Leave the password blank or bogus. That’s it! The account is already there. You don’t need to create it or turn it on or anything. As long as you’re using Windows Server 2008 R2 or Windows 7, you’re done.
Windows  service  virtual  account 
january 2015 by christianmlong
How and why to run command line under various system accounts - Ondrej Sevecek's English Pages
To run command line under NT SERVICE virtual service identity or IIS APPPOOL virtual application pool identity

Unfortunatelly, not even PSEXEC does have this functionality. I personally doubt it is possible to achieve at all. So in case you need to troubleshoot any local issues, you are lost here. But in case the the service or app pool tries to access a network resource, you can make do with Network Service account again. From network perspective, they are the same. Up to my knowledge, NT SERVICE and IIS APPPOOL virtual accounts differ from Network Service only locally on the computer where they are running.
psexec  pstools  Windows  sysinternals  su  virtual  service  account  nt_service 
january 2015 by christianmlong
Configure File System Permissions for Database Engine Access
To Grant File System Permission to the Per-service SID

Using Windows Explorer, navigate to the file system location where the database files are stored. Right-click the file system folder, and then click Properties.

On the Security tab, click Edit, and then Add.

In the Select Users, Computer, Service Account, or Groups dialog box, click Locations, at the top of the location list, select your computer name, and then click OK.

In the Enter the object names to select box, type the name of the per-service SID listed in the Books Online topic Configure Windows Service Accounts and Permissions. (For the Database Engine per service SID, use NT SERVICE\MSSQLSERVER for a default instance, or NT SERVICE\MSSQL$InstanceName for a named instance.)

Click Check Names to validate the entry. The validation often fails, and might advise you that the name was not found. When you click OK, a Multiple Names Found dialog box appears.

Now select the per-service SID, either MSSQLSERVER or NT SERVICE\MSSQL$InstanceName, and then click OK.

Click OK again to return to the Permissions dialog box.

In the Group or user names box, select the per-service SID, and then in the Permissions for <name> box, select the Allow check box for Full control.

Click Apply, and then click OK twice to exit.
Windows  virtual  service  account  filesystem  permissions  privilege 
january 2015 by christianmlong
Configure Windows Service Accounts and Permissions
Virtual accounts in Windows Server 2008 R2 and Windows 7 are managed local accounts that provide the following features to simplify service administration. The virtual account is auto-managed, and the virtual account can access the network in a domain environment. If the default value is used for the service accounts during SQL Server setup on Windows Server 2008 R2 or Windows 7, a virtual account using the instance name as the service name is used, in the format NT SERVICE\<SERVICENAME>. Services that run as virtual accounts access network resources by using the credentials of the computer account in the format <domain_name>\<computer_name>$. When specifying a virtual account to start SQL Server, leave the password blank.
windows  account  virtual  security  privilege 
january 2015 by christianmlong
Windows Services Frequently Asked Questions (FAQ) | Tips for managing Windows 8/2012/7/2008/2008 R2/Vista/2003/XP Services
This is because Microsoft has disabled interactive services in these new operating systems!

Fortunately, it is easy to re-enable interactive services by editing the registry:

Start the registry editor ("regedit.exe")
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows on the left side
On the right, double-click the NoInteractiveServices entry and change its value from 1 to 0
Click OK to record your change
Close the registry editor
ui0detect  windows  services  session0 
january 2015 by christianmlong
Windows Confidential: Tracking Shortcuts
Here's how to disable NTFS tracking of shortcuts.

Navigate to this registry key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Policies\Explorer

Add a new DWORD value and name it NoResolveTrack, set the value to 1.

Will only be effective after the next reboot. Applies only to target files on NTFS partitions. FAT partitions do not have this ID tracking and search capability.
windows  annoyances  shortcuts  ntfs 
july 2014 by christianmlong
Unicode: Unicode and Putty (Windows)
To ensure PuTTY accepts UTF-8 characters do the following.

Click on the PuTTY icon in the top left corner of the window
select "Change settings"
select the session you wish to check from the "Saved Sessions" field
selet "Window / Translation"
set "Received data assumed to be in which character set:" to UTF-8
click [Apply]
unicode  Windows  PuTTY 
july 2014 by christianmlong
Unicode: Uniocode and Notepad (Windows)
The four choices listed map to these standard encoding names.
Windows Encoding Name Standard Encoding Name Byte Order Mark
ANSI active ANSI code page none
Unicode UTF-16 LE
Unicode big endian UTF-16 BE
UTF-8 UTF-8 UTF-8
unicode  windows  notepad  utf-8 
july 2014 by christianmlong
Context menus are shortened when more than 15 files are selected
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer
Name : MultipleInvokePromptMinimum
Type : DWORD
Default : 15 (decimal)

Note: on windows 8, you have to add the key yourself, it's not there.
Windows  annoyances  new_pc  workarounds  grrr 
april 2014 by christianmlong
David Zhang - Disabling Win+Enter Narrator hotkey in Windows 8
The easiest solution I've found for disabling the hotkey is to disable the executable. You can do this by finding Narrator.exe in System32 and turning off the execute permission, or an even easier way is to create a registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT
\CurrentVersion\Image File Execution Options\Narrator.exe

And in that key, create a String named Debugger with value %1.
windows  annoyances  narrator 
april 2014 by christianmlong
« earlier      
per page:    204080120160

related tags

8.1  32bit  64bit  2012_R2  accents  access  account  accounts  acl  administration  administrator  aero-peek  ahci  airline  airprint  alias  align  alignment  alt  alt-tab  alttab  annoyances  ansible  apple  application  applications  apply  ARC  ARC_Path  arguments  atime  atl  attachments  attributes  audio  autocrlf  autoit  automation  babun  backup  banish  bash  batch  bcdedit  binary  Blaster  blog  boot  boot.ini  bootloader  box  break  bsod  bug  bugzilla  build  burn  c++  CA  Canon  card  cd  cdrecord  ce  cell  center  certificate  certificates  character  characters  cheat  check  checksum  civ3  clean  cleaner  cleanpc  cleanup  client  clink  clipboard  clone  cmd  codes  com  command  compile  compiler  computer  conemu  config  consolas  console  constants  context  control  control_panel  convert  copy  create  Creative  creator  crlf  cross_platform  ctime  ctypes  current  cygwin  dash  data  dde  debug  debugging  deployment  desktop  development  dfs  diff  directory  disable  diskpar  dispatch  display  distutils  dll  docker  docs  documentation  dofus  dos  download  drive  driver  drivers  drive_letter  dual  dualboot  dvd  eac  elevation  email  emergency  encryption  endings  environment  error  escalation  examples  exploit  explorer  export  extension  file  filesystem  FileSystemObject  firefox  folder  font  format  forum  français  friendly  fso  ftp  fun  game  games  gcc  ghostscript  git  gnu  gnuwin32  gpg  grep  grrr  guest  gui  guide  gvim  gzip  hacks  hard  hardware  hash  here  hg  hgsubversion  hibernate  hibernation  home  homegroup  howto  howtogeek  hung  ia  icacls  icon  ie  import  index  indexing  inline  inno_setup  install  installer  instant  intel  international  internet  ios  ipad  ipp  ISO  issue  javascript  key  keyboard  keymap  laptop  latex  layout  lcd  lenovo  letter  lifehacker  line  linux  live  loader  local  localservice  LocalSystem  log  login  mac  macos  mail  manager  map  matplotlib  md5  media  menu  mercurial  merge  message  metro  microsoft  migrate  mingw  minidump  minimize  mobile  monitor  mount  mp3  mru  msc  msgbox  msys  mtime  multiple  music  narrator  native  NetDrive  network  network_tools  new_pc  nlite  notepad  not_responding  Novell  nsis  ntfs  nt_service  NVidia  ocz  ODBC  office  offline  old  oleview  omnia  open  OpenSSL  optimize  options  oracle  os  os.path  osx  parameters  parser  partition  password  patch  path  pdf  peek  performance  permissions  phone  pick_pack  pinball  pip  plugin  posix  posting  power  powerline  powershell  print  printer  printing  privacy  privilege  product  programming  prompt  psexec  pskill  psshutdown  pstools  PuTTY  pvr  py2exe  pylint  python  python3  pytivo  query  readline  ReadOnly  reboot  recorder  recovery  reference  refused  regedit  regex  registry  reinstall  remap  remote  rename  repair  replacement  rescue  resolution  review  Riva  roatate  rsa  rsi  rsync  run  runas  rxvt  samba  samsung  sata  sc  scancode  scheduled  scheme  screen  scripting  search  security  server  service  services  session0  settings  setup  setuptools  sfc  sha  sha256  share  shell  ShellFolderObject  shell_extension  shn  shortcut  shortcuts  shorten  show_desktop_icon  shutdown  signature  single  sip  size  slipstream  snippet  software  sound  sp3  ssd  ssh  ssh_keygen  ssl  startup  stat  stop  su  subversion  svn  switch  syntax  sysadmin  sysinternals  system  tar  task  tasks  tcl  terminal  testing  tether  text  thinkpad  tile  timer  tips  tivo  tk  TNT2  to  tool  tools  trailing  transcode  transfer  troubleshooting  turn_off  tutorial  tv  twain  tweak  tweaks  twisted  typelib  typing  uac  ubcd4win  ubuntu  ui0detect  underline  unicode  unix  update  upgrade  url  usb  usbscan.sys  user  utf-8  utilities  utility  vagrant  variables  vb6  vba  vbscript  vcvarsall.bat  verify  video  view  viewer  vim  virtual  virtualbox  virtualenv  vista  visualc++  vm  voip  wait  wav  wdk  webdav  wheel  whitespace  wifi  win32  win32com  windows  windowslivewriter  winmo  wix  wizard  wlw  wma  wmc  word  work  workarounds  writer  wsh  wsl  xmlrpc  xp  zip 

Copy this bookmark:



description:


tags: