Skip to content

Instantly share code, notes, and snippets.

View josephgodwinkimani's full-sized avatar
🐢
slow to reply

josephgodwinkimani

🐢
slow to reply
View GitHub Profile
@josephgodwinkimani
josephgodwinkimani / 00-README.md
Created January 7, 2025 09:33 — forked from gboddin/00-README.md
cyberpanel 0day leaked attack script

CyberPanel ransomware attack/defense

WARNING: Please use good judgement and extra caution before downloading and running something provided in the comment section of this gist.

This repo contains 3 things:

  • A decryption script for .psaux ransoms
  • A link to a decryptor for .encrypt ransoms
  • A list of files found on the PSAUX attack server
#!/bin/bash
echo "Checking DNS cache clearing method..."
# Check if systemd-resolved is active
if systemctl is-active --quiet systemd-resolved; then
echo "Flushing DNS cache using systemd-resolved..."
sudo resolvectl flush-caches
echo "DNS cache cleared."
@josephgodwinkimani
josephgodwinkimani / submit.md
Created January 30, 2023 08:45 — forked from tanaikech/submit.md
Downloading Shared Files on Google Drive Using Curl

Downloading Shared Files on Google Drive Using Curl

When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.

File size < 40MB

CURL

filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&amp;id=${fileid}"
{
"info": {
"_postman_id": "6904491c-c07f-d35e-6cb8-778bc79e09a5",
"name": "Daraja API Collection",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "MpesaAPIs",
"item": [
@josephgodwinkimani
josephgodwinkimani / hosts
Created August 14, 2017 07:56 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@josephgodwinkimani
josephgodwinkimani / Web Design Contract.md
Last active February 6, 2017 14:45
The latest version of my ‘killer contract’ for web designers and developers

Web Design Contract


Between [company name]

And [customer name].

Summary:

@josephgodwinkimani
josephgodwinkimani / .babunrc
Last active March 28, 2019 10:19
Babun Configurations
# JVM options
export JAVA_OPTS="-Xms128m -Xmx256m"
# Modify these lines to set your locale
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
# Uncomment these lines to the set your machine's default locale (and comment out the UTF-8 ones)
# export LANG=$(locale -uU)
@josephgodwinkimani
josephgodwinkimani / .gitconfig
Created July 16, 2016 09:38 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@josephgodwinkimani
josephgodwinkimani / README.md
Created July 6, 2016 01:07 — forked from tjogin/README.md
Configuration file to use PHP with Ruby rack

Installation

First you need php-cgi, i used brew with Formula below:

$ curl -O https://raw.github.com/gist/1194269/7ae1709453a8a19ce9c030bf41d544dd08d96d85/php.rb
$ mv php.rb `brew --prefix`/Library/Formula
$ brew install php --with-mysql

Second, install this ruby gems:

@josephgodwinkimani
josephgodwinkimani / frontendDevlopmentBookmarks.md
Created June 16, 2016 07:06 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.