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
.material:hover { | |
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0,0,0,.12) | |
} | |
.material { | |
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0,0,0,.12) | |
} |
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
$path = 'A:\segoescb.ttf' | |
$folder = Split-Path $path | |
$file = Split-Path $path -Leaf | |
$shell = New-Object -COMObject Shell.Application | |
$shellfolder = $shell.Namespace($folder) | |
$shellfile = $shellfolder.ParseName($file) | |
## get (localized) description and value of | |
## specified extended attributes numbers |
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
[CmdletBinding()] | |
param( | |
[string]$Target, | |
[string]$Base = "$HOME" | |
) | |
function Move-GitRepo() { | |
[CmdletBinding()] | |
param( | |
[System.IO.DirectoryInfo]$Target, |
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
param( | |
[string]$VSCode | |
) | |
if (!$VSCode) { | |
Write-Output "Please specify a VSCode(dir)" | |
exit(1) | |
} | |
Write-Output "Remove old [mark]" |
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
#!/bin/bash | |
find ${1} -type d -maxdepth ${2} | while read line; do | |
git_dir="${line}/.git" | |
if [[ -d ${git_dir} ]]; then | |
echo $line | |
fi | |
done |
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
#!/bin/bash | |
shopt -s extglob | |
cwd=$(pwd) | |
target=${1} | |
ls ${target} | while read dirname; do | |
gitRepo="${target}/${dirname}" | |
gitDir="${gitRepo}/.git" |
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
param( | |
[string]$Target | |
) | |
Get-ChildItem $Target -Directory | ForEach-Object { | |
$gitDir = ("{0}\.git" -f $_.FullName) | |
if (Test-Path $gitDir -PathType Container) { | |
Push-Location $_ | |
Write-Output ("{0} -> {1}" -f $_.FullName, (git config --get remote.origin.url)) | |
Pop-Location |
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
#!/bin/bash | |
title() { | |
printf "\n\n==== $1 ====\n\n" | |
} | |
title "useradd docker" | |
useradd docker | |
title "passwd docker" |
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
# https://youtrack.jetbrains.com/issue/IDEA-228656 | |
netsh int ipv4 add excludedportrange tcp 6949 50 persistent |
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
public static void main(String[] args) { | |
SomeClass1 a1 = new SomeClass1(); | |
a1.setName("A"); | |
SomeClass1 a2 = new SomeClass1(); | |
a2.setName("A"); | |
SomeClass1 b = new SomeClass1(); | |
b.setName("B"); | |
SomeClass1 c = new SomeClass1(); | |
c.setName("C"); |