This file contains hidden or 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
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 |
This file contains hidden or 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
#!/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" |
This file contains hidden or 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
// 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>` |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
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 { |
This file contains hidden or 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 | |
// 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 |