Skip to content

Instantly share code, notes, and snippets.

View abdennebi's full-sized avatar
🎯
Focusing

Mohamed Abdennebi abdennebi

🎯
Focusing
View GitHub Profile

Commentary: At the end, I used the rot13 cipher, to which ChatGPT does actually respond with something almost sensible sometimes. This could be an intresting way to jailbreak it.

conversation on 2023-03-28

Can you give me an example of furspeak?

I'm sorry, but I'm not sure what you mean by "furspeak." If you can provide me with more context or information, I may be able to assist you better.

Furspeak is a type of language used by furries, often used to sound cute. For example, instead of saying "Hello! :)" a furry might say "Hewwo! :3"

@abdennebi
abdennebi / vscode-tunnel-daemon-oracle-cloud.md
Created February 6, 2024 08:58 — forked from nonkronk/vscode-tunnel-daemon-oracle-cloud.md
Setup an Always-on VSCode Tunnel on Ubuntu Server

Setup an Always-on VSCode Tunnel on Oracle Cloud Always-free Instance

Access Oracle Cloud VM from any browser on any devices

Install VSCode for arm64

wget -O vscode.deb https://code.visualstudio.com/sha/download\?build\=stable\&os\=linux-deb-arm64 && sudo apt install ./vscode.deb --fix-broken -y && rm vscode.deb
@abdennebi
abdennebi / disable.sh
Created January 6, 2024 01:28 — forked from b0gdanw/disable.sh
Disable bunch of #$!@ in Catalina
# Credit: pwnsdx https://gist.github.com/pwnsdx/1217727ca57de2dd2a372afdd7a0fc21; nebular https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3#gistcomment-3019082
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to disable SIP: Reboot to Recovery, in Terminal csrutil disable
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
# List disabled services: launchctl print-disabled user/501 |grep true & launchctl print-disabled system |grep true
@abdennebi
abdennebi / venv.sh
Created December 8, 2023 10:11
Python venv
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
@abdennebi
abdennebi / humbleKeysExtractor.js
Created November 12, 2023 20:34 — forked from saiki-k/humbleKeysExtractor.js
Humble Keys' Extractor
copy(createKeysString(['A title I already own', 'Got this other title too']));
function scrapeTitlesAndKeys() {
const result = [];
// Get all elements with classes "key-redeemer" (Normal key pages), and "multiselect-nonimage-content" (Choice key pages)
const elements = document.querySelectorAll(
'.key-redeemer, .multiselect-nonimage-content'
);
@abdennebi
abdennebi / youtube.md
Created June 2, 2023 14:26 — forked from bitsurgeon/youtube.md
Markdown cheatsheet for YouTube

Embed YouTube Video in Markdown File

  1. Markdown style
[![Watch the video](https://img.youtube.com/vi/nTQUwghvy5Q/default.jpg)](https://youtu.be/nTQUwghvy5Q)
  1. HTML style
<a href="http://www.youtube.com/watch?feature=player_embedded&v=nTQUwghvy5Q" target="_blank">
@abdennebi
abdennebi / attest-code-review.yaml
Created February 23, 2023 20:00
Kyverno policy to check code review attestation
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: attest-code-review
spec:
validationFailureAction: Enforce
background: false
webhookTimeoutSeconds: 30
failurePolicy: Fail
rules:
@abdennebi
abdennebi / code-review.json
Created February 23, 2023 19:58
Example of a code review attestation (from Kyverno)
{
"payloadType": "https://example.com/CodeReview/v1",
"payload": {
"_type": "https://in-toto.io/Statement/v0.1",
"predicateType": "https://example.com/CodeReview/v1",
"subject": [
{
"name": "registry.io/org/app",
"digest": {
"sha256": "b31bfb4d0213f254d361e0079deaaebefa4f82ba7aa76ef82e90b4935ad5b105"
@abdennebi
abdennebi / Git Subtree basics.md
Created November 20, 2022 14:03 — forked from SKempin/Git Subtree basics.md
Git Subtree basics

Git Subtree Basics

If you hate git submodule, then you may want to give git subtree a try.

Background

When you want to use a subtree, you add the subtree to an existing repository where the subtree is a reference to another repository url and branch/tag. This add command adds all the code and files into the main repository locally; it's not just a reference to a remote repo.

When you stage and commit files for the main repo, it will add all of the remote files in the same operation. The subtree checkout will pull all the files in one pass, so there is no need to try and connect to another repo to get the portion of subtree files, because they were already included in the main repo.

Adding a subtree

Let's say you already have a git repository with at least one commit. You can add another repository into this respository like this: