start new:
tmux
start new with session name:
tmux new -s myname
console.log((fileName => `The current filename is ${fileName}`)(__filename)); |
#!/usr/bin/python | |
"""Print a swatch using all 256 colors of 256-color-capable terminals.""" | |
__author__ = "Marius Gedminas <[email protected]>" | |
__url__ = "https://gist.github.com/mgedmin/2762225" | |
__version__ = '2.0' | |
def hrun(start, width, padding=0): |
#!/usr/bin/env bash | |
PADDING='Padding' | |
main() { | |
local xterm_start=0 \ | |
xterm_width=8 \ | |
xterm_height=2 | |
local cube_start=$((xterm_start + xterm_width * xterm_height)) \ |
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/CodeCompletion/ExtensionMethodsInSmartCompletion/@EntryValue">True</s:Boolean> | |
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/CodeCompletion/IntelliSenseCompletingCharacters/CSharpCompletingCharacters/UpgradedFromVSSettings/@EntryValue">True</s:Boolean> | |
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/CSharpAdvancedCodeCompletion/InsertLambdaAsTemplate/@EntryValue">False</s:Boolean> | |
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/LookupWindow/ShowSignatures/@EntryValue">True</s:Boolean> | |
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/LookupWindow/UseCompletionFontForLookups/@EntryValue">False</s:Boolean> | |
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/Paramete |
git init | |
git add -A | |
git commit -m "<commit message>" | |
git remote add origin <remote_url> | |
git fetch origin | |
git rebase origin/master | |
git branch -u origin/master | |
git push |
#requires -version 5.1 | |
<# | |
This is a variation of the BoxPrompt code you can find at https://gist.github.com/jdhitsolutions/df808116f9234c070bdaf233418ec59b | |
Create a lined box with user and location information. The line color will indicate if the user is running elevated. | |
The prompt will also display the current date and time and a PS prompt with the PowerShell version. | |
┌───────────────────────┐ | |
│ [BOVINE320\Jeff] C:\ │ |
#requires -version 5.1 | |
<# | |
The complete version of the function also requires additional modules | |
which can be downloaded from the PowerShell Gallery. | |
https://github.com/jdhitsolutions/PSCalendar | |
https://github.com/jdhitsolutions/myTickle | |
If you prefer to |
$password = Read-Host "Enter the new password" -AsSecureString | |
Get-LocalUser -Name LocalUser | Set-LocalUser -Password $password | |
runas /user:LocalUser cmd.exe |
@echo off | |
echo Deleting HKEY_CLASSES_ROOT\dacdchfile ... | |
reg delete HKEY_CLASSES_ROOT\dacdchfile /f | |
echo Deleting HKEY_CLASSES_ROOT\tigans ... | |
reg delete HKEY_CLASSES_ROOT\tigans /f |