Skip to content

Instantly share code, notes, and snippets.

@xbns
xbns / zsh_antigen_oh-my-zsh_powerlevel10k.md
Created June 9, 2022 21:17
{Installation of zsh in wsl2] Install Zsh, Antigen plugin manager, Oh My Zsh extensions & powerlevel10k Theme in wsl1 #zsh #wsl2 #antigen #oh-my-zsh

1. How to install zsh package on ubuntu 20.04

$ sudo apt install zsh

*Launch Zsh

$ zsh
@xbns
xbns / refind.conf
Last active May 27, 2022 23:45
How to install rEFInd Boot Manager & bootloader
timeout 20
use_graphics_for linux
scanfor internal,external,optical,manual,firmware
dont_scan_files grubx64.efi
#include manual.conf
@xbns
xbns / merge.md
Last active August 9, 2021 11:00
#ghostscript #pdf
@xbns
xbns / pandoc-docx-docx.bat
Created May 24, 2021 06:37
#batch convert from docx to docx using pandoc
:: pandoc-docx-md.bat
::
:: Don't show these commands to the user
@ECHO off
:: Set the title of the window
TITLE Convert docx to markdown with Pandoc
:: Select file marker
:selectfile
:: Clear any preexisting filename variables
SET filename=
@xbns
xbns / pretty-powershell.md
Last active May 20, 2021 05:54
#powershell #windows Pretty Powershell Prompt

Make a pretty powershell prompt using delugia nerd font, oh-my-posh and jandedobbeleer theme

Delugia Nerd Font has support for gylphs

1. Install Git

winget install Git

2. Install oh-my-posh module

@xbns
xbns / arch-install-gpt-synopsis.md
Last active December 30, 2020 01:13
Simple way to Install Arch Linux on UEFI system

Step 1 Connect to internet from install disk or usb

Start iwd.service and connect your wifi

# systemctl start iwd.service
# systemctl status iwd.service
# iwctl --passphrase <you_wifi_password> station <name_of_station> connect <wifi_name>
# timeout 2 ping google.com
@xbns
xbns / cloudSettings
Last active December 19, 2020 00:25
VS Code Setting #settings
{"lastUpload":"2020-12-18T21:25:40.250Z","extensionVersion":"v3.4.3"}
@xbns
xbns / world-schema.sql
Created December 16, 2020 20:30
World Schema #database #schema
-- MySQL dump 10.13 Distrib 5.1.51, for pc-linux-gnu (i686)
--
-- Host: 127.0.0.1 Database: world
-- ------------------------------------------------------
-- Server version 5.1.51-debug-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES latin1 */;
@xbns
xbns / sakila-data.sql
Last active December 16, 2020 20:29
Sakila Database #database #schema #test-data
-- Sakila Sample Database Schema
-- Version 1.0
-- Copyright (c) 2006, 2015, Oracle and/or its affiliates.
-- All rights reserved.
-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
@xbns
xbns / process-user-input.py
Created December 15, 2020 17:24
process user input #hackerrank
##
# my_array = list (map (int, input().strip().split())) [:I]
#
## driver variables to test
n = 3
my_array = ' 1 6 8 '
# 1. input() function - to get user input from STDIN