Skip to content

Instantly share code, notes, and snippets.

View ansidev's full-sized avatar
🎯
Focusing

Le Minh Tri ansidev

🎯
Focusing
View GitHub Profile
./configure --prefix=/usr --enable-intl --with-ldap --enable-embedded-mysqli --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-pdo-mysql --with-mysqli --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-imap --with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm
@ansidev
ansidev / config.json
Created May 5, 2017 06:45 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@ansidev
ansidev / during_handling_of_the_above_exception_another_exception_occurred.py
Created October 25, 2017 16:15
During handling of the above exception, another exception occurred
try:
// do something
except Exception:
log.error("Exception occurred")
try:
// do something
except Exception as e:
raise e from None
sudo rm -rf /Applications/Tuxera\ Disk\ Manager.app
sudo rm -rf /Library/Application\ Support/Tuxera\ NTFS
sudo rm -rf /Library/Filesystems/fusefs_txantfs.fs
sudo rm -rf /Library/PreferencePanes/Tuxera\ NTFS.prefPane
@ansidev
ansidev / Generate JPA Entity.groovy
Created May 16, 2018 10:22
Generate JPA Entity Script
import com.intellij.database.model.DasTable
import com.intellij.database.model.ObjectKind
import com.intellij.database.util.Case
import com.intellij.database.util.DasUtil
import javax.swing.*
/*
* Written by ansidev.
* Available context bindings:
* SELECTION Iterable<DasObject>
@ansidev
ansidev / nuxt.config.js
Last active October 14, 2024 14:39
Use jQuery with NuxtJS
const webpack = require('webpack')
module.exports = {
// other configs
build: {
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
.is-equal-height {
display: flex;
flex-direction: column;
height: 100%;
}
.is-equal-height .card-footer {
margin-top: auto;
}
@ansidev
ansidev / netlify.toml
Created October 26, 2018 14:53
Auto redirect Netlify site from HTTP to HTTPS
# Auto redirect Netlify site from HTTP to HTTPS.
[[redirects]]
from = "http://yoursite.netlify.com"
to = "https://yoursite.netlify.com"
[[redirects]]
from = "http://yoursite.netlify.com/*"
to = "https://yoursite.netlify.com/:splat"
status = 301
[[redirects]]
@ansidev
ansidev / resize-event.vue
Created February 1, 2019 07:29
Handle resize event in Nuxt JS
<script>
export default {
mounted: function () {
this.$nextTick(function () {
this.onResize();
})
window.addEventListener('resize', this.onResize)
},
methods: {
onResize() {