Skip to content

Instantly share code, notes, and snippets.

View dit7ya's full-sized avatar
🧩
Taking a break

Shayon dit7ya

🧩
Taking a break
  • Shores of Inifinity
View GitHub Profile
571a07356803b3505e1adcffd0f47e75443218bf
@dit7ya
dit7ya / Erros
Last active January 22, 2023 18:05
immich buildNpmPackage
immich-server> npm ERR! code ENOTCACHED
immich-server> npm ERR! request to https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz failed: cache mode is 'only-if-cached' but no cached response is available.
@dit7ya
dit7ya / flake.nix
Created August 18, 2022 08:37
Iced Rust NixOS Wayland
{
description = "Build a cargo project without extra checks";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
crane = {
url = "github:ipetkov/crane";
inputs.nixpkgs.follows = "nixpkgs";
};
@dit7ya
dit7ya / flake.nix
Created July 7, 2022 17:48
Tauri on NixOS Wayland
{
inputs = {
naersk.url = "github:nmattia/naersk/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
@dit7ya
dit7ya / cloudinit.yaml
Last active May 19, 2023 18:14 — forked from vamega/cloudinit.yaml
cloudinit script for Oracle Linux 8 to NixOS with ESP resizing
#cloud-config
# vim: syntax=yaml
# Derived from https://gist.github.com/kradalby/0957a5d4fbb9018d0b700b118f5c5341
disable_root: false
ssh_authorized_keys: []
write_files:
- path: "/etc/ssh/sshd_config.d/permit_root"
owner: "root:root"
permissions: "0644"
@dit7ya
dit7ya / touchegg-compilation.txt
Created September 18, 2020 15:37
Touchegg compilation errors
[ 3%] Building CXX object CMakeFiles/touchegg.dir/src/actions/action-factory.cpp.o
[ 7%] Building CXX object CMakeFiles/touchegg.dir/src/actions/animated-action.cpp.o
[ 11%] Building CXX object CMakeFiles/touchegg.dir/src/actions/change-desktop.cpp.o
[ 14%] Building CXX object CMakeFiles/touchegg.dir/src/actions/close-window.cpp.o
[ 18%] Building CXX object CMakeFiles/touchegg.dir/src/actions/maximize-restore-window.cpp.o
[ 22%] Building CXX object CMakeFiles/touchegg.dir/src/actions/minimize-window.cpp.o
[ 25%] Building CXX object CMakeFiles/touchegg.dir/src/actions/run-command.cpp.o
[ 29%] Building CXX object CMakeFiles/touchegg.dir/src/actions/send-keys.cpp.o
[ 33%] Building CXX object CMakeFiles/touchegg.dir/src/actions/show-desktop.cpp.o
[ 37%] Building CXX object CMakeFiles/touchegg.dir/src/actions/tile-window.cpp.o
@dit7ya
dit7ya / rc.lua
Last active February 12, 2020 17:36
Awesome Config
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
@dit7ya
dit7ya / 1.py
Created January 6, 2019 14:40
CodeSignal First Interview Problem
import numpy as np
def firstDuplicate(a):
num = -1
seen = np.zeros(len(a))
for x in a:
#!/usr/bin/env bash
phrase=$(echo $1 | xargs echo -n)
if [[ ${#phrase} == 0 ]]
then
echo 'Fine. Be that way!'