Skip to content

Instantly share code, notes, and snippets.

View maynalysa's full-sized avatar

mayane ndoumbe mbow maynalysa

View GitHub Profile
@vitorfs
vitorfs / forms.py
Created September 25, 2017 15:08
cloudflare-like sign up
from django import forms
from django.contrib.auth.models import User
class SignUpForm(forms.ModelForm):
username = models.CharField(
widget=forms.EmailInput(),
label='Email address',
required=True,
max_length=150
)
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active April 30, 2024 23:36
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@jschomay
jschomay / bash prompt
Last active January 26, 2020 17:42
my bash prompt(heavily borrowed)
# PS1='\[\e[1;92m\]\h: \W\$\[\e[0m\] '
# colorize stuff
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
# highlight $HOST:$PWD prompt
# PS1='\[\e[1m\]\h:\W\$\[\e[0m\] '
#PS1="\[\033[35m\]\t\[\033[m\]-\[\033[36m\]\u:\[\033[33;1m\]\W\[\033[m\]\$ "