Skip to content

Instantly share code, notes, and snippets.

💭
looking for systems security / privacy research opportunities

Naman Gupta naman

💭
looking for systems security / privacy research opportunities
Block or report user

Report or block naman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mateobur
mateobur / generate-secure-rules.py
Last active Mar 28, 2019
Kube-system Kubernetes security with Sysdig Secure (Autogenerate Python script)
View generate-secure-rules.py
#!/usr/bin/python
import yaml
import sys
import collections
from collections import OrderedDict as OD
def dict_representer(dumper, data):
return dumper.represent_dict(data.iteritems())
@IntergalacticApps
IntergalacticApps / make_windows10_great_again.bat
Last active Nov 5, 2019
Make Windows 10 Great Again - stop Windows 10 spying!
View make_windows10_great_again.bat
@echo off
setlocal EnableDelayedExpansion
ver | find "10." > nul
if errorlevel 1 (
echo Your Windows version is not Windows 10... yet. Brace yourself, Windows 10 is coming^^!
pause
exit
)
@cpappen
cpappen / update-time.sh
Created Apr 18, 2016
update time in ubuntu 16.04
View update-time.sh
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
View Sublime Text 3 cheating.md

Ref: https://gist.github.com/vertexclique/9839383

Important Note

Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).

Common step after enter run the patch command:

  • After run the commands, start new Sublime Text app, go to Main Menu > Help > Enter License. On the popup type in any text (example "a") and click Use Licence .
@wbroek
wbroek / genymotionwithplay.txt
Last active Nov 6, 2019
Genymotion with Google Play Services for ARM
View genymotionwithplay.txt
NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
@wandernauta
wandernauta / sp
Last active Nov 18, 2019
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
View sp
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@dannvix
dannvix / nginx-non-transparent-ssl-proxy.md
Last active Oct 7, 2019
Guide to set up nginx as non-transparent SSL proxy, which subsitutes strings in the server responses
View nginx-non-transparent-ssl-proxy.md

Use nginx as Non-Transparent SSL Proxy

Introduction

Many mobile apps have back-end API servers. They usually rely on the API replies to determine whether certain information is supposed to be shown. If the API responses could be manipulated on the fly, we may easily fool an unmodified app to expose some private data.

This manual guides you to set up nginx as non-transparent SSL proxy, which just subsitutes strings in the server responses (i.e. man-in-the-middle attack ourself). For both server-side (their API servers) and client-side (your device), the whole process is almost transparent.

View README.md

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@kouroshshafi
kouroshshafi / profile_picture_django_social_auth
Created Jan 23, 2012
Extending User class to save profile picture in django-social-auth when registering
View profile_picture_django_social_auth
# This is models.py for a new user profile that you would like to create.
"""
this gist gets an id from django-social-auth and based on that saves the photo from social networks into your model. This is one of the best ways to extend User model because this way, you don't need to redefine a CustomUser as explained in the doc for django-social-auth. this is a new implementation based on https://gist.github.com/1248728
"""
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.db import models
You can’t perform that action at this time.