Skip to content

Instantly share code, notes, and snippets.

View 526avijitgupta's full-sized avatar
🏠
Working from home

Avijit Gupta 526avijitgupta

🏠
Working from home
View GitHub Profile
List of usernames for which the passwords got a hit:
14102015
14102017
14102024
14102025
14102036
14102044
14102046
14102057
List of usernames for which we got a hit:
14102015
14102017
14102024
14102025
14102036
14102044
14102046
14102057
@526avijitgupta
526avijitgupta / git-aliases.txt
Last active August 29, 2015 14:20
Useful oh-my-zsh git aliases
1. alias g='git'
2. alias gst='git status'
3. alias gss='git status -s'
4. alias gaa='git add -A' (has to be changed manually in `~/.oh-my-zsh/plugins/git/git.plugin.zsh`)
5. alias gau='git add -u' (has to be added manually in `~/.oh-my-zsh/plugins/git/git.plugin.zsh`)
6. alias gcmsg='git commit -m'
7. alias ggpull='git pull origin $(current_branch)'
8. alias ggpush='git push origin $(current_branch)'
@526avijitgupta
526avijitgupta / spacemacs-cheatsheet.md
Last active August 29, 2023 12:31
Spacemacs cheatsheet

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

NOTE: "M-m and SPC can be used interchangeably".

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l
@526avijitgupta
526avijitgupta / canvas.txt
Last active August 29, 2015 14:20
Canvas Web API - MDN
https://developer.mozilla.org/en-US/docs/Web/API
https://developer.mozilla.org/en-US/demos/tag/tech:css3
passphrase: 526avijit (import settings on any device using this passphrase)
Useful !bangs:
1. !a - Amazon
2. !w - Wikipedia
3. !g - Google
4. !q - Quora
5. !so - StackOverflow
6. !v - Youtube
7. !di - Dictionary (with pronunciation)
# MOZDEF run script
sudo invoke-rc.d rabbitmq-server start
sudo service elasticsearch start
sudo service nginx start
cd /opt/MozDef/loginput && sudo uwsgi --socket loginput.socket --wsgi-file index.py --buffer-size 32768 --master --listen 100 --uid root --pp /opt/MozDef/loginput --chmod-socket --logto /var/log/mozdef/uwsgi.loginput.log
cd /opt/MozDef/rest && sudo uwsgi --socket rest.socket --wsgi-file index.py --buffer-size 32768 --master --listen 100 --uid root --pp /opt/MozDef/rest --chmod-socket --logto /var/log/mozdef/uwsgi.rest.log
cd /opt/MozDef/mq && sudo uwsgi --socket /opt/MozDef/esworker.socket --mule=esworker.py --mule=esworker.py --buffer-size 32768 --master --listen 100 --uid root --pp /opt/MozDef/mq --stats 127.0.0.1:9192 --logto /var/log/mozdef/uwsgi.esworker.log --master-fifo /run/uwsgi/apps/esworker.fifo
cd /opt/MozDef/meteor && meteor run
cd /opt/MozDef/alerts && sudo celery -A celeryconfig worker --loglevel=info --beat
.attackercallout {
width: 120px;
height: 160px;
box-shadow: 0px 0px 12px rgba(0,255,255,0.5);
border: 1px solid rgba(127,255,255,0.25);
text-align: center;
cursor: default;
z-index: 99;
}
Works with bootstrap 2.x , not with bootstrap 3.x
<div class="container">
<div class="container-fluid attackercallout">
<div class="row-fluid">
<span class="id">Rank #1</span>
</div>
<div class="row-fluid">
<span class="id">Region</span>
$scope.$on('$ionicView.beforeEnter', function() {
elem = angular.element(document.querySelectorAll('ion-nav-bar ion-header-bar'));
elem.removeClass('bar-energized');
elem.addClass('bar-dark');
});