Skip to content

Instantly share code, notes, and snippets.

@tomhicks
tomhicks / plink-plonk.js
Last active May 15, 2025 13:25
Listen to your web pages
@daopk
daopk / git-config-http-version.md
Last active February 22, 2025 09:40
Fix error : RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
git config --global http.version HTTP/1.1
git config --global http.postBuffer 157286400
@zoilomora
zoilomora / README.md
Last active April 15, 2025 01:56
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled
    

Uninstall

@stefanopulze
stefanopulze / ssh-without-password.sh
Last active June 25, 2022 13:31
ssh without password
# Generate private/public key
> ssh-keygen -t ecdsa -b 521
> ssh-keygen -t ed25519
> ssh-keygen -t ecdsa -b 521 -f ./certs -m PEM
# Add private key
> ssh-add -K ~/.ssh/identity_file
# Copy public key to remote host
> ssh-copy-id -i ~/.ssh/identity_file username@remote_host_ip
@dianjuar
dianjuar / Install update WordPress puglins directly.md
Last active June 4, 2025 18:16
Install update WordPress plugins without providing ftp access

Install WordPress plugins directly (without FTP)

Put this on your wp-config.php

/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
@andreibosco
andreibosco / creative-cloud-disable.md
Last active December 19, 2024 08:28
disable creative cloud startup on mac
@pxwise
pxwise / nginx.conf
Last active April 25, 2024 06:20
HTML5 pushState nginx configuration
# HTML5 pushState nginx configuration
#
# @see: http://stackoverflow.com/a/30515169/1774183
#
# Server block for a client side app with directories:
#
# /
# /foo
# /foo/bar
# /foo/bar/baz
@kevinruscoe
kevinruscoe / bower.json
Last active June 6, 2021 08:58
Compile SASS and Compress JS into single file
{
"name": "App",
"version": "1",
"authors": [
"Kevin Ruscoe <kevdotbadger@gmail.com>"
],
"moduleType": [
"node"
],
"license": "MIT",
@zroger
zroger / httpd.conf
Created July 13, 2013 14:58
Minimal httpd.conf for running apache in the foreground for local php development.
#
# Minimal httpd.conf for running apache in the foreground for local php
# development.
#
# Setup:
# 1. Place this file in the root of your project.
# 2. Make sure the ./tmp directory exists (for the pid and lock files).
# 3. Update the DocumentRoot and Directory directives with the relative path to
# your project's document root.
#
@jordelver
jordelver / gist:3139365
Created July 18, 2012 22:29
How to write an image file to an SD card under Mac OS X (for Raspberry Pi)

Find the SD card device

In this case, the SD card is /dev/disk4. DO NOT get this wrong or you may destroy all the data on the wrong disk/card/drive.

diskutil list

/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *160.0 GB   disk0

1: EFI 209.7 MB disk0s1