This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| c:\vim\vim80\gvim.exe --remote-silent %1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bind-key r source-file ~/.tmux.conf \; display "Reloaded configuration file" | |
| #set-option -g prefix2 ` | |
| unbind-key C-b | |
| set -g prefix C-a | |
| bind-key C-a send-prefix | |
| #Split panes using - and | | |
| bind | split-window -h | |
| bind \ split-window -h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $a = pwd | |
| Set-Clipboard -Value $a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########################################################################################## | |
| # Program: mycommits # | |
| # Author : Xanthalas # | |
| # : Retrieves all the commit messages from the repository referenced in the # | |
| # : mycommits.ini file. # | |
| ########################################################################################## | |
| def parseMessages(messages, user) | |
| output = Array.[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/ruby | |
| #Retrieve the internal IP address (using IPCONFIG in Windows), display it to the console and write it to a file. | |
| #binding.pry | |
| def get_address | |
| toFile = ARGV[0] + '\current_ip' | |
| command = 'ipconfig' | |
| output = `#{command}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################# | |
| # Minecraft server world selector. # | |
| # Author: Xanthalas Date: May 2011 # | |
| ############################################################################# | |
| puts "Minecraft server world selector" | |
| puts "" | |
| puts "Available worlds:" | |
| puts "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VIM Tips: | |
| Vim command to seperate filenames copied from Winmerge onto individual line | |
| --------------------------------------------------------------------------- | |
| \(\..\{3,4}\) | |
| Append String to every line in a selection | |
| ------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH LastActivity (ObjectID, LastAction) AS | |
| ( | |
| SELECT object_id AS TableName, | |
| last_user_seek as LastAction | |
| FROM sys.dm_db_index_usage_stats u | |
| WHERE database_id = db_id(db_name()) | |
| UNION | |
| SELECT object_id AS TableName, | |
| last_user_scan as LastAction | |
| FROM sys.dm_db_index_usage_stats u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/ruby | |
| require 'net/ftp' | |
| #Retrieve the external IP address, display it to the console and upload it to a web site | |
| ip = `curl --silent --get http://automation.whatismyip.com/n09230945.asp` | |
| print "IP Address: #{ip}\n\n" | |
| time = Time.new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Toggles the registry value of the Windows Lock facility (Win+L) | |
| require 'win32/registry' | |
| current_key = 999 | |
| action = "" | |
| Win32::Registry::HKEY_CURRENT_USER.open('Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System') do |reg| | |
| current_key = reg['DisableLockWorkStation'] | |
| end |
NewerOlder