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
for iommu_group in $(find /sys/kernel/iommu_groups/ -maxdepth 1 -mindepth 1 -type d); do | |
echo "IOMMU group $(basename "$iommu_group")"; | |
for device in $(ls -1 "$iommu_group"/devices/); do echo -n $'\t'; lspci -nns "$device"; | |
done; | |
done |
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
input int SL = 150; //15 pip | |
void OnTradeTransaction(const MqlTradeTransaction &txs, const MqlTradeRequest &req, const MqlTradeResult &res) | |
{ | |
MqlTradeRequest rq={0}; | |
MqlTradeResult tr; | |
if (HistoryDealGetInteger(txs.deal, DEAL_ENTRY) == DEAL_ENTRY_IN) | |
{ | |
PositionSelect(txs.symbol); | |
rq.position = txs.order; |
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
[Ll]ibrary/ | |
[Tt]emp/ | |
[Oo]bj/ | |
[Bb]uild/ | |
[Bb]uilds/ | |
[Ll]ogs/ | |
# Uncomment this line if you wish to ignore the asset store tools plugin | |
# [Aa]ssets/AssetStoreTools* |
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.Drawing; | |
using System.Linq; | |
using System.Windows.Forms; | |
using Minesweeper.Properties; | |
namespace Minesweeper | |
{ | |
public partial class MinesweeperForm : Form |
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
c1="docker run -it --rm -d -p 3000:80 -v `pwd`:/usr/share/nginx/html nginx" | |
echo ${c1} | |
docker-machine ssh default "${c1}" |
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
version: '3' | |
services: | |
web: | |
container_name: nginx_image | |
image: nginx | |
volumes: | |
- .:/usr/share/nginx/html | |
ports: | |
- '3000:80' |
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
version: '3' | |
services: | |
db: | |
image: mysql:5.7 | |
restart: always | |
volumes: | |
- db_data:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: password |
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 express = require('express') | |
var bodyParser = require("body-parser"); | |
require('express-async-errors'); | |
var port = process.env.PORT || 3010 | |
const app = express() | |
app.use(bodyParser.urlencoded({ extended: false })); | |
app.use(bodyParser.json()); |
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
// ornek istatistik fonksiyonu diger scriptlerden cagrilacak | |
public void SendNewScore(int score, float time) | |
{ | |
// statlar dictionary olarak hazirlaniyor | |
var eventData = new Dictionary<string, object> { | |
{ "guid", Prefs.Guid}, | |
{ "guidsub", Prefs.GuidSub}, | |
{ "sessionid", _sessionId}, | |
{ "nick", Prefs.ServerNick }, |