Skip to content

Instantly share code, notes, and snippets.

View Sanix-Darker's full-sized avatar
🐼
coding in the dark...

darker Sanix-Darker

🐼
coding in the dark...
View GitHub Profile
@Jspascal
Jspascal / mno.json
Last active June 12, 2024 10:02
mno_regex.json
{
"om_cmr": "/^6(5[5-9]|9|8[5-9])/",
"momo_cmr": "/^6(5[1-4]|7|8[1-4])/",
"momo_civ": "/^(05)/",
"om_civ": "/^(07)/",
"moov_civ": "/^(01)/",
"wave_civ": "/^(0[157])/",
"moov_ben": "/^(9[4589]|6[03458]|5[58])/",
"moov_tgo": "/^(9[6-9]|79)/",
"tmoney": "/^(70|9[0-3])/",
@Sanix-Darker
Sanix-Darker / .bash_aliases
Last active March 20, 2023 04:00
note: a simple command line for fast todo topic oriented
#!/bin/bash
# To take note about something really quickly
# Requirements : fzf and ag
#
# $ note topic note to my self... # will add a new note for the topic
# $ note topic # will seach for notes on this topic
# $ note # will list for you all notes taken globally
note(){
NOTES_DIR=$HOME/notes/
@al1076954
al1076954 / dynamic-manual-workflow.md
Last active April 27, 2024 13:12
Dynamic Manual Workflow

How to create a Dynamic Manual Workflow with Github Actions

Overview

GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub. Make code reviews, branch management, and issue triaging work the way you want.

Context

With all this feature, it's still missing some feature like making a request before a the workflow is created.

@samuelcolvin
samuelcolvin / insert_assert.py
Last active May 10, 2023 17:45
auto-generate assert statements in pytest
"""
License: MIT
Copyright (c) 2022 Samuel Colvin.
See https://twitter.com/adriangb01/status/1573708407479189505
## Usage
Once installed just add
@Sanix-Darker
Sanix-Darker / .gitconfig
Last active May 4, 2023 16:44
gitconfig stat add-intent squash
[user]
email = s4nixd@gmail.com
name = sanix-darker
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[core]
@demirdev
demirdev / currencies_country_flags.json
Last active April 14, 2022 17:03
Currency list with Country Flag
[
{
"name": "US Dollar",
"symbol": "$",
"symbolNative": "$",
"decimalDigits": 2,
"rounding": 0,
"code": "USD",
"namePlural": "US dollars",
"countryEmoji": "🇺🇸"
@Sanix-Darker
Sanix-Darker / gf.sh
Last active May 29, 2022 01:11
[SHELL] git finder
#!/bin/bash
# by d4rk3r
# A smart way to search for a code
# inside your git history whatever the branch you're
# -- Setup :
# -- After getting the bash script
# chmod +x /path/to/gf.sh
@fuadnafiz98
fuadnafiz98 / transparent.vim
Last active April 18, 2023 07:26
vim transparent background
" for transparent background
function! AdaptColorscheme()
highlight clear CursorLine
highlight Normal ctermbg=none
highlight LineNr ctermbg=none
highlight Folded ctermbg=none
highlight NonText ctermbg=none
highlight SpecialKey ctermbg=none
highlight VertSplit ctermbg=none
highlight SignColumn ctermbg=none
@Sanix-Darker
Sanix-Darker / redis.conf
Last active January 15, 2020 12:05
redisIT
{
"host": "127.0.0.1",
"port": 6379,
"db": 0,
"password": "",
"decode_responses": true
}
@Sanix-Darker
Sanix-Darker / Database.py
Last active February 1, 2020 14:19
Models-Python
from pymongo import MongoClient
from settings import *
class DATABASE:
def __init__(self, database_name):
# creation of MongoClient
client = MongoClient()
# Connect with the portnumber and host
client = MongoClient(DATABASE_HOST)