Skip to content

Instantly share code, notes, and snippets.

@vemman
vemman / bsie.js
Last active August 8, 2025 12:19
Behance Source Image Extractor
// ==UserScript==
// @name Behance Image Source Extractor (Consolidated)
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Finds all <img> tags, collects their src attributes, and logs them to the console in a single output.
// @author You
// @match https://www.behance.net/gallery/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=behance.net
// @grant none
// ==/UserScript==
@vemman
vemman / android-backup-apk-and-datas.md
Created December 8, 2024 16:09 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@vemman
vemman / wsl2-ubuntu-lamp.md
Created November 16, 2022 02:25 — forked from abobija/wsl2-ubuntu-lamp.md
LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

Apache

sudo apt-get update && sudo apt-get upgrade 
sudo apt-get install -y apache2

PHP

@vemman
vemman / SerializerCount.php
Created February 12, 2020 22:13 — forked from svetlio/SerializerCount.php
Drupal 8 views rest with pager data
<?php
// thanks Dan - http://www.mediacurrent.com/blog/eight-insights-and-useful-snippets-d8-rest-module
/** @file
* Contains \Drupal\views_ext\Plugin\views\style\SerializerCount.
*/
namespace Drupal\views_ext\Plugin\views\style;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;
@vemman
vemman / functions-mu-encryption.php
Created June 15, 2018 14:51 — forked from muhammad-naderi/functions-mu-encryption.php
Wordpress encrypt usermeta data database
<?php
/**
* Created by PhpStorm.
* User: Muhammad
* Date: 05/07/2016
* Time: 01:20 PM
*/
add_filter('get_user_metadata', 'decrypt_user_meta',10,4);
@vemman
vemman / cf7_custom-select.php
Created March 22, 2018 12:03 — forked from morgyface/cf7_custom-select.php
WordPress | Contact Form 7 | Custom select from post list
<?php
// Create post dropdown function for Contact Form 7
add_action( 'wpcf7_init', 'postselect' );
function postselect() {
wpcf7_add_shortcode( 'postlist', 'custom_post_select', false ); //If the form-tag has a name part, set this to true.
}
function custom_post_select( $tag ) {
$posttype = 'posts';
$args = array(
'post_type' => $posttype,
.wrapper {
margin: 30px;
}
#battery {
width: 500px;
}