Skip to content

Instantly share code, notes, and snippets.

View l00f00's full-sized avatar
πŸˆβ€β¬›
Working from LabZero

l00f00 l00f00

πŸˆβ€β¬›
Working from LabZero
  • Cyberfreak Creative Studio - Websmith.it - LabZero Shared Workspace
View GitHub Profile
@l00f00
l00f00 / download-github-repo.js
Created May 16, 2024 16:09 β€” forked from miwaniec/download-github-repo.js
Download zipped repository from github. If repo is private, you have to use token (create in user profile).
const request = require('request');
const fs = require('fs');
const repo = 'miwaniec/socket-camera';
const accessToken = ''; /* for private repo, use token - https://github.com/settings/tokens */
var options = {
method: 'GET',
url: 'https://api.github.com/repos/' + repo + '/zipball/',
encoding: 'binary',
@l00f00
l00f00 / .gitignore
Created December 18, 2023 11:01 β€” forked from pingrishabh/.gitignore
Standardised gitignore for your Flutter apps & Dart projects
### Flutter Generated
# Miscellaneous
*.class
*.lock
*.log
*.pyc
*.swp
.DS_Store
.atom/
@l00f00
l00f00 / polylang_condition.php
Created September 19, 2022 09:37 β€” forked from KittenCodes/polylang_condition.php
Language Conditions for Oxygen
<?php
if( function_exists('oxygen_vsb_register_condition') && function_exists('pll_languages_list') ) {
$lang_list = pll_languages_list();
oxygen_vsb_register_condition(
//Condition Name
'Locale',
@l00f00
l00f00 / oxygen-repeater-dynamic-query.php
Created April 13, 2021 07:59 β€” forked from yankiara/oxygen-repeater-dynamic-query.php
Use dynamic queries with Oxygen's repeater
/* I'll put here different examples of dynamic query for Oxygen repeater :
* - Use one of the following repeater_dynamic_query definitions
* in code block just BEFORE the repeater
* - Set the repeater custom query settings : post type, number of posts, order...
* - Add the remove_action in a code block AFTER the repeater
*/
/****************************************************************************************************
* Display related posts for any CPT with taxonomy:
@l00f00
l00f00 / AdbCommands
Created January 17, 2021 10:38 β€” forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@l00f00
l00f00 / AdbCommands
Created January 17, 2021 10:38 β€” forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader