It's 2024. You should use tsup instead of this.
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
import com.google.api.services.bigquery.model.TableFieldSchema | |
import com.google.api.services.bigquery.model.TableSchema | |
import org.joda.time.Instant | |
import shapeless._ | |
import shapeless.ops.hlist.FillWith | |
import shapeless.ops.hlist.Mapper | |
import shapeless.ops.hlist.ToList | |
import shapeless.ops.record.Keys | |
import shapeless.ops.record.Values |
It's 2024. You should use tsup instead of this.
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
<?php | |
/** | |
* Plugin Name: Restrict Orders per Day for WooCommerce | |
* Plugin URI: https://remicorson.com | |
* Description: Put the shop into catalogue mode once number of orders per day is reached. | |
* Version: 0.1 | |
* Author: Remi Corson, corsonr | |
* Author URI: https://remicorson.com | |
* License: GPL v2 or later | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
import java.net.{Inet4Address, Inet6Address, InetAddress} | |
import scala.util.Try | |
sealed trait IPAddressException { | |
self: Throwable => val message: String | |
} | |
case class IPAddressParseException(message: String) extends Exception(message) with IPAddressException | |
trait IPAddress { |
<?php | |
//Remove Gutenberg Block Library CSS from loading on the frontend | |
function smartwp_remove_wp_block_library_css(){ | |
wp_dequeue_style( 'wp-block-library' ); | |
wp_dequeue_style( 'wp-block-library-theme' ); | |
wp_dequeue_style( 'wc-blocks-style' ); // Remove WooCommerce block CSS | |
} | |
add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css', 100 ); |
package app | |
import shapeless.ops.hlist.{ConstMapper, Mapper, ZipWith} | |
import shapeless.{::, HList, HNil, Poly2} | |
case class Params() | |
sealed trait EvaluatableGeneratorFilter[+Result] { | |
def eval(p: Params): Result | |
} |
import cats.{ ApplicativeError, MonadError } | |
import cats.data.{ Kleisli, OptionT } | |
import cats.effect.Sync | |
import cats.effect.concurrent.Ref | |
import cats.syntax.all._ | |
import io.circe.generic.auto._ | |
import io.circe.syntax._ | |
import org.http4s._ | |
import org.http4s.circe.CirceEntityDecoder._ | |
import org.http4s.circe._ |
#!/bin/bash | |
sudo apt-get update && sudo apt-get upgrade -y | |
#you may get an error E: Failed to fetch https://sdkrepo.atlassian.com/debian/dists/stable/contrib/binary-amd64/Packages 404 Not Found | |
#don't worry, you can continue without harm | |
sudo apt-get install -y build-essential dkms | |
git clone https://github.com/amzn/amzn-drivers | |
sudo mv amzn-drivers /usr/src/amzn-drivers-1.5.1 | |
sudo touch /usr/src/amzn-drivers-1.5.1/dkms.conf | |
echo 'PACKAGE_NAME="ena" | |
PACKAGE_VERSION="1.5.1" |
// val geotoolsVersion = "8.7" | |
val geotoolsVersion = "9.5" | |
// val geotoolsVersion = "10.8" | |
// val geotoolsVersion = "11.3" | |
// val geotoolsVersion = "12.0" | |
// val geotoolsVersion = "13-SNAPSHOT" | |
libraryDependencies ++= Seq( | |
"org.geotools" % "gt-epsg-hsql" % geotoolsVersion, | |
"org.geotools" % "gt-referencing" % geotoolsVersion, |
# Basic example | |
siege -t60s -c20 -d10 'http://robertomurray.co.uk/' | |
# Basic auth; | |
auth=$(echo -n 'username:password' | openssl base64) | |
siege -t60s -c20 -d10 --header="Authorization:Basic $auth" 'https://staging.a-hostname.co.uk/' |