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 | |
| terraform_upgrade() { | |
| OS_NAME="darwin" | |
| if [[ "$OSTYPE" == "linux"* ]]; then | |
| OS_NAME="linux" | |
| fi | |
| TEMP_PATH="/tmp" |
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
| # find apache config file location | |
| apache2 -V | grep 'HTTPD_ROOT\|SERVER_CONFIG_FILE' | |
| # list top level global npm packages | |
| npm -g ls --depth=0 | |
| # remove long path folder | |
| rmdir node_modules /s /q | |
| # windows: switch cmdline to run as Admin |
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
| import path from 'path' | |
| const flatten = function(destFolder) { | |
| return function(file) { | |
| file.path = file.base + path.basename(file.path) | |
| return destFolder | |
| } | |
| } | |
| //usage |
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
| using System; | |
| using System.IO; | |
| namespace rename | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var subfolderName = args?.Length > 0 ? args[0] : Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().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
| [user] | |
| email = [email]@gmail.com | |
| name = slava pocheptsov | |
| [push] | |
| default = simple | |
| [core] | |
| symlinks = false | |
| [color] | |
| diff = auto | |
| status = auto |
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
| using System; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Text.RegularExpressions; | |
| using System.Threading.Tasks; | |
| using Xunit; | |
| namespace TestsRunner | |
| { | |
| public class Program |
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
| # optionally create plugins directory | |
| mkdir $HOME/.bazaar/plugins | |
| # clone plugin repository | |
| cd $HOME/.bazaar/plugins | |
| bzr branch lp:bzr-fastimport fastimport | |
| # clone dependency repo | |
| bzr branch lp:python-fastimport python_fastimport | |
| python setup.py install |
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 RegisterSoapExtension(Type type, int priority, PriorityGroup group) | |
| { | |
| if (!type.IsSubclassOf(typeof(SoapExtension))) | |
| { | |
| throw new ArgumentException("Type must be derived from SoapException.", nameof(type)); | |
| } | |
| if (priority < 1) | |
| { | |
| throw new ArgumentOutOfRangeException(nameof(priority), priority, "Priority must be greater or equal to 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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Net.Http.Headers; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace HelloWorldRekognition |
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
| //#r "System.Data" | |
| //uncomment previous lines to debug in VS | |
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| using System.Data; | |
| using System.Data.SqlClient; | |
| using System.Linq; |