Skip to content

Instantly share code, notes, and snippets.

@galaczi
galaczi / App.vue
Last active March 11, 2020 10:02
View App.vue
<template>
<div id="app">
<header>
<h1>Buy this</h1>
<div class="cart" ref="cart">Cart</div>
</header>
<main>
<div class="item">
<h2>Item01</h2>
View Proxmox_Physical_Disk_Passthrough
# Install if lshw not found
apt install lshw
# Check disk info
lshw -class disk -class storage
# Do this again for every disk
qm set <disk_id> -virtio<number from 2 to 999, remember that you cannot use 1!> /dev/disk/by-id/<disk_long_id>
# (this prints: update VM <disk_id> -virtio2 /dev/disk/by-id/<disk_long_id>)
@rohankhudedev
rohankhudedev / opcache.ini
Last active December 7, 2023 02:14
Best Zend OpCache Settings / Tuning / Configurations
View opcache.ini
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=512
@manjula-dube
manjula-dube / .eslintrc.js
Created February 6, 2018 15:55
.eslintrc.js
View .eslintrc.js
// use this format since .eslintrc is deprecated.
// You can logically derive this format.
module.exports = {
parser: 'babel-eslint',
extends: [
'plugin:flowtype/recommended',
'plugin:jest/recommended',
'plugin:react/recommended',
'eslint-config-airbnb',
View select2-bootstrap-v4.0.0-alpha.6.css
/* To avoid mixing em and rem units during compilation */
.select2-container--bootstrap {
display: block;
/*------------------------------------* #COMMON STYLES
\*------------------------------------*/
/**
* Search field in the Select2 dropdown.
*/
/**
@adnan360
adnan360 / https-on-localhost.md
Last active December 8, 2023 09:37
Use HTTPS on Localhost (XAMPP, Windows)
View https-on-localhost.md

Sometimes some websites require https to work. This can be useful in those cases.

This has been tested with XAMPP (PHP 7.0.8) on Windows 7. Please see the Reference links at the end if in confusion about some step.

STEP 1: Editing Configs

Open:

C:\xampp\php\php.ini
@nguyenanhtu
nguyenanhtu / SSLXampp.md
Last active November 19, 2023 15:07
Guide to configure SSL in XAMPP for Windows
View SSLXampp.md

How to test 'https' in XAMPP for localhost ? I will guide you

Menu

  • Create certificate
  • Config Apache to access https instead of http
  • Config mod rewrite to generate SSL url
  • Config Virtual host to test site

Step 1 : Create certificate

  • Go to your XAMPP installation directory (in my case it’s E:\xampp), figure out apache folder. In this, find & run batch file
@rgl
rgl / create-certificates.sh
Last active February 7, 2020 15:51
create test CA and server certificates with openssl
View create-certificates.sh
#!/bin/bash
set -eux
ca_subject='/CN=Test CA'
domains=(
'a.example.com'
'b.example.com'
)
# create the CA keypair and a self-signed certificate.
@oh-ren
oh-ren / jquery.pjax.js
Last active March 12, 2021 07:25
pjax hacked, so it works with jQuery 3.0
View jquery.pjax.js
/*!
* Copyright 2012, Chris Wanstrath
* Released under the MIT License
* https://github.com/defunkt/jquery-pjax
*/
(function($){
// When called on a container with a selector, fetches the href with
// ajax into the container or with the data-pjax attribute on the link
@angrycoffeemonster
angrycoffeemonster / Sublime Text 3 Build 3103 License Key - CRACK
Created April 18, 2016 02:13
Sublime Text 3 Build 3103 License Key - CRACK
View Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04