Skip to content

Instantly share code, notes, and snippets.

View hrishi045's full-sized avatar

hrishi045 hrishi045

View GitHub Profile
% adb shell cmd overlay list [255]
com.motorola.faceunlock
[x] com.motorola.faceunlock.overlay
com.android.carrierconfig
[x] com.android.carrierconfig.auto_generated_rro_vendor__
android
[x] org.lineageos.overlay.accent.black
[ ] org.lineageos.overlay.accent.brown
@hrishi045
hrishi045 / setting-up.md
Created May 16, 2020 17:10
Jackd Cadence

I have no idea why it works, but it does for me. Tested on Arch Linux.

Install:

cadence, jack2

Jack Configuration:

  • Configure ->
    • Driver ->
  • Device/Interface = hw:Generic;0 [Analog]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- Generated by Font Manager. Do NOT edit this file. -->
<fontconfig>
<match target="font">
<edit name="hintstyle" mode="assign" binding="strong">
<int>1</int>
</edit>
<edit name="antialias" mode="assign" binding="strong">
<bool>true</bool>
@hrishi045
hrishi045 / Apriori.java
Created October 26, 2019 15:28
DSLabPrograms
import java.io.*;
public class Apriori {
public static void main(String[] arg) throws IOException {
BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter no. of transactions: ");
int n = Integer.parseInt(b.readLine());
System.out.println("Items: 1. Milk 2. Bread 3. Coffee 4. Juice 5. Cookies 6. Jam");
@hrishi045
hrishi045 / dabblet.css
Last active March 15, 2019 15:19
Untitled
@import url('https://fonts.googleapis.com/css?family=Oswald|Playfair+Display');
body {
font-family: Playfair Display;
}
section {
border: 1px solid black;
position: relative;
margin: 1.5rem;
@hrishi045
hrishi045 / dabblet.css
Last active March 28, 2019 11:35
Untitled
body {
font-family: sans-serif;
margin: 0;
}
main {
max-width: 900px;
margin: 0 auto;
}
@hrishi045
hrishi045 / dabblet.css
Last active March 12, 2019 02:11
Untitled
body {
font-family: sans-serif;
margin: 0;
}
main {
max-width: 900px;
margin: 0 auto;
}
body {
font-family: sans-serif;
}
#logo {
text-align: center;
}
nav {
display: block;
@hrishi045
hrishi045 / toggle_between_monitors
Created February 25, 2019 15:42
Monitor Toggle script
#!/usr/bin/env bash
intern=eDP1
extern=HDMI1
if xrandr | grep "$extern disconnected"; then
xrandr --output "$extern" --off --output "$intern" --auto
else
xrandr --output "$intern" --off --output "$extern" --auto
fi
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix