Skip to content

Instantly share code, notes, and snippets.

View zymawy's full-sized avatar
🐛
Debugging

Hamza Ironside zymawy

🐛
Debugging
View GitHub Profile
@data4sci
data4sci / ray-ban-meta-vpn.md
Last active October 26, 2025 11:54
Ray-Ban-Meta

How to Activate the Ray-Ban Meta Smart Glasses Outside the US or Canada

A comprehensive guide to setting up a secure VPN tunnel to a VPS in the cloud in the US or Canada to activate the full feature set of the Meta Ray-Ban smart glasses.

Disclaimer

This guide is not intended to violate Meta’s terms of service. If you do not meet their geographic requirements, please follow the applicable rules. The instructions here can be used for those who are genuinely eligible (e.g., U.S. or Canadian residents temporarily abroad) or for educational purposes to understand how VPNs work.

Introduction

@giovannicocco
giovannicocco / encrypt_response.py
Last active December 28, 2025 00:16
WhatsApp Flow (Encrypt response)
from base64 import b64decode, b64encode
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
import json
def flip_iv(iv):
flipped_bytes = []
for byte in iv:
flipped_byte = byte ^ 0xFF
flipped_bytes.append(flipped_byte)
return bytes(flipped_bytes)
@mpociot
mpociot / CanBeReplicated.php
Created June 12, 2019 12:32
Add the ability to replicate Laravel models to other models.
<?php
use Illuminate\Support\Arr;
trait CanBeReplicated
{
public function replicateTo(string $model, array $with = null, array $except = null)
{
$defaults = [
$this->getKeyName(),

We can see we have php 7.0 available out of the box:

sudo apt-cache show php-cli

Instead of using that, we'll start by installing the latest PHP 7.1, via the populate PHP repository.

@berkedel
berkedel / flow-error-icu4c-not-loaded.md
Created April 4, 2018 14:13
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

How to solve dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

brew uninstall --ignore-dependencies node icu4c
brew install node
@paulredmond
paulredmond / UsersIndex.vue
Last active April 20, 2020 16:04
UsersIndex component for use with vue-router - https://laravel-news.com/building-vue-spa-laravel-part-3
<template>
<div class="users">
<div v-if="error" class="error">
<p>{{ error }}</p>
</div>
<ul v-if="users">
<li v-for="{ id, name, email } in users">
<strong>Name:</strong> {{ name }},
<strong>Email:</strong> {{ email }}
@ivanvermeyen
ivanvermeyen / !NOTE.md
Last active March 15, 2023 05:25
Setup a Laravel Storage driver with Google Drive API
@abhi9bakshi
abhi9bakshi / laravel_setup_ubuntu_1610.md
Last active October 7, 2018 12:06
How to install Laravel in Ubuntu 16.10

How to install Laravel in Ubuntu 16.10

===================================

Open your terminal using Ctrl+Alt+T and type the following commands

##Step 1: Update & Upgrade

sudo apt-get update
sudo apt-get upgrade
<?php
///////////////////////////////////////////////////
// STEP 1 - CREATE CLASS THAT WILL BE USED GLOBALY
///////////////////////////////////////////////////
namespace App\MyApp;
class MyApp {
public function sayHello($data = [])
{
echo "Hello World from Facade!";
}
@JeffreyWay
JeffreyWay / PjaxMiddleware.php
Last active November 6, 2024 14:26
Laravel middleware for working with pjax.
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\DomCrawler\Crawler;
class PjaxMiddleware