Skip to content

Instantly share code, notes, and snippets.

View architjn's full-sized avatar
🎯
Focusing

Archit Jain architjn

🎯
Focusing
View GitHub Profile
[
{
"url": "http://doesNotExist.boldtech.co",
"priority": 1
},
{
"url": "http://boldtech.co",
"priority": 7
},
{
<html> <head> <title></title> </head> <body> <div dir=\"ltr\"> <div class=\"gmail_quote\"> <div dir=\"ltr\"> <div class=\"gmail_quote\">&nbsp; <div> <div id=\"m_2848591953723454914m_-7329556301286512649body_style\" style=\"margin-top:10px\"> <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"m_2848591953723454914m_-7329556301286512649table\" width=\"602\"> <tbody> <tr> <td style=\"border:10px solid #25537b; font-family:Arial; padding: 16px;\"> <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%!important\" width=\"100%\"> <tbody> <tr> <td valign=\"top\"> <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%!important; \" > <tbody> <tr> <td valign=\"top\" width=\"3%\">&nbsp;</td> <td valign=\"top\" width=\"94%\"> <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%!important\" width=\"100%\"> <tbody> <tr> <center><img src=\"http://169.61.12.124/threatcop_logo.png\"></center> </tr> <tr> <td style=\"color:#18517F; fon
@architjn
architjn / .gitconfig
Created March 5, 2019 06:42
git delete local branches
[alias]
# Delete all local branches but master and the current one, only if they are fully merged with master.
br-delete-useless = "!f(){\
git branch | grep -v "master" | grep -v ^* | xargs git branch -d;\
}; f"
# Delete all local branches but master and the current one.
br-delete-useless-force = "!f(){\
git branch | grep -v "master" | grep -v ^* | xargs git branch -D;\
}; f"
@architjn
architjn / ip.js
Created February 13, 2019 12:55
Get local ip
function getIPs(callback){
var ip_dups = {};
//compatibility for firefox and chrome
var RTCPeerConnection = window.RTCPeerConnection
|| window.mozRTCPeerConnection
|| window.webkitRTCPeerConnection;
var useWebKit = !!window.webkitRTCPeerConnection;
server {
listen 800;
server_name dashboard;
location / {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
function make_base_auth(user, password) {
var tok = user + ':' + password;
var hash = btoa(tok);
return "Basic " + hash;
}
$.ajax({
url: "https://haveibeenpwned.com/api/v2/breachedaccount/" + data.email,
method: "GET",
dataType: "json",
package com.viztushar.myaccessibility;
import android.accessibilityservice.AccessibilityService;
import android.accessibilityservice.AccessibilityServiceInfo;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.os.Build;
[
{
"id": "0001",
"type": "donut",
"name": "Cake",
"ppu": 0.55,
"batters":
{
"batter":
[
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="false">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
@architjn
architjn / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;