Skip to content

Instantly share code, notes, and snippets.

View ascorbic-acid's full-sized avatar

Imad Abdou ascorbic-acid

View GitHub Profile
@ascorbic-acid
ascorbic-acid / install-guide.md
Last active April 15, 2024 09:07
Install ERPNext v14 or v15 on Ubuntu 22.04 Production or Develop

Install ERPNext v14 or v15 on Ubuntu 22.04 Production or Develop

feel free to edit the parameters to suite your needs
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install software-properties-common \
nginx wget zip unzip git curl certbot python3-pip \
python3-dev python3-venv redis-server mariadb-server \
@a1ip
a1ip / radios.m3u
Created February 12, 2020 13:35
Христианское Радио
#EXTM3U
#EXTINF:0,RadioMv.com | Russian Christian Music
http://ru-music.radiomv.co:1918
#EXTINF:0,RadioMv.com | Russian Christian Radio
http://ru-high.radiomv.co:2204
#EXTINF:0,RadioMv.com | English Christian Radio
http://en-high.radiomv.co:2102
#EXTINF:0,Детское Христианское Радио
http://live.detskoeradio.org/radio/8010/radio.mp3
#EXTINF:0,Радио Голос Мира | Чтение Библии
@scottopolis
scottopolis / woo-product-api-filter.php
Last active June 20, 2022 14:47
Modify WooCommerce REST API Product Response
<?php
// add this code to a custom plugin
add_filter( 'woocommerce_rest_prepare_product_object', 'wc_app_add_custom_data_to_product', 10, 3 );
// filter the product response here
function wc_app_add_custom_data_to_product( $response, $post, $request ) {
// in this case we want to display the short description, so we copy it over to the description, which shows up in the app
$response->data['description'] = $response->data['short_description'];
return $response;
@Cheesetouched
Cheesetouched / .gitignore
Created March 3, 2019 04:18
Standardised gitignore for your Flutter apps & Dart projects
### Flutter Generated
# Miscellaneous
*.class
*.lock
*.log
*.pyc
*.swp
.DS_Store
.atom/
@GhostofGoes
GhostofGoes / .gitignore
Created October 4, 2018 04:29
Basic .gitignore template for Python projects
# Editors
.vscode/
.idea/
# Vagrant
.vagrant/
# Mac/OSX
.DS_Store
@ahmadawais
ahmadawais / flywheel-local-xdebug-vscode.md
Last active May 3, 2024 12:07
Debug WordPress with Visual Studio Code | VSCode WordPress Debug Setup | WordPress xDebug Setup for Local by FlyWheel with VSCode | Part of the VSCode Learning Course → https://VSCode.pro

VSCode WordPress Debugging Setup: WordPress Xdebug Setup for Local by FlyWheel with VSCode


Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User

🚅 TL;DR

  • Make sure your Local by FlyWheel WordPress install is a custom install
@wastrachan
wastrachan / openvpn-in-lxd.txt
Last active March 21, 2023 13:07
OpenVPN in LXD Container
# On the host
=============
lxc config set openvpn raw.lxc 'lxc.cgroup.devices.allow = c 10:200 rwm'
lxc config device add openvpn tun unix-char path=/dev/net/tun
# In the container
==================
1. mknod /dev/net/tun c 10 200
@tanaikech
tanaikech / submit.md
Last active May 13, 2024 08:11
Downloading Shared Files on Google Drive Using Curl

Downloading Shared Files on Google Drive Using Curl

When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.

File size < 40MB

CURL

filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&amp;id=${fileid}"
@sabpprook
sabpprook / gist:3a05cdaa0a2bab91de35a9de5d3bd2cf
Created September 19, 2016 23:27
Android ID change via ADB shell
adb shell content query --uri content://settings/secure --where "name=\'android_id\'"
adb shell content delete --uri content://settings/secure --where "name=\'android_id\'"
adb shell content insert --uri content://settings/secure --bind name:s:android_id --bind value:s:7373de1e9e9670c2
@mrosata
mrosata / fp-either-monad.js
Last active April 22, 2024 07:16
Functional JavaScript Monad Classes - (Maybe Just Nothing) - (Either Left Right) (IOMonad) and my type checking utils
import is from './is-util';
/**
* Either Monad class (from Functional Programming in JavaScript)
*/
class Either {
constructor(value) {
this._value = value;
}
get value () {