$ docker
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
#!/bin/bash | |
CLIENT=teleport_7.3.3_amd64.deb | |
if ! hash teleport 2>/dev/null | |
then | |
wget https://get.gravitational.com/$CLIENT | |
sudo dpkg -i $CLIENT | |
fi | |
echo going to add a new new teleport node | |
AUTH_TOKEN=$1 | |
CA_PIN=$2 |
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 R = require('ramda'); | |
const filterFood = (food) => R.gt(food.amount, 0); | |
const cleaner = (day) => | |
R.map((item) => R.filter(filterFood, item.foods), day.meals); | |
const removeZeroAmounts = (diet) => { | |
const dietClone = R.clone(diet); | |
const cleanDays = R.map(cleaner, dietClone.days); | |
return { ...dietClone, days: cleanDays }; | |
}; |
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
winget install JanDeDobbeleer.OhMyPosh | |
Install-Module z -AllowClobber | |
Install-Module -Name PSReadLine -RequiredVersion 2.2.0-beta1 -AllowPrerelease | |
Install-Module -Name Terminal-Icons -Repository PSGallery |
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.9' | |
services: | |
metabase: | |
image: metabase/metabase:latest | |
container_name: metabase | |
hostname: metabase | |
ports: | |
- 127.0.0.1:3000:3000 | |
environment: | |
MB_DB_TYPE: postgres |
I hereby claim:
- I am moeinrahimi on github.
- I am moeinrahimi (https://keybase.io/moeinrahimi) on keybase.
- I have a public key ASDuEzxfiu5Fz5QK_b3NaylE6ga1oRbhPf7TvszbFGrWiAo
To claim this, I am signing this object:
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 React, { Component } from 'react'; | |
import Promise from 'bluebird'; | |
Promise.config({ | |
warnings: false | |
}); | |
import { | |
TextInput, | |
Button, | |
StyleSheet, |
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
{"lastUpload":"2020-06-23T15:21:31.893Z","extensionVersion":"v3.4.3"} |
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
function save(data,filename){ | |
if(!data) { | |
console.error('Console.save: No data') | |
return; | |
} | |
if(!filename) filename = 'console.json' | |
if(typeof data === "object"){ |
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 mobileNumber = '989407422058' | |
var checkMobile = mobileNumber.match(/0?9[0-9]{9}/i) | |
/* output | |
["9893510000", index: 0, input: "989351000000", groups: undefined] | |
*/ | |
// اعتبار سنجی کد ملی |
NewerOlder