This file contains 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
# Remove Windows paths to Ruby since it causes conflicts with npm/bower/etc. | |
PATH=$(echo :$PATH: | sed -e 's,:/mnt/c/tools/ruby22/bin:,:,g' -e 's/^://' -e 's/:$//') |
This file contains 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
$destination_path = 'C:\Users\dilli\Downloads\media_dump' | |
$connection_string = '[AZURE_STORAGE_CONNECTION_STRING]' | |
$storage_account = New-AzureStorageContext -ConnectionString $connection_string | |
$containers = Get-AzureStorageContainer -Context $storage_account | |
Write-Host 'Starting Storage Dump...' | |
foreach ($container in $containers) |
This file contains 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
@ECHO off | |
cls | |
:start | |
ECHO. | |
ECHO 1. Visual Studio 2019 | |
ECHO 2. VS Code | |
ECHO 3. Sql Server Management Studio | |
ECHO. | |
set choice= |
This file contains 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
Open Search/Replace (CTRL+H), change settings to Regular Expressions (click .*) | |
Enter Find: ^(.+\n)(?=(?:.*\n)*?\1) | |
Leave Replace blank | |
Press CTRL+ALT+Enter | |
Profit! |
This file contains 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
# After logging in as a normal user, change to the su account, but don't use | |
# the '-' to preserve display values. Finally, append your users xauth settings | |
# onto your own, which will include the "cookie" for X11 forwarding | |
sudo su | |
xauth add $(xauth -f ~[user]/.Xauthority list|tail -1) |
This file contains 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
git filter-branch --index-filter 'git rm --cached --ignore-unmatch [file_name]' HEAD |
This file contains 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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
This file contains 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 DownloadObject(string keyName) | |
{ | |
string[] keySplit = keyName.Split('/'); | |
string fileName = keySplit[keySplit.Length - 1]; | |
string dest = Path.Combine(HttpRuntime.CodegenDir, fileName); | |
using (client = Amazon.AWSClientFactory.CreateAmazonS3Client()) | |
{ | |
GetObjectRequest request = new GetObjectRequest().WithBucketName(bucketName).WithKey(keyName); | |
This file contains 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
$location = "[path_to_new_folder]"; git archive master --format zip -o "$location.zip"; expand-archive "$location.zip" -DestinationPath $location; ri "$location.zip" | |
# Expand-Archive will auto-create destination folder. | |
# Can use path such as $HOME/Projects/my_project to shortcut. |
This file contains 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
mkdir -p [path_to_new_directory] && git archive master | tar -x -C [path_to_new_directory] |
NewerOlder