Skip to content

Instantly share code, notes, and snippets.

View CypherpunkSamurai's full-sized avatar
😶
Currently Busy 🌻🐢

Cypherpunk Samurai CypherpunkSamurai

😶
Currently Busy 🌻🐢
View GitHub Profile
// from https://stackoverflow.com/questions/10798357/want-to-compile-native-android-binary-i-can-run-in-terminal-on-the-phone
/*
# create tool-chain - one line
# New method in ndk 12.
$NDK/build/tools/make_standalone_toolchain.py --arch arm --install-dir=/tmp/my-android-toolchain
# Old method.
#$NDK/build/tools/make-standalone-toolchain.sh --platform=android-3 --install-dir=/tmp/my-android-toolchain
# add to terminal PATH variable
export PATH=/tmp/my-android-toolchain/bin:$PATH
Butcher migas live-edge gentrify, pabst edison bulb pug. Edison bulb hot chicken iPhone, humblebrag slow-carb pitchfork hell of leggings umami viral. Paleo butcher kale chips kinfolk wolf offal. Flexitarian pour-over polaroid semiotics fam portland beard put a bird on it hoodie iceland bitters taxidermy direct trade master cleanse echo park. Wolf waistcoat mumblecore, pop-up helvetica sustainable leggings taiyaki sartorial. Seitan subway tile mustache marfa. Poke hell of vegan banh mi lomo bitters cred. Post-ironic yuccie cold-pressed, next level taiyaki wolf blog activated charcoal hella gochujang lumbersexual butcher kitsch banjo crucifix. Blog iPhone brunch chartreuse hell of taiyaki pabst chicharrones af taxidermy single-origin coffee umami selvage occupy. Green juice lyft franzen taxidermy. Yuccie quinoa pok pok banh mi. Truffaut scenester woke retro dreamcatcher venmo letterpress affogato celiac hot chicken portland. Hashtag irony chia, retro flannel glossier chambray crucifix single-origin coffee stree
For any HD CHANNEL http://sklktcdnems05.cdnsrv.jio.com/jiotv.live.cdn.jio.com/Channel_Name_HD/Channel_Name_HD_1200.m3u8
eg: http://sklktcdnems05.cdnsrv.jio.com/jiotv.live.cdn.jio.com/AXN_HD/AXN_HD_1200.m3u8
For SD Channels, http://sklktcdnems05.cdnsrv.jio.com/jiotv.live.cdn.jio.com/Channel_Name/Channel_Name_800.m3u8
eg: http://sklktcdnems05.cdnsrv.jio.com/jiotv.live.cdn.jio.com/Discovery/Discovery_800.m3u8
HAVE FUN WITH THE FREE STUFF...GOOD LUCK GUYS
@lsloan
lsloan / web_request_monitor_with_netcat_nc.md
Last active March 8, 2021 20:44 — forked from sloanlance/nc-netcat_web_request_monitor.md
BASH: Simple web request monitor using `nc` (AKA Netcat)

While working on a project that produces JSON and sends it to a server using an HTTP POST request, I found it sometimes inconvenient to start the server every time I needed it. Most of the time, unless I was working on the server code itself, I just wanted to see the raw request data. I learned that the nc utility (AKA Netcat) could do just that.

However, using nc the way others explained it didn't work well for my purposes. It turns out that it shouldn't be run in the background, as was suggested, and it should give a proper HTTP response to satisfy the client. I came up with this solution:

while [[ 1 ]]; do printf 'HTTP/1.1 200 OK\n\n' | nc -l localhost 8000; printf '\n\n= = = = = %s = = = = =\n\n' "$(date)"; done

It's helpful to run this in a shell in a separate window. As new requests are received, they will be seen scrolling up the display.

@JohannesMP
JohannesMP / ConvertBase.hpp
Last active September 14, 2022 02:14
Converting a number from one base to another in C++
// NOTE: For the sake of practice, STL/stdlib helpers are not used, just std::string for memory management.
#include <string>
using std::string;
// Convert arbitrary base to base 10
// - Input must be valid number in the given base
// - Base must be between 2 and 36
// - If input or base are invalid, returns 0
long ConvertTo10(const string& input, int base)
@fulldecent
fulldecent / travis-local.md
Created November 29, 2017 02:33
Run Travis build locally

travis-local.md

Preconditions:

  1. POSIX or Windows system
  2. Install Docker
  3. A GitHub repo that already builds on Travis

Postcondition:

@simongle
simongle / SettingupPGPandGit.md
Last active February 19, 2025 07:42
A guide for PGP and Git

Setting up PGP with Git

#PGP

If you are reading this, you have taken the first step towards encryption self-righteousness. The steps below are my preferred method for configuration after years of suffering through alternative, more archaic/byzantine steps.

Note, if you already have a PGP key, skip to step #4. Second note: I know UNIX best, so I’m not going to embarrass myself by attempting to write a windows guide. The good people over at EFF have your back: How to: Use PGP for Windows | Surveillance Self-Defense

[A point of clarification: PGP stands for pretty good privacy and is the original underlying protocol, GPG stands for Gnu Privacy Guard, and is an open source program that is compliant with PGP; the two acronyms are often used interchangeably.]

  1. Download your GPG client
@juliooa
juliooa / upload_image.py
Last active July 29, 2023 21:47
Python script to upload an image to Firebase storage through his url
#!/usr/bin/env python
import sys
import requests
import firebase_admin
from firebase_admin import credentials
from firebase_admin import storage
image_url = sys.argv[1] #we pass the url as an argument
cred = credentials.Certificate('path/to/certificate.json')
@wjdwndud0114
wjdwndud0114 / idastuff.txt
Last active August 5, 2024 17:14
so debugging on ida pro
Nexus 5 4.4.4
1. setup:
a. need to downgrade to 4.4.4, root
b. luckypactcher, GG, xposed
c. put libhook.so and android_server and libsubstrate.so in /data/local/tmp/ and install aadbg
d. patch with luckypatcher the middle 2
2. adb shell su -> android_server
3. adb forward tcp:23946 tcp: 23946
4. adb forward tcp:8700 jdwp:PID_OF_GAME
jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8700
@ssokolow
ssokolow / spelltextedit.py
Last active November 4, 2023 14:25
Spell-checked QPlainTextEdit for PyQt 5.x using PyEnchant
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""QPlainTextEdit With Inline Spell Check
Original PyQt4 Version:
https://nachtimwald.com/2009/08/22/qplaintextedit-with-in-line-spell-check/
Copyright 2009 John Schember
Copyright 2018 Stephan Sokolow