Skip to content

Instantly share code, notes, and snippets.

View engineerdawood's full-sized avatar

Muhammad Dawood engineerdawood

View GitHub Profile
@engineerdawood
engineerdawood / linux-usb-file-copy-fix.md
Created April 16, 2021 07:23 — forked from 2E0PGS/linux-usb-file-copy-fix.md
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

@engineerdawood
engineerdawood / .cpp
Created June 6, 2018 09:47
tictactoe game
#include <iostream> // ANAT - TIC TAC TOE - GAME // V1.7 Beta
#include <conio.h>
using namespace std;
char _cMatrix [3][3]= {'1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9'}; // ELEMENTS FOR GAME BOARD
char _cPlayer = 'X' ; // PLAYER TURN
int _iDraw=0;
void _fBoard(){ // BOARD SHAPE
system("cls");