-
Open Conemu
-
Open Settings -> Tasks or go to new tab button -> Setup tasks.
-
Click
+
to add a new task -
Enter the name as
Git Bash
or whatever you like -
Task parameters:
/icon "C:\Program Files (x86)\Git\etc\git.ico" /dir "C:\_git"
-
Command:
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 a sum method which will work properly when invoked using either syntax below. | |
console.log(sum(2,3)); // Outputs 5 | |
console.log(sum(2)(3)); // Outputs 5 |
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
// given the following data object, write functions that returns: | |
// 1- All professors | |
// 2- All students | |
// 3- Name of students with gpa higher than 3.1 | |
// 4- A function that takes the prof. id and return all of his courses by name | |
var data = { | |
"users": [{ | |
"id": "001", | |
"name": "Prof. Alaa Ahmed", |
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
// The following recursive code will cause a stack overflow if the | |
// array list is too large. | |
// How can you fix this and still retain the recursive pattern? | |
var list = readHugeList(); | |
var nextListItem = function() { | |
var item = list.pop(); | |
if (item) { |
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
// Fix the following program to show the correct game name | |
var userId; | |
(function initialize(){ | |
function generateUserName(n) { | |
return (((Math.sin(n) * 1000) - Math.floor((Math.sin(n) * 1000))) * 1000).toFixed(0); | |
} | |
var userKey = 2222222222; | |
userId = name = generateUserName(userKey); | |
})(); |
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
// knockout 2.2.1 | |
ko.utils.arrayFilter = function (array, predicate) { /* .. */ } | |
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ } | |
ko.utils.arrayForEach = function (array, action) { /* .. */ } | |
ko.utils.arrayGetDistinctValues = function (array) { /* .. */ } |
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 LiteDB; | |
namespace LiteDB.Extensions { | |
public static class LiteCollectionX { | |
/// <summary> | |
/// Upserts the specified value. | |
/// </summary> | |
/// <typeparam name="T"></typeparam> | |
/// <param name="collection">The collection within which to upsert the <paramref name="value"/>.</param> |
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
http://api.aladhan.com/timingsByCity?city=Cairo&country=EG&method=5 |
This guide will demonstrate the steps required to encrypt and decrypt files using OpenSSL on Mac OS X. The working assumption is that by demonstrating how to encrypt a file with your own public key, you'll also be able to encrypt a file you plan to send to somebody else using their private key, though you may wish to use this approach to keep archived data safe from prying eyes.
Assuming you've already done the setup described later in this document, that id_rsa.pub.pcks8 is the public key you want to use, that id_rsa is the private key the recipient will use, and secret.txt is the data you want to transmit…
$ openssl rand 192 -out key
$ openssl aes-256-cbc -in secret.txt -out secret.txt.enc -pass file:key
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
OlderNewer