Skip to content

Instantly share code, notes, and snippets.

View kousherAlam's full-sized avatar
💭
I may be slow to respond..

Kousher alam kousherAlam

💭
I may be slow to respond..
View GitHub Profile
@kousherAlam
kousherAlam / aws_force_mfa.json
Created November 27, 2021 14:50
force aws iam account to use mfa
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowViewAccountInfo",
"Effect": "Allow",
"Action": [
"iam:GetAccountPasswordPolicy",
"iam:GetAccountSummary",
"iam:ListVirtualMFADevices",
@kousherAlam
kousherAlam / robo3t-ubuntu-installation.md
Last active May 19, 2025 19:29
Install robo3t on ubuntu

This document copied from https://gist.github.com/abdallahokasha/37911a64ad289487387e2d1a144604ae here.

Install Robo3t On Ubuntu 18.04

Download the package form Robo3t or using wget
@kousherAlam
kousherAlam / ubuntu-desktop-entry.md
Last active December 18, 2021 06:37
Creating desktop entry on ubuntu

Creating desktop entry

$ touch /usr/share/applications/robomongo.desktop

Edit

$ vim /usr/share/applications/robomongo.desktop
function check(numbers:number[], value: number): number[] {
const needMap:any = {};
const result: number[] = [];
let round = 0;
numbers.every((n, index) => {
round ++;
if(needMap[n] > -1) {
result.push(...[numbers[needMap[n]], n]);