Command Title | Command |
---|---|
Show list virtual machine | VBoxManage list vms |
Start the Guest VM in headless mode | VBoxManage startvm {uui} --type headless |
Show list active machine | VBoxManage list runningvms |
Get Ip Info machine | VBoxManage guestproperty get "Ubuntu16" "/VirtualBox/GuestInfo/Net/0/V4/IP" |
Shutdown/poweroff machine | VBoxManage controlvm {uui} poweroff |
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.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Security.Principal; | |
using System.Security.AccessControl; | |
using System.IO; | |
namespace RSSetDirPermissionsCS |
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
//Rextester.Program.Main is the entry point for your code. Don't change it. | |
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace Rextester | |
{ |
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.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Astra.PartOnline.Domain.Models | |
{ | |
public class ExcelData | |
{ |
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
//Rextester.Program.Main is the entry point for your code. Don't change it. | |
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Security.Cryptography; |
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 function getQuetesv2($ticker) | |
{ | |
$infoUrl='https://finance.google.com/finance?q=idx:'.$ticker.'&output=json'; | |
$contents = str_replace('//','',file_get_contents($infoUrl)); | |
$json = json_decode($contents, true); | |
if(!array_key_exists("results_type",$json)){ | |
$data=$json[0]; |
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
private string GetMD5Hash(string input) | |
{ | |
System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create(); | |
byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(input); | |
byte[] hash = md5.ComputeHash(inputBytes); | |
StringBuilder sb = new StringBuilder(); | |
for (int i = 0; i < hash.Length; i++) | |
{ | |
sb.Append(hash[i].ToString("x2")); | |
} |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string url = "nama=purwanto&pacar=cantik & sexy&mobil=subaru & ferari&rumah=besar & mewah&rejeki=lancar & barokah & manfaat&ortu=senang bahagia"; | |
Console.WriteLine("Text Asli\n{0}\n\nCount: {1} item\n",url,ParsingUrl(url).Count); | |
foreach (var item in ParsingUrl(url)) | |
{ | |
Console.WriteLine("{["+item.Key+"]:["+item.Value+"]}"); | |
} |
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.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace FANN | |
{ | |
public class FANN | |
{ |