Skip to content

Instantly share code, notes, and snippets.

@darelf
darelf / base64.cpp
Last active August 28, 2023 17:44
Base64 url encode/decode. C++ adapted from some old code by someone else...
#include <string>
#include <vector>
/*
Base64 translates 24 bits into 4 ASCII characters at a time. First,
3 8-bit bytes are treated as 4 6-bit groups. Those 4 groups are
translated into ASCII characters. That is, each 6-bit number is treated
as an index into the ASCII character array.
If the final set of bits is less 8 or 16 instead of 24, traditional base64
@Jinmo
Jinmo / jni_all.h
Created May 26, 2017 07:36
Useful when reversing JNI on IDA Pro
/*
* Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
@vedantroy
vedantroy / client.cpp
Last active April 8, 2024 22:26
A C++ Client That Sends Data Over TLS Using OpenSSL
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <resolv.h>
#include <netdb.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
//Not sure what headers are needed or not
//This code (theoretically) writes "Hello World, 123" to a socket over a secure TLS connection
@7aman
7aman / background.js
Last active December 15, 2022 17:29 — forked from danharper/background.js
Bare minimum Firefox extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
browser.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
browser.tabs.executeScript(tab.id, {
file: 'inject.js'
});
});
@rishubil
rishubil / guide.md
Last active March 20, 2024 04:22
SCE-TTS: 내 목소리로 TTS 만들기

📗 문서 주소가 https://sce-tts.github.io/ 으로 변경되었습니다.

SCE-TTS와 관련한 최신 정보는 위 주소를 참고해주세요!