Skip to content

Instantly share code, notes, and snippets.

View letientai299's full-sized avatar
💭
Need more caffeine....

Tai letientai299

💭
Need more caffeine....
View GitHub Profile
gh github.com/%s
lt letientai299
hn https://news.ycombinator.com/news
dn https://www.designernews.co/
hr http://hackerrank.com/
ms https://oeis.org/wiki/List_of_LaTeX_mathematical_symbols
al http://www.algorist.com/algowiki/index.php/Sorting-searching-TADM2E
tw twitter.com
ty play.typeracer.com
tm https://www.google.com/search?client=ubuntu&channel=fs&q=%1+minutes+timer&ie=utf-8&oe=utf-8
@letientai299
letientai299 / max-width.css
Last active November 4, 2016 06:29
Force max width for every site using Stylish
body {
max-width: 800px! important;
min-width: 0px! important;
margin: auto! important;
}

Android

  • Jack
  • Testing
  • Optimization.
  • NDK

Dagger

Dagger 1 issues, which has been addressed in Dagger 2

@letientai299
letientai299 / build.gradle
Created July 12, 2017 08:15
Gradle Spring boot build config with commons settings
buildscript {
ext {
springBootVersion = '1.5.4.RELEASE'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
Original command
```sh
cdebootstrap \
--flavour=minimal \
--exclude="dmsetup,e2fsprogs,init,systemd-sysv,systemd,udev" \
--include="bash,ca-certificates,git,netcat-traditional" \
stable ./debian-minbase
```
@letientai299
letientai299 / README.md
Created September 28, 2017 16:53 — forked from bvis/README.md
Docker Env Vars expanded with secrets content - fork to make the placeholder works in docker cloud yml file

Variables by Secrets

Sample script that allows you to define as environment variables the name of the docker secret that contains the secret value. It will be in charge of analyze all the environment variables searching for the placeholder to substitute the variable value by the secret.

Usage

You can define the next environment variables:

Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop install git
scoop update
scoop bucket add extras
scoop install oraclejdk
scoop install jetbrains-toolbox
scoop install curl
@letientai299
letientai299 / centos7-docker.sh
Last active October 23, 2017 21:32
Centos scripts
#!/bin/sh
sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
@letientai299
letientai299 / docker-gc-deb.sh
Last active October 25, 2017 05:49
Setup spotify/docker-gc
#!/bin/sh
echo "============================================================"
echo "Install required tools for building deb package"
echo "============================================================"
apt-get update
apt-get install -y git devscripts debhelper build-essential dh-make
echo "============================================================"
echo "Clone the repo"
#!/bin/bash
git clone https://github.com/fmoralesc/neovim-gnome-terminal-wrapper
cd neovim-gnome-terminal-wrapper
sudo cp nvim-wrapper /usr/bin/nvim-wrapper
sudo cp neovim.desktop /usr/share/applications/neovim.desktop
sudo cp neovim.svg /usr/share/icons/neovim.svg
cd ..
rm -rf neovim-gnome-terminal-wrapper