Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View vinitkumar's full-sized avatar
🪀
Focusing

Vinit Kumar vinitkumar

🪀
Focusing
View GitHub Profile

============================== title: How did i pulled it off

The task sound pretty simple, to find a unknown password that occurs only once in 1100 line password dump.Also each of these passwords are 30 letters long.

Here is how i went with this problems.

Here is the password dump (dump)[http://paste.ubuntu.com/115909/] First i sorted the dump and then got the uniq password and stored them in another text file.

def convert_none(
key: str, val: None, attr_type: bool, attr: Dict[str, Any] = {}, cdata: bool = False
) -> str:
"""Converts a null value into an XML element"""
LOG.info(f'Inside convert_none(): key="{str(key)}" val={type(val)}')
key, attr = make_valid_xml_name(key, attr)
if attr_type:
attr["type"] = get_xml_type(val)
attrstring = make_attrstring(attr)
{
"data": [
{
"name": "Mayank Rajgarhia",
"id": "618836"
},
{
"name": "Supreeti Chakrabarti",
"id": "500224099"
},
ber/libdecnumber.a
[gcc/build] clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
[gcc/build] clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
[gcc/build] Undefined symbols for architecture arm64:
[gcc/build] "_ZSTD_compress", referenced from:
[gcc/build] Undefined symbols for architecture arm64:
[gcc/build] "_ZSTD_compress", referenced from:
[gcc/build] lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
[gcc/build] lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
[gcc/build] "_ZSTD_compressBound", referenced from:
@vinitkumar
vinitkumar / architecture.md
Last active January 23, 2022 04:36
Pragmatic programmer checklists in form of Gists.

Architectural Questions

  • Are responsibilities well defined?
  • Are the collaborations well defined?
  • Is coupling minimized?
  • Can you identify potential duplication?
  • Are interface definitions and constraints acceptable?
  • Can modules access needed data—when needed?
mkdir -p build
cc -O3 -Wall -Werror -fpic -std=gnu99 -shared src/fzf.c -o build/libfzf.so
In file included from src/fzf.c:5:
/usr/local/include/stdlib.h:134:25: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
double atof(const char *);
^
/usr/local/include/stdlib.h:134:25: note: insert '_Nullable' if the pointer may be null
double atof(const char *);
^
_Nullable
@vinitkumar
vinitkumar / aws-lambda-static-type-checker.md
Created September 20, 2021 04:34 — forked from alexcasalboni/aws-lambda-static-type-checker.md
AWS Lambda Static Type Checker Example (Python3)

How to use Python3 Type Hints in AWS Lambda

TL;DR

Static Type Checkers help you find simple (but subtle) bugs in your Python code. Check out lambda_types.py and incrementally improve your code base and development/debugging experience with type hints.

Your Lambda Function code will go from this:

" antirez's .vimrc
" Copyright(C) 2001 Salvatore Sanfilippo
" Enable the syntax highlight mode if available
syntax sync fromstart
if has("syntax")
syntax sync fromstart
syntax on
set background=dark
let php_sync_method="0"

============================== title: How did i pulled it off

The task sound pretty simple, to find a unknown password that occurs only once in 1100 line password dump.Also each of these passwords are 30 letters long.

Here is how i went with this problems.

Here is the password dump (dump)[http://paste.ubuntu.com/115909/] First i sorted the dump and then got the uniq password and stored them in another text file.

function onFacebookLogin() {
"use strict";
var i, t;
localStorage.accessToken || chrome.tabs.getAllInWindow(null, function (e) {
for (i = 0; i < e.length; i += 1) if (e[i].url.indexOf(successURL) === 0) {
t = e[i].url.split("#")[1];
access = t.split("&")[0], console.log(access), localStorage.setItem("accessToken", access);
userToken = localStorage.getItem("accessToken");
if (userToken) {
tempToken = userToken.split("=")[1];