Skip to content

Instantly share code, notes, and snippets.

View socool's full-sized avatar

Kamolsit Mongkolsrisawat socool

View GitHub Profile
#!/bin/bash
declare -a fonts=(
BitstreamVeraSansMono
CodeNewRoman
DroidSansMono
FiraCode
FiraMono
Go-Mono
Hack
@socool
socool / init.lua
Last active March 17, 2023 04:01
init.lua
-- Install packer
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
local is_bootstrap = false
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
is_bootstrap = true
vim.fn.system { 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path }
vim.cmd [[packadd packer.nvim]]
end
require('packer').startup(function(use)
@socool
socool / gist:84da8c3776d4008c9ccbb2d4b0f2adac
Created February 15, 2021 11:02
Sending CELO and cUSD
0x4355e8c857cEA029c9f0faa532F1b35cC85a4413
@socool
socool / gist:fffeb38038f72dc926297e274e6e4fb1
Last active February 15, 2021 11:03
Sending CELO and cUSD
0x4355e8c857cEA029c9f0faa532F1b35cC85a4413
@socool
socool / spring-boot-cheatsheet.java
Created August 21, 2018 04:16 — forked from jahe/spring-boot-cheatsheet.java
Spring Boot Cheatsheet
// Enable component-scanning and auto-configuration with @SpringBootApplication Annotation
// It combines @Configuration + @ComponentScan + @EnableAutoConfiguration
@SpringBootApplication
public class FooApplication {
public static void main(String[] args) {
// Bootstrap the application
SpringApplication.run(FooApplication.class, args);
}
}
### Keybase proof
I hereby claim:
* I am socool on github.
* I am bcorpse (https://keybase.io/bcorpse) on keybase.
* I have a public key ASDG1XAPr3ikwEzsSNd0n-ApaXZ5e8qGCH6sOAJgMk6OIQo
To claim this, I am signing this object:
# Install rvm system-wide
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
# Update the packages
apt-get update
apt-get upgrade
apt-get install build-essential
# get the packages required by ruby
rvm pkg install zlib