Skip to content

Instantly share code, notes, and snippets.

@serial
serial / wp-img-defaults.css
Created July 7, 2024 11:41 — forked from jlengstorf/wp-img-defaults.css
Default styling for WordPress image alignment and captions
/*
* Default WP Alignment Classes
*****************************************************************************/
.aligncenter,.alignleft,.alignright {
display: block;
padding: 0;
}
.aligncenter {
@serial
serial / ts3u-readme.md
Last active November 4, 2022 22:17
ts3-server-updater

TS3-Update

Script will easily download latest ts3server files and update the server automatically.

Requirements

  • Server running a linux amd64 TS3 Server
  • Server Directory Named "teamspeak3-server_linux_amd64"
  • Run the script from within the directory where the server files are located.

Put in this directory

@serial
serial / db.class.php
Last active July 3, 2024 06:49
PDO database (PHP version >= 8.0)
<?php
/**
* PHP PDO Class
*
* @require PHP >= 8.0
* @usage
*
* // Construct
* $db = new Database( '$db_host', '$db_name', '$db_user', '$db_pass' );
* $db->setTable = 'test_table';
@serial
serial / nuxtjs-setup-tailwind.md
Last active August 20, 2021 20:25
Nuxt.js (Vue.js) setup with tailwindcss, axios, fontawesome (free)

NuxtJS

The Intuitive Vue Framework

Information and concepts about the Nuxt.js Framework, see Nuxt.js docs for more indepth information

Lets get the party started

$ npm init nuxt-app {project-name}

Project Name: {project-name}
Programming language: JavaScript

@serial
serial / repo-reset.md
Created July 29, 2021 10:36
GitHub - Delete commits history

Deleting the .git folder may cause problems.
If we want to delete all of our commits history, but keep the code in its current state:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A