Skip to content

Instantly share code, notes, and snippets.

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
[{
"title": "Greetings, Earthlings",
"date": "May 7, 2020",
"thumb": "https://cdn.openai.com/research-covers/solving-rubiks-cube/2x-no-mark.jpg",
"data": {
"txt0": "Next morning the not-yet-subsided sea rolled in long slow billows of mighty bulk, and striving in the Pequod’s gurgling track, pushed her on like giants’ palms outspread. The strong, unstaggering breeze abounded so, that sky and air seemed vast outbellying sails; the whole world boomed before the wind. Muffled in the full morning light, the invisible sun was only known by the spread intensity of his place; where his bayonet raysmoved on in stacks. Emblazonings, as of crowned Babylonian kings and queens, reigned over everything. The sea was as a crucible of molten gold, that bubblingly leaps with light.",
"txt1": "Finally Finished first little blog, phew. Next some blogs gonna be about GNOME journey.",
"img" : {
"url": "https://3xvudwwkhak
list { background: transparent; }
list row { min-height: 36px; padding: 0 24px; }
list row image.sidebar-icon:dir(ltr) { padding-right: 8px; }
list row image.sidebar-icon:dir(rtl) { padding-left: 8px; }
list row label.sidebar-label:dir(ltr) { padding-right: 2px; }
list row label.sidebar-label:dir(rtl) { padding-left: 2px; }
headerbar {
background: transparent;
border-bottom: 0;
#-----------------------------------------
# Installing Required Tools
#-----------------------------------------
sudo apt-get install live-build
#----------------------------------------
# Configurating Live Build (lb_config)
#----------------------------------------
lb config \
--apt-recommends false \
#-----------------------------------------
# Installing Required Tools
#-----------------------------------------
sudo apt-get install live-build
#----------------------------------------
# Configurating Live Build (lb_config)
#----------------------------------------
lb config \
adwaita-icon-theme
at-spi2-atk
at-spi2-core
atk
atkmm
atkmm
baobab
cantarell-fonts
cheese
clutter
# Install build tools
sudo apt-get install python3 python3-pip python3-setuptools python3-wheel ninja-build meson
#gnome-shell
echo "downloading gnome-shell..."
curl -o gnome-shell-3.35.91.tar.xz https://ftp.gnome.org/pub/GNOME/sources/gnome-shell/3.35/gnome-shell-3.35.91.tar.xz
tar -xz gnome-shell-3.35.91.tar.xz
echo "install gnome-shell dependencies..."
sudo apt-get install pkg-config cmake libecal2.0-dev libgirepository1.0-dev
import kotlinx.cinterop.*
import platform.posix.*
// IrFile
// ------------------------------------------------------
data class PsiFile internal constructor(val path: String, var name: String = path.substringAfterLast('/'))
val PsiFile.open get() = open(path, O_RDONLY)
val PsiFile.size get() = nativeHeap.alloc<stat>().apply { stat(path, ptr) }.st_size
// http_URL = "http:" "//" host [ ":" port ] [ abs_path [ "?" query ]]
//
// Usage:
// ----------------------------------------------
// val url = URL("http://abc.com:80/smith/home.html?key=value&key2=value2")
// println("${url.protocol} -- ${url.host} -- ${url.port} -- ${url.path} -- ${url.query}")
// ---------------------------------------------
class URL(url: String){
var protocol = ""
enum class Type { STATUS, HEADER, BODY }
fun readK(fd: Int, chunk: Int, block: (ByteArray) -> Unit) {
var type = Type.STATUS
var contentLength = 0L
var spaceCount = 0
var method = ""; var path = ""; var protocol = ""
var key = ""; var value = ""