All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
row = parseInt(thisComp.layer("Data-Sample.csv")("Data")("Number of Rows")-1); | |
thisComp.layer("Data-Sample.csv")("Data")("Outline")("Long Text")("Long Text " + row) | |
txt = thisComp.layer("Data-Sample.csv")("Data")("Outline")("Long Text")("Long Text " + row); | |
n = effect("Line Break")("Slider"); | |
outStr = ""; | |
newLine = ""; | |
splt = txt.split(" "); | |
for (i = 0; i < splt.length; i++){ | |
if ((newLine + " " + splt[i]).length > n){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.cm.accesslog; | |
import io.undertow.Undertow; | |
import io.undertow.UndertowOptions; | |
import io.undertow.server.handlers.accesslog.AccessLogHandler; | |
import io.undertow.server.handlers.accesslog.AccessLogReceiver; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.commons.lang.StringUtils; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Shortcodes to list all available shortcodes | |
function list_shortcodes() { | |
// Grab the global array of shortcodes | |
global $shortcode_tags; | |
// Sort the shortcodes into alphabetical order |
Hold on to your pants. This is a bit nuts.
- Sign in to our Adobe Team account, go to 'Manage Team', download
CCPLauncher.exe
for windows. - This can be used to create a promptless installer for After FX.
- Boot up a windows VM, preferably Windows 7 or newer.
- Copy the
CCPLauncher.exe
to the VM's Desktop - Run the program. Follow the prompts in a windows box to generate the installer package.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DNS Query Program on Linux | |
//Author : Silver Moon ([email protected]) | |
//Dated : 29/4/2009 | |
//Header Files | |
#include<stdio.h> //printf | |
#include<string.h> //strlen | |
#include<stdlib.h> //malloc | |
#include<sys/socket.h> //you know what this is for | |
#include<arpa/inet.h> //inet_addr , inet_ntoa , ntohs etc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.pdmodel.PDPage; | |
import org.apache.pdfbox.pdmodel.PDPageContentStream; | |
import org.apache.pdfbox.pdmodel.common.PDRectangle; | |
import org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Piggyback Yoast SEO OpenGraph output to add Pinterest | |
* Rich Pin OpenGraph data for WooCommerce products | |
*/ | |
add_filter( 'wpseo_opengraph_type', function( $og_type ) { | |
if ( 'product' == get_post_type() ) { | |
$og_type = 'product'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = '/path/to/file.png'; | |
$filename = basename($file); | |
$upload_file = wp_upload_bits($filename, null, file_get_contents($file)); | |
if (!$upload_file['error']) { | |
$wp_filetype = wp_check_filetype($filename, null ); | |
$attachment = array( | |
'post_mime_type' => $wp_filetype['type'], | |
'post_parent' => $parent_post_id, |