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
docker swarm join --token SWMTKN-1-00g6i4vsi18mw3o1fmmtnvolgoofjgdommssqknhjysw1mztux-2thgkwk3m4zr7f5my3i17yf6w 192.168.0.130:2377 |
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
$socket = new-object System.Net.Sockets.TcpListener('127.0.0.1', 413); | |
if($socket -eq $null){ | |
exit 1 | |
} | |
$socket.start() | |
$client = $socket.AcceptTcpClient() | |
write-output "[*] Connection!" |
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
declare @TableName sysname = 'Person' | |
declare @Result varchar(max) = 'public class ' + @TableName + ' | |
{' | |
select @Result = @Result + ' | |
public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; } | |
' | |
from | |
( | |
select |
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
RESTORE DATABASE aptify WITH RECOVERY; |
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.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace WebsiteChecker | |
{ |
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
//This is a java program to search an element using Fibonacci search | |
import java.util.Scanner; | |
public class Fibonacci_Search | |
{ | |
static int kk = -1, nn = -1; | |
static int fib[] = { 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, | |
377, 610, 98, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, | |
75025, 121393, 196418, 317811, 514229, 832040, 1346269, 2178309, | |
3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986, |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Euro2016RepublicOfIrelandGroups | |
{ | |
// 4 teams in a group | |
class Group |
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
((ITakesScreenshot)_driver).GetScreenshot().SaveAsFile("Sscreenshot.jpg", ImageFormat.Jpeg); |
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
-- Get Page ID of a Page Folders Page. | |
SELECT | |
pkID | |
FROM | |
tblPage | |
WHERE ExternalFolderID = <somepageid> |
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
var urls = document.DocumentNode.Descendants("img") | |
.Select(e => e.GetAttributeValue("src", null)) | |
.Where(s => !String.IsNullOrEmpty(s)); |
NewerOlder