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
{
"$schema": "https://puremourning.github.io/vimspector/schema/vimspector.schema.json",
"configurations": {
"launch": {
"adapter": "CodeLLDB",
"configuration": {
"type": "lldb",
"filetypes": ["rust"],
"request": "launch",
"program": "${Executable}",
# Update software {{{2 #
update-software() {
# Ubuntu {{{1 #
if command -v apt-get > /dev/null 2>&1; then
echo "--------------------------------------------------------------------------------"
echo "- Update software for Ubuntu"
echo "----------------------------------------"
sudo apt update
sudo apt full-upgrade -y
@letientai299
letientai299 / mermaid-pandoc-guide.md
Last active November 8, 2024 11:32
Render PDF from markdown that using mermaid

Render PDF from Markdown that using mermaid

You will need:

This guide is based on Ubuntu, for other OS, use their package manager instead.

#!/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
@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"
@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
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 / 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:

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 / 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/"
}
}