Skip to content

Instantly share code, notes, and snippets.

View CypherpunkSamurai's full-sized avatar
😶
Currently Busy 🌻🐢

Cypherpunk Samurai CypherpunkSamurai

😶
Currently Busy 🌻🐢
View GitHub Profile
@CypherpunkSamurai
CypherpunkSamurai / mediafire.sh
Created September 19, 2024 18:44
Mediafire Downloader with Wget and Curl
curl "mediafire url" | grep -Eo "http.+download.?+\.mediafire\.com.*\" " | sed -e 's|"||g' | xargs wget
@CypherpunkSamurai
CypherpunkSamurai / docker create rcone config.md
Created September 3, 2024 12:01
Create Rclone Config Using Docker

Generate a rclone.conf file

  1. Run
docker run --rm -it -v "${PWD}/rclone:/config/rclone:rw" rclone/rclone:latest config
  1. Complete the authentication then
docker run --rm -v "${PWD}/rclone:/config/rclone:rw" rclone/rclone:latest ls remote:/
@CypherpunkSamurai
CypherpunkSamurai / compose rclone sync to remote.yml
Created September 3, 2024 11:56
Docker Compose Sync Volume to RCLONE Remote
# services
services:
syncron:
image: rclone/rclone:latest
environment:
RCLONE_REMOTE: "remote:/"
RCLONE_SYNC_FOLDER: "/sync"
entrypoint: ["/bin/sh", "-c"]
command: |
'
package main
import (
"fmt"
"time"
)
func main() {
since := time.Now()
// cooking
@CypherpunkSamurai
CypherpunkSamurai / cloudflare_workers_return_html.js
Created August 24, 2024 11:23
Cloudflare Workers Return SSR HTML
export default {
async fetch(request) {
// get a name
const name = await fetch("https://randommer.io/Name", {
"headers": {
"accept": "*/*",
"accept-language": "en-US,en;q=0.9",
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"x-requested-with": "XMLHttpRequest"
@CypherpunkSamurai
CypherpunkSamurai / bash-colors.md
Created July 31, 2024 18:19 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@CypherpunkSamurai
CypherpunkSamurai / websocketclient.html
Created July 26, 2024 16:29
Web Socket Client HTML CSS Tailwind
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebSocket Client</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100 p-2 sm:p-4 md:p-6 lg:p-8">
<div class="max-w-7xl mx-auto bg-white rounded-xl shadow-md overflow-hidden">
@CypherpunkSamurai
CypherpunkSamurai / tee.go
Created July 26, 2024 14:50 — forked from jerblack/tee.go
Golang: Mirror all writes to stdout and stderr in program to log file
package main
import (
"fmt"
"io"
"log"
"os"
)
func main() {
@CypherpunkSamurai
CypherpunkSamurai / installing-oracle-linux-in-wsl.md
Created July 23, 2024 17:08
Installing Oracle Linux in WSL

Installing Oracle Linux in WSL

  1. Install This from MS Store

Note: use https://store.rg-adguard.net to download the file if you dont want to use microsoft store.

  1. No Clear Command fix
sudo dnf install ncurses which