Skip to content

Instantly share code, notes, and snippets.

View myas92's full-sized avatar

Mohammad Yaser Ahmadi myas92

View GitHub Profile

Convert .mp4 to .gif on ubuntu

1- Install ffmpeg : https://linuxhint.com/convert-video-to-gif-linux/

2- use the below command to create a git with small size

## size 800
ffmpeg -y -i 2.mp4 -filter_complex "fps=5,scale=800:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=32[p];[s1][p]paletteuse=dither=bayer" output.gif
iyasercoin:
Available
╔════════════════╀═══════════════╀═════════════════╀════════════════╀══════════════╀═══════════════╀═══════════════╀════════════════╀════════════════╀═════════════════╀══════════════╀═══════════════╀═══════════════╀════════════════╀═════════════════╀════════════════╀══════════════╀═══════════════╗
β•‘ iyasercoin.com β”‚ yasercoin.com β”‚ iyasercoins.com β”‚ yasercoins.com β”‚ yaserbit.com β”‚ iyaserbit.com β”‚ yasercoin.net β”‚ iyasercoin.net β”‚ yasercoins.net β”‚ iyasercoins.net β”‚ yaserbit.net β”‚ iyaserbit.net β”‚ yasercoin.org β”‚ iyasercoin.org β”‚ iyasercoins.org β”‚ yasercoins.org β”‚ yaserbit.org β”‚ iyaserbit.org β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
Unvailable
--------------------------------------------------------------------------------------------
developer:
Available
╔═══════════════════╀══════════════════════╀═════════════════════╀════════════════════╀═══════════════════╀══════════════════════╀═════════════════════╀════════════════════╗
β•‘ developerhair.com β”‚ developeroptions.com β”‚ developerbleach.com β”‚ compilerwriter.com β”‚ developerhair.net β”‚ developeroptions.net β”‚ developerbleach.net β”‚ compilerwriter.net β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
Unvailable
╔═══════════════╀═══════════════╗
β•‘ developer.com β”‚ developer.net β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
KING:
Available
╔═════════════╀═════════════╀══════════════╗
β•‘ kingvon.net β”‚ kingvon.org β”‚ kinghill.org β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
Unvailable
╔══════════╀══════════╀══════════╗
β•‘ king.com β”‚ king.net β”‚ king.org β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•
import { Controller, Get, Post, Body, Patch, Param, Delete, Res, HttpStatus, Header } from '@nestjs/common';
import { VideoService } from './video.service';
import { statSync, createReadStream } from 'fs';
import { Headers } from '@nestjs/common';
import { Response } from 'express';
@Controller('video')
export class VideoController {
constructor(private readonly videoService: VideoService) { }
@Get('stream/:id')
import { Injectable } from '@nestjs/common';
import { CreateVideoDto } from './dto/create-video.dto';
import { UpdateVideoDto } from './dto/update-video.dto';
const allVideos = [
{
id: 1,
name: "tom-and-jerry",
duration: '3 mins',
title: 'Tom & Jerry'
},
const express = require('express');
const app = express();
const fs = require('fs');
app.get('/', (req, res) => {
const { size } = fs.statSync('input.txt');
const readStreamfile = fs.createReadStream('input.txt', {
encoding: 'UTF-8',
start: 0,
end: size,
highWaterMark: 10
stages: # List of stages for jobs, and their order of execution
- build
- test
- deploy
build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- cd /home/user/projects/agent
- git pull
@myas92
myas92 / Git.md
Last active April 24, 2022 13:19

Git

don't use username and password

based on this tutoral : link

git config --global credential.helper 'cache --timeout 7200'

How to install docker

  • Docker's internal repos is not supported on 20.04 yet so
  • before installation
    • use a proxy or vpn sudo openconnect 986.9104.945.9196
  • sudo apt-get install -y docker.io based on stackoverflow answer
  • for getting images form dockerhub
  • add nameserver of shekan to /etc/resolve.conf -- (sudo /etc/resolve.conf)
    • nameserver 192.168.1.58
  • nameserver 192.168.1.100