Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# All in one script to setup vim extensions and setup bash(kinda)
#
# By Robert David Hernandez
# http://www.github.com/rhernandez513
#
apt install exuberant-ctags
@Rhernandez513
Rhernandez513 / .bash_aliases
Last active July 27, 2020 23:40
bashrc, bash_aliases, inputrc
# Directory navigation aliases
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias back='cd $OLDPWD'
#misc aliases
alias open='gnome-open'
alias grep='grep -n'
Option Explicit
Dim objshell,path,DigitalID, Result
Set objshell = CreateObject("WScript.Shell")
'Set registry key path
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
'Registry key value
DigitalID = objshell.RegRead(Path & "DigitalProductId")
Dim ProductName,ProductID,ProductKey,ProductData
'Get ProductName, ProductID, ProductKey
' Warning!! This script with run infinetly unless cancelled by either an
' outside script or by killing the process in task manager
' copy the following into a SEPARATE .vbs script to kill all vbs scripts
' that are currently running on your machine
' Option Explicit
' Dim WshShell
' Set WshShell = WScript.CreateObject("WScript.Shell")
' WshShell.Run "taskkill /f /im Cscript.exe", , True
' WshShell.Run "taskkill /f /im wscript.exe", , True
' WScript.Quit
Option Explicit
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "taskkill /f /im Cscript.exe", , True
WshShell.Run "taskkill /f /im wscript.exe", , True
WScript.Quit
Option Explicit
Dim WshShell
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%windir%\notepad.exe"
WshShell.AppActivate "Notepad"
Wscript.Sleep 1000
WshShell.SendKeys "%{F4}"
WScript.Quit
$HOMEDRIVE = "C:\";
$HOMEPATH = "Users\\" + "rhernandez3\\Documents"; # $env:username;
# Set and force overwrite of the $HOME variable
Set-Variable HOME "$HOMEDRIVE$HOMEPATH" -Force;
# Set the "~" shortcut value for the FileSystem provider
(get-psprovider 'FileSystem').Home = $HOMEDRIVE + $HOMEPATH;
#change to new $Home
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id ="conemu" />
<package id ="vim" />
<package id="wincommandpaste-compiled" />
<package id ="git" params="'/GitAndUnixToolsOnPath'"/>
<package id ="msysgit" />
<package id="hg" />
<package id="python" />
<package id="pip" />
@Rhernandez513
Rhernandez513 / _vimrc
Last active November 13, 2015 17:38
vim settings UNIX/Windows versions
" Custom settings FOR WINDOWS VIM
source $VIMRUNTIME/vimrc_example.vim
"execute pathogen#infect()
syntax enable
if has("gui_running")
set guifont=Source_Code_Pro:h13:cANSI
colorscheme solarized
set background=dark
set lines=120 columns=84