Skip to content

Instantly share code, notes, and snippets.

View tenclar's full-sized avatar
:atom:

Tenclar Valus tenclar

:atom:
View GitHub Profile
@tenclar
tenclar / setup.sh
Created July 13, 2023 18:06 — forked from jjvillavicencio/setup.sh
Install Android SDK on Windows Bash (WSL)
cd /home/<user>/
sudo apt-get install unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android
rm sdk-tools-linux-4333796.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc
cd Android/tools/bin
@tenclar
tenclar / bump-version.sh
Created December 5, 2022 13:52 — forked from mareksuscak/bump-version.sh
Bump version shell script.
#!/bin/bash
# Thanks goes to @pete-otaqui for the initial gist:
# https://gist.github.com/pete-otaqui/4188238
#
# Original version modified by Marek Suscak
#
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3" or even "1.2.3-beta+001.ab"
@tenclar
tenclar / EditorQuill.tsx
Last active April 15, 2021 03:43
Componente unForm com QuillEditor
// Styles.ts
import styled, { css } from 'styled-components';
import ToolTip from '../Tooltip';
interface ContainerProps {
isFocused: boolean;
isFilled: boolean;
isErrored: boolean;
}
export const Container = styled.div<ContainerProps>`
# Install ubuntu server edition
# Update server
sudo apt-get -y update && sudo apt-get -y upgrade
# Install AMDGPU-PRO driver
wget --referer=http://support.amd.com https://drivers.amd.com/drivers/linux/amdgpu-pro-18.50-708488-ubuntu-18.04.tar.xz
cd amdgpu-pro-18.50-708488-ubuntu-18.04/
sudo dpkg --add-architecture i386
./amdgpu-pro-install --opencl=legacy -y
@tenclar
tenclar / index.js
Created June 12, 2019 00:46 — forked from adrianhajdin/index.js
HTML Template
module.exports = ({ name, price1, price2, receiptId }) => {
const today = new Date();
return `
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PDF Result Template</title>
<style>
.invoice-box {
<?php
// Write the following in a WP plugin of yours
// or in the php directory of your WP-AppKit theme.
/**
* For this example we use the "wpak_posts_list_query_args" hook
* to customize the query to sort the posts of our
* "my-component-slug" component by alphabetical order.
*
* Internally the component's query is a WP_Query object: see