Command | Description |
---|---|
man <tool> |
Opens man pages for the specified tool. |
<tool> -h |
Prints the help page of the tool. |
apropos <keyword> |
Searches through man pages' descriptions for instances of a given keyword. |
cat |
Concatenate and print files. |
whoami |
Displays current username. |
id |
Returns users identity. |
hostname |
Sets or prints the name of the current host system. |
uname |
Prints operating system name. |
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
# Define the user agent string | |
$UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0" | |
# Define the list of all months | |
$allMonths = @("january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december") | |
function Get-CompassWebPage { | |
param ( | |
[Parameter(Mandatory = $true)] | |
[string]$Uri, |
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 socket | |
# https://ws1.dtn.com/IQ/Guide/ | |
def read_historical_data_socket(sock, recv_buffer=4096): | |
""" | |
Read the information from the socket, in a buffered | |
fashion, receiving only 4096 bytes at a time. |
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
{"schemaVersion":1,"label":"Unit Test Coverage","message":"22.79%","color":"brightgreen"} |
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; | |
namespace Bi5Translator | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var bytes = new byte[]{ 0,29,177,144,0,0,48,57,0,0,48,58,63,147,51,51,64,19,51,51}; |
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.IO; | |
using System.Runtime.CompilerServices; | |
namespace Bi5.Net.Utils | |
{ | |
public static class LzmaCompressor | |
{ | |
/// <summary> | |
/// Decompresses compressed file on given path |
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.IO; | |
using System.Net; | |
using System.Text.Json; | |
using System.Threading; | |
namespace OandaStreamingConsole | |
{ | |
class Program | |
{ |
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
#include <iostream> | |
#include <csignal> | |
#ifdef _WIN32 | |
#include <Windows.h> | |
#else | |
#include <unistd.h> | |
#endif | |
using namespace std; |
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
# install stubs first | |
# pip install quantconnect-stubs | |
from QuantConnect import * | |
from QuantConnect.Parameters import * | |
from QuantConnect.Benchmarks import * | |
from QuantConnect.Brokerages import * | |
from QuantConnect.Util import * | |
from QuantConnect.Interfaces import * | |
from QuantConnect.Algorithm import * | |
from QuantConnect.Algorithm.Framework import * |
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
#property strict | |
#include <mt4R.mqh> | |
extern string R_command = "D:\Program Files\R\R-3.3.1\bin\i386\Rterm.exe --no-save"; | |
extern int R_debuglevel = 2; | |
int rhandle; | |
int OnInit() |
NewerOlder