Skip to content

Instantly share code, notes, and snippets.

View HoussemNasri's full-sized avatar

Houssem Nasri HoussemNasri

  • NeoXam
  • Tunis, Tunisia
View GitHub Profile

Replace this with the number of the ADR

nav_order: 1

Keep this

parent: Decision Records

These are optional elements. Feel free to remove any of them.

status: proposed

date: 2023-06-01

@HoussemNasri
HoussemNasri / Windows Defender Exclusions for Developer.ps1
Created August 10, 2022 18:43 — forked from nerzhulart/Windows Defender Exclusions for Developer.ps1
Adds Windows Defender exclusions for developers (Visual Studio, JetBrains Rider, IntellIJ Idea, Git, MsBuild, dotnet, mono etc.)
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null
@HoussemNasri
HoussemNasri / git-commit-title-first-word.md
Created January 31, 2022 17:15 — forked from scmx/git-commit-title-first-word.md
Example list of verbs / first word to use in git commit title #git #commit #title

Example list of first words to use in a git commit title

I like writing well-formed git commits that explain the intention behind why a code change was made.

Check out Chris Beams excellent How to Write a Git Commit Message if you haven't read it.

Anyway, for a project I've been working on I've gathered up 900+ commits that hold up a pretty high quality (except for one 😁). Let's look at some trends about these commits!

Most common first words in commit titles of a project

Ignore tracked file in git

  1. Add folder/** to .gitignore
  2. Run in the terminal git rm -r --cached folder
  3. Commit and Push

Include Ignored file

  1. Remove file from .gitignore
  2. Run in the terminal git rm -r --cached folder
  3. Run in the terminal git add file
  4. Commit and Push
@HoussemNasri
HoussemNasri / syntax.s
Created June 26, 2021 23:34 — forked from mishurov/syntax.s
AT&T assembly syntax and IA-32 instructions
# --------
# Hardware
# --------
# Opcode - operational code
# Assebly mnemonic - abbreviation for an operation
# Instruction Code Format (IA-32)
# - Optional instruction prefix
# - Operational code
@HoussemNasri
HoussemNasri / BalsamiqForever.py
Last active May 8, 2024 04:03
Extend your trial period for Balsamiq Wireframes on Windows and macOS Forever!
import json
import os
import time
import webbrowser
import sys
import re
def handleWindows(extra_seconds):
print("OS : Windows")
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
import java.util.List;
import java.util.ArrayList;
import java.util.*;
class Main {
public static void reversePhrase(String s) {
}
@HoussemNasri
HoussemNasri / AudioDataSource.kt
Last active May 26, 2020 14:27
Android : fetch all music on device
import android.content.Context
import android.database.Cursor
import android.provider.MediaStore
import android.util.Log
class AudioDataSource {
companion object {
fun getAllAudioFromDevice(context: Context): List<AudioModel> {
val tempAudioList: MutableList<AudioModel> = ArrayList()