Skip to content

Instantly share code, notes, and snippets.

View JFOC's full-sized avatar
🎯
Focusing

JFOC JFOC

🎯
Focusing
View GitHub Profile
@eRQee
eRQee / indonesia-radio.m3u
Last active June 8, 2025 04:22
Indonesian Online Radio Playlists (Supported Player: Radio++, GoodVibes). More lists is coming.
#EXTM3U
#EXTINF:0,Andika FM
#EXTVLCOPT:network-caching=1000
http://stream2.andikafm.com:1057/andikafm
#EXTINF:0,Ardan Radio
#EXTVLCOPT:network-caching=1000
http://listento.ardanradio.com:1059/;
#EXTINF:0,Attaqwa FM
#EXTVLCOPT:network-caching=1000
http://103.28.148.18:8840/;
@jxlwqq
jxlwqq / side.php
Last active June 26, 2020 13:17
Place Input Fields Side-by-Side
<?php
protected function form()
{
$form = new Form(new ModelName);
$form->row(function ($row) {
$row->width(4)->text('email');
$row->width(4)->text('password');
$row->width(4)->text('password_confirmation');
});
@supix
supix / postgres_recovery.md
Last active November 4, 2025 14:44
Postgres error: Missing chunk 0 for toast value in pg_toast

The problem

In some cases, it is possible that PostgreSQL tables get corrupted. This can happen in case of hardware failures (e.g. hard disk drives with write-back cache enabled, RAID controllers with faulty/worn out battery backup, etc.), as clearly reported in this wiki page. Furthermore, it can happen in case of incorrect setup, as well.

One of the symptoms of such corruptions is the following message:

ERROR: missing chunk number 0 for toast value 123456 in pg_toast_45678

This almost surely indicates that a corrupted chunk is present within a table file. But there is a good way to get rid of it.

@MrVibe
MrVibe / functions.php
Created July 9, 2018 16:57
Custom Featured block example : http://prntscr.com/k4e4z9
add_filter('vibe_builder_thumb_styles',function($thumb_array){
$thumb_array['custom_block']= 'https://i1.wp.com/i.imgur.com/gxrPvvJ.jpg?zoom=2&w=920';
return $thumb_array;
});
add_filter('vibe_featured_thumbnail_style',function($thumbnail_html,$post,$style){
if($style == 'custom_block' && $post->post_type == 'course'){ //Custom block is the same name as added for the thumbnail in pagebuilder
$thumbnail_html ='';
$thumbnail_html .= '<div class="block customblock">';
@jeromecoupe
jeromecoupe / webstoemp-gulpfile.js
Last active November 7, 2025 05:29
Gulp 4 sample gulpfile.js. For a full explanation, have a look at https://www.webstoemp.com/blog/switching-to-gulp4/
"use strict";
// Load plugins
const autoprefixer = require("autoprefixer");
const browsersync = require("browser-sync").create();
const cp = require("child_process");
const cssnano = require("cssnano");
const del = require("del");
const eslint = require("gulp-eslint");
const gulp = require("gulp");
@unoexperto
unoexperto / patch_apk_for_sniffing.md
Last active July 24, 2025 09:02
How to patch Android app to sniff its HTTPS traffic with self-signed certificate

How to patch Android app to sniff its HTTPS traffic with self-signed certificate

  • Download apktool from https://ibotpeaches.github.io/Apktool/
  • Unpack apk file: java -jar /home/expert/work/tools/apktool.jar d [email protected]
  • Modify AndroidManifest.xml by adding android:networkSecurityConfig="@xml/network_security_config" attribute to application element.
  • Create file /res/xml/network_security_config.xml with following content:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config>
@relliv
relliv / common.php
Last active November 23, 2024 01:41
Secure GET & POST Methods
<?php
class Common
{
/*--------------------- $_GET & $_POST ----------------- START */
/**
* Get $_GET content, array or array item in filtered way
*
* @param object $parameter could be array or array item
@RamadhanAmizudin
RamadhanAmizudin / app.js
Last active August 25, 2024 10:42
Decrypt Cordova Crypt File Plugin
// Blogpost: https://rz.my/2017/11/decrypting-cordova-crypt-file-plugin.html
var fs = require("fs"),
path = require("path"),
crypto = require("crypto");
var config = {
key : 'CRYPT_KEY',
iv : 'CRYPT_IV'
}
@hemusyl
hemusyl / breadcrumbs-custom.php
Last active May 22, 2025 09:58
WordPress custom breadcrumbs without plugin
http://www.qualitytuts.com/wordpress-custom-breadcrumbs-without-plugin/
Step 1
Breadcrumbs are the important part of our website, in wordpress there are several plugins are available for this, but below i posted
the code for custom breadcrumbs for our wordpress site. Just add this below code in to your current wordpress theme functions.php
and call the second step.
<?php
function qt_custom_breadcrumbs() {
@seoagentur-hamburg
seoagentur-hamburg / .htaccess
Last active October 6, 2025 02:36
UPDATE 2024/03: Perfect .htaccess file for highspeed and security. You can use it for every WordPress-Website without problems. Highspeed and Security - testet on hundreds of Websites. If you are using a WordPress Multisite, change the last part of this file.
########################################################################
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.9 - 03/2024
# ----------------------------------------------------------------------
# @Author: Andreas Hecht
# @Author URI: https://seoagentur-hamburg.com
# License: GNU General Public License v2 or later
# License URI: http://www.gnu.org/licenses/gpl-2.0.html
########################################################################