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
doskey my-alias=my-app.exe $* | |
# doskey only works within the current session | |
# alternative is to make a bat file | |
"C:\Program Files\Microsoft SQL Server\120\Tools\Binn\SqlLocalDB.exe" %* | |
# %* means all arguments |
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
let {Router, Route, Link, browserHistory, IndexRoute } = ReactRouter; | |
class HomePage extends React.Component<any,any> { | |
render(){ | |
return <h1>Home</h1> | |
} | |
} | |
class AboutPage extends React.Component<any,any> { | |
render(){ |
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
using System; | |
using System.Linq; | |
using System.Reflection; | |
using MediatR; | |
using Microsoft.Practices.Unity; | |
namespace Project.Infrastructure | |
{ | |
public static class UnityConfiguration | |
{ |
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
Write-Output ([string]::Join("|", $args)) |
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
# Nginx | |
sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/example.com | |
sudo nginx -t | |
sudo service nginx restart | |
# MySQL | |
sudo mysql --user=myuser --password=mypassword mydb | |
# Find bash shell | |
echo $SHELL |
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
using System; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
MainAsync(args).GetAwaiter().GetResult(); |
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
SELECT * | |
FROM my_table | |
INTO OUTFILE '/var/lib/mysql-files/myfile.csv' | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
LINES TERMINATED BY '\n'; |
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
const {watch} = require("fs"); | |
const {exec} = require("child_process"); | |
watch("myFolder/myFile.ascx", (eventType,fileName) => { | |
if(eventType == "change"){ | |
console.log("myFile.ascx changed"); | |
exec('xcopy "Some Folder\\myFile.ascx" "Other Folder\\" /Y', () => { | |
console.log("File copied"); | |
}); | |
} |
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
import Html exposing (Html, div, text, program) | |
type alias Model = | |
String | |
init : ( Model, Cmd Msg ) | |
init = | |
( "Hello", Cmd.none ) | |
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
import Dict exposing (Dict) | |
type Page | |
= NotFound | |
| LeaderBoardPage | |
| LoginPage | |
| RunnerPage | |
routes : Dict String Page | |
routes = |