Skip to content

Instantly share code, notes, and snippets.

View shinnida220's full-sized avatar
💭
caressing php, wooing android and eyeing angular

Emmanuel Ibikunle shinnida220

💭
caressing php, wooing android and eyeing angular
View GitHub Profile
@amunchet
amunchet / noVNCCopyPasteProxmox.user.js
Last active November 18, 2024 07:45
Copy/Paste for noVNC Proxmox
// ==UserScript==
// @name noVNC Paste for Proxmox
// @namespace http://tampermonkey.net/
// @version 0.2a
// @description Pastes text into a noVNC window (for use with Proxmox specifically)
// @author Chester Enright
// @match https://*
// @include /^.*novnc.*/
// @require http://code.jquery.com/jquery-3.3.1.min.js
// @grant none
@shinnida220
shinnida220 / install.sh
Last active July 22, 2022 23:27 — forked from mslinn/install.sh
Install AWS Cloud9 (with AWS CLI & Docker) on an Ubuntu 20.04 server external to AWS
# Log into your Ubuntu machine then follow these directions
# First allow Cloud9 to ssh to your machine using your account:
# https://docs.aws.amazon.com/cloud9/latest/user-guide/create-environment-ssh.html
# Install required dependencies
if [ -z `which virtualenv` ]; then
sudo pip install virtualenv
fi
if [ -z `apt -qq list libevent-dev 2> /dev/null | grep installed` ]; then
@mslinn
mslinn / install.sh
Last active July 15, 2022 19:36
Install AWS Cloud9 on an Ubuntu 20.04 server external to AWS
# Log into your Ubuntu machine then follow these directions
# First allow Cloud9 to ssh to your machine using your account:
# https://docs.aws.amazon.com/cloud9/latest/user-guide/create-environment-ssh.html
# Install required dependencies
if [ -z `which virtualenv` ]; then
sudo pip install virtualenv
fi
if [ -z `apt -qq list libevent-dev 2> /dev/null | grep installed` ]; then
@squatto
squatto / CanSaveQuietly.php
Last active December 24, 2022 22:52
CanSaveQuietly Laravel model trait - save or update models without firing any model events
<?php
namespace App\Models\Traits;
/**
* @mixin \Eloquent
*/
trait CanSaveQuietly
{
/**
@judavi
judavi / wallet.py
Created May 17, 2020 09:08
BTC seed guesser
from bitcoinlib.wallets import HDWallet
from bitcoinlib.wallets import HDWalletKey
from bitcoinlib.wallets import HDKey
from bitcoinlib.mnemonic import Mnemonic
# 11 word seed
seed = "please help hard puzzle will become crazy valid seed must sleep"
# here be gold
gold = "bc1qj7467e7r5pdfpypm03wyvguupdrld0ul2gcutg"
@gkhays
gkhays / Download File with Node.md
Created February 27, 2020 17:26
Download a file from a URL using Node.js

Download File from URL

Proof-of-concept to download a file from a URL and save it locally. For example, I may wish to retrieve a JAR file from Nexus.

Uses the http package, which does the basics with raw HTTP protocol support.

Possible update: use request, it is like the Python's requests library. There is a companion package called node-request-progress that tracks download progress. See request-progress on GitHub.

Note: The request package has been deprecated.

@kosyfrances
kosyfrances / site-to-site.md
Last active September 30, 2024 10:41
Steps to set up one tunnel IPSec Site to site VPN on AWS and a VM on another cloud provider (Packet) running Strongswan
@kenprice
kenprice / guess_seeds.py
Last active June 26, 2022 15:41
cryptogreetings r/Bitcoin puzzle - BIP49 seed word guessing util
from electrum import util, keystore, bitcoin
import argparse
import sys
import threading
MAX_THREADS=25
TARGET_ADDR="3CcxyPhyvyc3S9UuPfu42GNZLvVVV11Uk8"
# How many of the address indexes to try. Default to just /0.
# i.e. last digit in derivation path: m/49'/0'/0'/0/0
MAX_ADDR_IDX=1
@maorpolak
maorpolak / memcached-installation.txt
Last active September 29, 2021 00:07
Install Memcached for XAMPP on macOS
1. Install libmemcached with brew:
> brew install libmemcached
2. Install memcached with pecl:
- > sudo /Applications/XAMPP/xamppfiles/bin/pecl install memcached
- When prompted for the libmemcached directory, press 'Enter' and the installer will automatically find it.
3. Add the memcached extension to your php.ini file:
- > sudo vim /Applications/XAMPP/xamppfiles/etc/php.ini
- Add 'extension=memcached.so' to the file