Skip to content

Instantly share code, notes, and snippets.

@szymonlopaciuk
szymonlopaciuk / vol_resize.sh
Created March 7, 2018 07:52
LVM: shrink one volume for another
# Unmount /home
umount /home
# Shrink the /home filesystem
fsck -f /dev/mapper/fedora-hmoe
resize2fs /dev/mapper/fedora-home 100G
# Shrink the /home logical volume
@Minionguyjpro
Minionguyjpro / Activate_Windows_8_8.1_10_and_11_Pro_for_Free.md
Last active May 25, 2024 19:18
Activate Windows 8, 8.1, 10 and 11 Pro for Free

Activate Windows 8, 8.1, 10 and 11 Pro for Free

A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!

NOTE

If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that has been upgraded to Windows 8/8.1/10/11 from Windows 8.1/8/7/Vista/XP and other ones. If you have one of those, refer the Windows key button to as yours. A list of them is below:

Windows key buttons

- Windows 11

- Windows 10

@WillSquire
WillSquire / ubuntu_server_setup.md
Last active May 25, 2024 19:18
Ubuntu server setup

Ubuntu Server

The steps taken to setup a Ubuntu web server.

Update

Update Aptitude:

sudo apt-get update
@jakebellacera
jakebellacera / ICS.php
Last active May 25, 2024 19:17
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
@simonhamp
simonhamp / LocalValetDriver.php
Last active May 25, 2024 19:16
Run anything you like through Laravel Herd
<?php
use Valet\Drivers\ValetDriver;
class LocalValetDriver extends ValetDriver
{
public function serves(string $sitePath, string $siteName, string $uri): bool
{
return true;
}
@efrecon
efrecon / run.tpl
Last active May 25, 2024 19:13
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}
pos = 0 1 6
pos = 0 1 7
pos = 0 1 8
pos = 0 1 9
pos = 0 1 10
pos = 0 1 11
pos = 0 1 12
pos = 0 1 13
pos = 0 1 14
pos = 0 1 15
@dhh
dhh / linux-setup.sh
Last active May 25, 2024 19:11
linux-setup.sh
# Libraries and infrastructure
sudo apt update -y
sudo apt install -y \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \
rbenv apache2-utils
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active May 25, 2024 19:10 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Step by Step guide to install Apache Tomcat on Amazon Linux

10

Prerequisites:

  • Amazon Linux Machine with a minimum of 1GB RAM. It will be sufficent to do A proof of concept (POC).
  • Open Port.No: 8080 in EC2-security group.

Install Java.

sudo su - 
amazon-linux-extras install java-openjdk11=latest -y