Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am superzadeh on github.
  • I am superzadeh (https://keybase.io/superzadeh) on keybase.
  • I have a public key ASD1Fe06XKbPNQkEtSFMgLEjwoOejqAJhfh9_z8oLMo-ewo

To claim this, I am signing this object:

@superzadeh
superzadeh / backend-Dockerfile
Last active June 12, 2018 16:55
Debug config VSCode
FROM node:carbon-slim
EXPOSE 9228
WORKDIR /app
# Install packages
ADD ./package.json ./yarn.lock /app/
RUN cd /app && yarn install
@superzadeh
superzadeh / ctf4.md
Last active February 10, 2017 09:49
CTF4 solution #tags: hacking, ctf4, lab, ceh

CTF4 solution

Scan the subnetwork

nmap -sn 10.10.10.0/24

Perform a full scan on the target

nmap -A 10.10.10.2
[user]
name = Charles Ahmadzadeh
email = superzadeh@outlook.com
[push]
default = current
[core]
editor = code --wait
[alias]
ll = log --pretty=format:'%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn]' --decorate --numstat
ls = log --pretty=format:'%C(yellow)%h%Cred%d\\\\ %Creset%s%Cblue\\\\ [%cn] - %Cgreen%ad' --decorate --date=short
#!/bin/bash
cd /home/chip/roms
folderpath=$(ls)
system=$(eval zenity --list --column System $folderpath --width=480 --height=272)
if [ "$?" -eq 1 ]; then
echo "Cancelled."
@superzadeh
superzadeh / demystify javascript.md
Last active October 3, 2017 08:55
demystify javascript for C# developpers #tags: javascript, training

JavaScript demystified

Below are "my words", as I understand them. They are by no mean a reference, but my hope is that they can somehow help you understand some key elements of the JavaScript language.

For far more detailed and accurate explanations, refer to Kyle Simpson's series "You don't know JS yet".

Understanding "==="

A strongly weakly typed language

@superzadeh
superzadeh / iisexpress-gulp.js
Last active February 10, 2017 09:49
Start IIS Express using gulp #tags: gulp, snippet
gulp.task('iisxpress', function () {
var startDir = process.cwd();
var iisExpressPath = process.env['ProgramFiles(x86)'] + "\\IIS Express";
var cmd = 'iisexpress /port:3005 /path:' + startDir;
util.log('Starting iisexpress with command: ' + cmd);
gulp.src('')
.pipe(shell([cmd], {
cwd: iisExpressPath,
quiet: true
@superzadeh
superzadeh / arrange act assert
Last active February 14, 2017 13:34
Resharper templates #tags: template, resharper, c#, snippets
// Arrange
// Act
// Assert
cd /tmp
wget https://dl.influxdata.com/influxdb/releases/influxdb_0.13.0_amd64.deb
sudo dpkg -i influxdb_0.13.0_amd64.deb
# Start the service
sudo service influxdb start
wget https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.0-1468321182_amd64.deb
# Fix for upstart on Ubuntu on Windows 10