Skip to content

Instantly share code, notes, and snippets.

View NimaMX's full-sized avatar
:octocat:
Focusing

Nima Mohammadi NimaMX

:octocat:
Focusing
View GitHub Profile
FROM docker
COPY --from=docker/buildx-bin /buildx /usr/libexec/docker/cli-plugins/docker-buildx
RUN docker buildx version
#
# Base Image from Ubuntu 18.04
#
FROM docker.io/library/ubuntu:bionic-20210615.1
#
@NimaMX
NimaMX / Readme.md
Created May 28, 2022 23:24
Mount Wd Home on linux

To mount the wd home on ubuntu:

  1. use the command this download and install the mchfuse
curl -sSfL https://github.com/mnencia/mchfuse/raw/main/install.sh | sudo sh -s -- -b /usr/local/bin
  1. fill the mchfuse.conf with the correct credential and move it to /etc/

  2. add this line with the correct device name and mount point

@NimaMX
NimaMX / Guide.txt
Last active May 23, 2022 10:43
Vim Fidl Support
1. cp -rf fidl.vim ~/.vim/syntax/
2. mkdir ~/.vim/ftdetect
3. cp -rf ftdetect ~/.vim/ftdetect/fidl.vim
@NimaMX
NimaMX / CRC16Generator.cpp
Last active May 16, 2022 17:24
Url CRC16 Generator using lookup table (C++, Java)
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
/**
* CRC16 lookup table
*
* Since the polynomial is fixed (1 + x^2 + x^15 + x^16), to enhance
@NimaMX
NimaMX / .Xresources
Last active May 30, 2022 12:18
my terminal configuration (urxvt, tabbed, powerline font, i3, copy-paste)
Xft.dpi: 200
Xft.antialias: 1
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.autohint: true
Xft.lcdfilter: lcddefault
URxvt*buffered: true
URxvt*cursorBlink: true
URxvt*underlineColor: white
@NimaMX
NimaMX / 90-touchpad.conf
Last active June 8, 2022 21:51
My i3-wm (demu, i3status, brightnessctl, audio cotnrol)
Section "InputClass"
Identifier "touchpad"
MatchIsTouchpad "on"
Driver "libinput"
Option "Tapping" "on"
Option "TappingButtonMap" "lrm"
Option "NaturalScrolling" "on"
Option "ScrollMethod" "twofinger"
EndSection
@NimaMX
NimaMX / .vimrc
Last active May 3, 2024 14:56
My vim configuration (Airline + Powerline Font + NerdTree+ netrw)
set nocompatible
filetype indent plugin on
syn on
" vim vundle
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'ycm-core/YouCompleteMe'
Plugin 'VundleVim/Vundle.vim'