Skip to content

Instantly share code, notes, and snippets.

View thamognya's full-sized avatar
🐧
Hello World, I am a dev.

Thamognya thamognya

🐧
Hello World, I am a dev.
View GitHub Profile
@thamognya
thamognya / gentoo-recompile-everything.pl
Created March 28, 2022 01:37
Gentoo Script to Recompile Everything
#!/usr/bin/perl -w
#
# Generate a script which when run recompiles each and every package
# in the Gentoo system.
# This will typically be required on a major GCC upgrade.
#
# $HeadURL: /caches/xsvn/trunk/usr/local/sbin/recompile-entire-system $
# $Author: root $
# $Date: 2006-09-01T14:15:49.548823Z $
# $Revision: 334 $
@thamognya
thamognya / debian-hurd-installer.sh
Created April 2, 2022 00:53
Debian GNU/Hurd Installler: Gets Debian GNU/Hurd working with kvm.
#!/bin/sh
# -i to specifiy iso directory
# -c to install iso cd, if you do not have it already (if you have specify with -i option)
# -d to install iso dvd, if you do not have it already (if you have specify with -i option)
base_current_link="https://cdimage.debian.org/cdimage/ports/hurd-i386/current/iso-dvd/"
while getopts ":hi:cd:" opt; do
case $opt in
i) dir_for_iso=${OPTARG};;
@thamognya
thamognya / launcher.json
Created April 7, 2022 13:19
Karabiner complex modifications launcher json
{
"title": "Launch apps",
"rules": [
{
"description": "Launch apps by right shift+letters. Editied",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "v",
@thamognya
thamognya / .htaccess
Created April 10, 2022 12:44
.htaccess for directory indexing theme.
Options +Indexes
IndexOptions +FoldersFirst
IndexOptions +XHTML
IndexOptions +HTMLTable
IndexOptions +FancyIndexing
IndexOptions +SuppressRules
HeaderName header.html
@thamognya
thamognya / footer.html
Created April 10, 2022 12:45
footer.html for apache directory index footer
@thamognya
thamognya / header.html
Created April 10, 2022 12:51
header.html for mirror.thamognya.com directory index apache
<head>
<!-- TITLE ATTRIBUTE -->
<title>Thamognya's Mirror Service</title>
<!-- MOBILE DEVICE SUPPORT -->
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- INLINE STYLE (NO MESS OF HIDING ADDITIONAL FILES IN .htaccess) -->
<style type="text/css">
/******************************
INLINE STYLES BEGIN HERE
*****************************/
@thamognya
thamognya / vscode-settings.json
Last active December 30, 2022 15:57
vscode settings.json
{
"telemetry.telemetryLevel": "off",
"workbench.iconTheme": "material-icon-theme",
"editor.autoClosingBrackets": "always",
"editor.fontFamily": "'FiraCode Nerd Font Mono', 'Fira Code', 'Noto Mono', 'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",
"editor.fontLigatures": true,
"editor.fontSize": 18,
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": true,
"security.workspace.trust.untrustedFiles": "open",
@thamognya
thamognya / counter.html
Created July 4, 2022 06:07
A simple html + js counter
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Counter</h1>
@thamognya
thamognya / kitty.conf
Created August 16, 2022 13:46
My Kitty Config
# vim:fileencoding=utf-8:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family Fira Code
bold_font auto
@thamognya
thamognya / bits-stdc++.h
Last active October 22, 2022 10:12
Source code of bits/stdc++.h
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2015 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.