Skip to content

Instantly share code, notes, and snippets.

@ashbuilds
ashbuilds / server.ts
Last active May 30, 2024 14:38
Implementing GraphQL Subscriptions with Websockets in a Bun Server using graphql-yoga
import Bun from 'bun'
import { createYoga, YogaInitialContext, YogaServerInstance } from 'graphql-yoga'
import { makeHandler } from "graphql-ws/lib/use/bun";
import { ExecutionArgs } from "@envelop/types";
import { schema } from './graphql/schema';
interface IUserContext {
token?: string;
}
@SAFAD
SAFAD / unlike_all_pages_facebook.md
Created February 24, 2022 20:57
How to unlike all Facebook page at once

Unlike all facebook pages 2022

Go to: https://m.facebook.com/pages/launchpoint/liked_pages

Paste the following script into console (F12 -> console):

var unlike_all = ()=> {
	[].slice.call(document.querySelectorAll('[data-sigil="action-title"')).filter(x=>x.innerText.indexOf('Unlike') !=-1).map(x=>{x.click()});
	window.scrollTo(0,document.body.scrollHeight);
	window.setTimeout(unlike_all, 3 * 1000)
@developius
developius / README.md
Last active May 23, 2022 09:37
React Native + Ruby on Rails + AWS S3 Presigned PUT
@ErxrilOwl
ErxrilOwl / laraws_nginx.md
Last active May 31, 2024 15:46
Deploy Laravel on AWS EC2 Ubuntu (nginx)
@hofmannsven
hofmannsven / .env.github
Last active May 30, 2024 19:16
Notes on working with GitHub Actions and Laravel Nova.
APP_ENV=ci
APP_KEY=
APP_DEBUG=true
APP_URL=https://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=33306
@wmcmurray
wmcmurray / BasicCustomShader.js
Last active June 22, 2024 17:34
A basic example of a ThreeJS (r108) ShaderMaterial with shadows, fog and dithering support.
import { mergeUniforms } from 'three/src/renderers/shaders/UniformsUtils.js'
import { UniformsLib } from 'three/src/renderers/shaders/UniformsLib.js'
export default {
uniforms: mergeUniforms([
UniformsLib.lights,
UniformsLib.fog,
]),
@warlock
warlock / app.json
Created June 20, 2019 13:25
App.json Expo Example Android And iOS permission examples
{
"expo": {
"name": "appname",
"slug": "appslug",
"privacy": "unlisted",
"sdkVersion": "32.0.0",
"platforms": [ "ios", "android" ],
"version": "2.0.36",
"orientation": "portrait",
"icon": "./assets/icon.png",
@akabe1
akabe1 / frida_multiple_unpinning.js
Last active July 17, 2024 10:55
Another Android ssl certificate pinning bypass for various methods
/* Android ssl certificate pinning bypass script for various methods
by Maurizio Siddu
Run with:
frida -U -f <APP_ID> -l frida_multiple_unpinning.js [--no-pause]
*/
setTimeout(function() {
Java.perform(function() {
console.log('');
@kylefox
kylefox / 001_add_record_uuid_to_active_storage_attachments.rb
Last active January 12, 2022 21:52
Migrations that make ActiveStorage attachments work with UUID primary keys. https://github.com/rails/rails/pull/32466
class AddRecordUuidToActiveStorageAttachments < ActiveRecord::Migration[5.2]
def change
# After applying this migration, you'll need to manually go through your
# attachments and populate the new `record_uuid` column.
# If you're unable to do this, you'll probably have to delete all your attachments.
# You've pretty much got useless garbage data if that's the case :(
add_column :active_storage_attachments, :record_uuid, :uuid
end
end
@tiiime
tiiime / frida-okhttp3.js
Last active May 6, 2022 06:41
frrida log okhttp request
// frida -U ${package} -l request.js
Java.perform(function () {
var OkHttpClient = Java.use("okhttp3.OkHttpClient");
var RealCall = Java.use("okhttp3.RealCall");
OkHttpClient.newCall.implementation = function (request) {
var result = this.newCall(request)
console.log(request.toString())
return result