Skip to content

Instantly share code, notes, and snippets.

@poeli
poeli / exfat.sh
Created April 5, 2018 21:00
exFAT support on CentOS 7
# ExFAT support on CentOS7
yum install -y http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum install exfat-utils fuse-exfat
# mount disk
# $sudo fdisk -l
# $sudo mount /dev/sda1 /media/
@filipelenfers
filipelenfers / installJdkTarGzUbuntu.sh
Last active September 19, 2025 06:18
Install JDK from tar.gz Ubuntu
#Login as root
sudo su
#create jdk directory
mkdir /opt/jdk
#uncompress, change to your file name
tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk
#check if files are there
@sdstrowes
sdstrowes / netflix.md
Last active June 28, 2019 09:07
netflix rnds names 2017-06-21
@jonataswalker
jonataswalker / electron-sqlite3.md
Created January 20, 2017 11:53 — forked from craigvantonder/electron-sqlite3.md
Electron SQLite3 Integration

Electron SQLite3 Integration

When trying to use the node-sqlite3 module in Electron I got the error:

Error: Cannot find module '/path/to/my/application/node_modules/sqlite3/lib/binding/electron-v1.4-linux-x64/node_sqlite3.node'

Using Ubuntu 16.04 with Node 7.1.0 and Electron 1.4.12.

I read the following:

@StefanoBelli
StefanoBelli / macOS_launcher.sh
Last active July 22, 2025 02:24
Fast OS X launch on QEMU with KVM support enabled. Credits to: https://github.com/kholia, original repository: https://github.com/kholia/OSX-KVM
#!/bin/sh
# qemu-img create -f qcow2 mac_hdd.img 64G
# echo 1 > /sys/module/kvm/parameters/ignore_msrs
#
# Type the following after boot,
# -v "KernelBooter_kexts"="Yes" "CsrActiveConfig"="103"
#
# printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))
#
@galetahub
galetahub / nginx.conf
Last active May 25, 2024 18:16
Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
server {
listen [::]:80;
server_name domain.tld www.domain.tld;
# Redirect all non-https requests
rewrite ^ https://$host$request_uri? permanent;
}
server {
listen [::]:443 ssl http2;
@subfuzion
subfuzion / curl.md
Last active October 11, 2025 00:58
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@m1st0
m1st0 / php_build_ubuntu.sh
Last active July 29, 2025 22:45
Compiling PHP 8 on Ubuntu 25.04 with module support and optimized compilation. Included MariaDB and MySQL compatibility.
#!/bin/bash
# PHP 8 Compile #
# Author: Maulik Mistry
# Please share support: https://www.paypal.com/paypalme/m1st0
# References:
# http://www.zimuel.it/install-php-7/
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu
# root-talis https://gist.github.com/root-talis/40c4936bf0287237839ccd3fdfdaec28
#
@protrolium
protrolium / ffmpeg.md
Last active October 10, 2025 18:15
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@loveyu
loveyu / dnspod.sh
Created October 13, 2014 15:09
纯 Shell 实现DNSPOD 域名动态更新
#!/bin/bash
#########################################
# author : loveyu #
# url : http://www.loveyu.org #
#########################################
function post()
{
#提交域名更新请求
if [ "" = "$1" ]
then