Skip to content

Instantly share code, notes, and snippets.

View arm64x's full-sized avatar

Lê Tí arm64x

View GitHub Profile
@arm64x
arm64x / openssl_encrypt_decrypt.php
Created October 7, 2023 06:30 — forked from joashp/openssl_encrypt_decrypt.php
Simple PHP encrypt and decrypt using OpenSSL
<?php
/**
* simple method to encrypt or decrypt a plain text string
* initialization vector(IV) has to be the same when encrypting and decrypting
*
* @param string $action: can be 'encrypt' or 'decrypt'
* @param string $string: string to encrypt or decrypt
*
* @return string
*/
@arm64x
arm64x / squid_proxy_tutorial.md
Created December 7, 2022 12:06 — forked from jackblk/squid_proxy_tutorial.md
Tutorial on how to setup a squid proxy with authentication.

Note

This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.

Install squid & update

sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
@arm64x
arm64x / FixTwitterKeychain.m
Created June 17, 2022 14:47 — forked from BandarHL/FixTwitterKeychain.m
Fix Twitter Login for non-JB (IPA)
%hook TFSKeychain
- (NSString *)providerDefaultAccessGroup {
NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys:
(__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass,
@"bundleSeedID", kSecAttrAccount,
@"", kSecAttrService,
(id)kCFBooleanTrue, kSecReturnAttributes,
nil];
CFDictionaryRef result = nil;
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
@arm64x
arm64x / fixYouTubeLogin.m
Created June 17, 2022 14:46 — forked from BandarHL/fixYouTubeLogin.m
This solution working only in main bundle com.google.ios.youtube
%hook SSOKeychain
+ (id)accessGroup {
NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys:
(__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass,
@"bundleSeedID", kSecAttrAccount,
@"", kSecAttrService,
(id)kCFBooleanTrue, kSecReturnAttributes,
nil];
CFDictionaryRef result = nil;
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);