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 / sample.md
Last active May 24, 2024 22:39 — forked from reanim8ed/sample.md
[Ansible through Windows Subsystem for Linux] #ansible

Bash on Ubuntu in Windows

  • Control Panel -> Programs and Features -> Turn Windows features on or off -> Check 'Windows Subsystem for Linux'. Windows will require a reboot.
  • Open Microsoft Store and seach for "linux", select Ubuntu and install. If store doesnt work, download manual install package: https://docs.microsoft.com/en-us/windows/wsl/install-manual
  • After install run in, you will need to create new user in linux installation

Installing Ansible

  • First update packages: sudo apt update
  • Install Pip: sudo apt-get -y install python3-pip python3-dev libffi-dev libssl-dev
  • Install Ansible: pip install ansible --user
  • Since the ansible commands are installed under ~/.local/bin, we need to add that to the $PATH, so run the command: echo 'PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc
@CypherpunkSamurai
CypherpunkSamurai / vmwk17key.txt
Created May 15, 2024 19:21 — forked from PurpleVibe32/vmwk17key.txt
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@CypherpunkSamurai
CypherpunkSamurai / Fuck-Reddit.md
Created July 3, 2023 16:01
Make Reddit clients Alive again !!

Make Reddit clients Alive again !!

Reddit has imposed paid API limits and that compelled developers to shutodwn their clients.
But There is a way you can Keep using your favourite reddit Client.

Obtaining Client ID

Step 1: Navigate to this page.

image

@CypherpunkSamurai
CypherpunkSamurai / what_a_good_commit_message_looks_like.md
Created January 17, 2023 08:21 — forked from finalfantasia/what_a_good_commit_message_looks_like.md
What a good commit message looks like (Linus Torvalds)

A good commit message looks like this:

Header line: explain the commit in one line (use the imperative)

Body of commit message is a few lines of text, explaining things
in more detail, possibly giving some background about the issue
being fixed, etc.

The body of the commit message can be several paragraphs, and

please do proper word-wrap and keep columns shorter than about

# Install bitsandbytes:
# `nvcc --version` to get CUDA version.
# `pip install -i https://test.pypi.org/simple/ bitsandbytes-cudaXXX` to install for current CUDA.
# Example Usage:
# Single GPU: torchrun --nproc_per_node=1 trainer/diffusers_trainer.py --model="CompVis/stable-diffusion-v1-4" --run_name="liminal" --dataset="liminal-dataset" --hf_token="hf_blablabla" --bucket_side_min=64 --use_8bit_adam=True --gradient_checkpointing=True --batch_size=1 --fp16=True --image_log_steps=250 --epochs=20 --resolution=768 --use_ema=True
# Multiple GPUs: torchrun --nproc_per_node=N trainer/diffusers_trainer.py --model="CompVis/stable-diffusion-v1-4" --run_name="liminal" --dataset="liminal-dataset" --hf_token="hf_blablabla" --bucket_side_min=64 --use_8bit_adam=True --gradient_checkpointing=True --batch_size=10 --fp16=True --image_log_steps=250 --epochs=20 --resolution=768 --use_ema=True
import argparse
import socket
import torch
@CypherpunkSamurai
CypherpunkSamurai / train.py
Created December 23, 2022 20:46 — forked from chavinlo/train.py
HIVEMIND_DISTRIBUTED_TRAINING_12_9_2022_8_37PM
# Install bitsandbytes:
# `nvcc --version` to get CUDA version.
# `pip install -i https://test.pypi.org/simple/ bitsandbytes-cudaXXX` to install for current CUDA.
# Example Usage:
# Single GPU: torchrun --nproc_per_node=1 trainer/diffusers_trainer.py --model="CompVis/stable-diffusion-v1-4" --run_name="liminal" --dataset="liminal-dataset" --hf_token="hf_blablabla" --bucket_side_min=64 --use_8bit_adam=True --gradient_checkpointing=True --batch_size=1 --fp16=True --image_log_steps=250 --epochs=20 --resolution=768 --use_ema=True
# Multiple GPUs: torchrun --nproc_per_node=N trainer/diffusers_trainer.py --model="CompVis/stable-diffusion-v1-4" --run_name="liminal" --dataset="liminal-dataset" --hf_token="hf_blablabla" --bucket_side_min=64 --use_8bit_adam=True --gradient_checkpointing=True --batch_size=10 --fp16=True --image_log_steps=250 --epochs=20 --resolution=768 --use_ema=True
import argparse
import socket
import sys
@CypherpunkSamurai
CypherpunkSamurai / fecth-api-iterate.js
Created November 6, 2022 09:30 — forked from AlonsoK28/fecth-api-iterate.js
Iterate over Fetch API
const myData = [
{id:1, name:'data1'}, {id: 2, name: 'data2'}, {id:3, name: 'data3'}
];
async function mapJSFunc(currentValue) {
const url = 'https://api.github.com/?callback=foo'
return fetch(url)
.then(data => {
if (data.status === 200) {
return data;
@CypherpunkSamurai
CypherpunkSamurai / md5.go
Created October 20, 2022 21:20 — forked from ohodoa/md5.go
golang md5 file
package main
import (
"crypto/md5"
"os"
"io"
"log"
"encoding/hex"
)
@CypherpunkSamurai
CypherpunkSamurai / apputils.pas
Created October 3, 2022 16:31 — forked from armornick/apputils.pas
Free Pascal program to make Lazarus portable (based off the earlier batch script but more versatile)
unit AppUtils;
{$mode objfpc}{$H+}
interface
uses
SysUtils;
function CheckDir(path:string):Boolean;
@CypherpunkSamurai
CypherpunkSamurai / README
Created September 7, 2022 18:42 — forked from herrbuerger/README
Anonymous Rotating Proxies with Monit, Tor, Haproxy and Delegated. Idea by http://blog.databigbang.com/running-your-own-anonymous-rotating-proxies/
0 - Read http://blog.databigbang.com/running-your-own-anonymous-rotating-proxies/
1 - Install monit, haproxy, tor and delegated.
2 - Setup your environment in the setup.rb file
3 - Just run > ruby setup.rb
4 - ...........
5 - PROFIT! > http://www.southparkstudios.com/clips/151040/the-underpants-business