Skip to content

Instantly share code, notes, and snippets.

View 0x6d6861's full-sized avatar

Heri Agape 0x6d6861

View GitHub Profile
@0x6d6861
0x6d6861 / default.md
Created July 13, 2025 20:26 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@0x6d6861
0x6d6861 / ghcr.md
Created October 14, 2024 13:38 — forked from yokawasa/ghcr.md
ghcr (GitHub Container Registry)

ghcr (GitHub Container Registry) quickstart

CLI

To push container images to ghcr, you need peronal access token (PAT) - see how to create PAT

  1. Get PAT (personal access token)

Personal Settings > Developer settings > Personal access tokens

@0x6d6861
0x6d6861 / GitCommitEmoji.md
Created November 8, 2023 06:29 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@0x6d6861
0x6d6861 / simple-pagination.js
Created November 22, 2022 11:51 — forked from kottenator/simple-pagination.js
Simple pagination algorithm
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;
@0x6d6861
0x6d6861 / crawler.sh
Created July 29, 2022 12:06 — forked from chenyanzhe/crawler.sh
Gather Geo-Tagged Tweets using Twitter Streaming API
#/bin/bash
# The KEY and SECRET below are invalidate
# Place your correct key here
# Consumer Key
key='x4Ew64IOWg5haePO78w82w'
# Consumer Secret
secret='zXsAy05cGpm1p2r4tJrpqPS7XOfQ5Z4Ga1uSMSCm0Q'
# Access Token
@0x6d6861
0x6d6861 / inMemoryModel.js
Created July 18, 2022 13:05 — forked from kobi/inMemoryModel.js
NodeJs and OAuth2 - Updated example of using express-oauth-server with a memory model
// based on https://github.com/oauthjs/express-oauth-server/blob/master/examples/memory/model.js
/**
* Constructor.
*/
function InMemoryCache() {
this.clients = [
{
clientId : 'dummy-client-id',
clientSecret : 'dummy-client-secret',
@0x6d6861
0x6d6861 / api_backends.conf
Created July 6, 2022 12:05 — forked from nginx-gists/api_backends.conf
Deploying NGINX Plus as an API Gateway, Part 1
upstream warehouse_inventory {
zone inventory_service 64k;
server 10.0.0.1:80;
server 10.0.0.2:80;
server 10.0.0.3:80;
}
upstream warehouse_pricing {
zone pricing_service 64k;
server 10.0.0.7:80;
import com.google.android.gms.maps.CameraUpdate;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.GoogleMap.OnMapClickListener;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
import android.app.Activity;
import android.content.Context;
@0x6d6861
0x6d6861 / mysql-docker.sh
Created March 25, 2021 09:35 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@0x6d6861
0x6d6861 / app.js
Created December 5, 2020 10:08 — forked from fwertz/app.js
Basic load balancing NodeJS (Nginx + PM2 + Express)
import express from 'express';
// ... So much space for unstable dependency imports ...
let app = express();
// ... Insert your own routing magic ...
export default app;