Skip to content

Instantly share code, notes, and snippets.

View rainrisa's full-sized avatar
🏠
Working from home

Ra rainrisa

🏠
Working from home
  • Japan
View GitHub Profile
source: reddit comment
https://sh.reddit.com/r/Frontend/comments/16gpov4/not_getting_any_reply_or_interviews/k0bjwqu/
You obviously don't understand what having a poor mindset is.
If all you're doing is searching job boards for "entry level" jobs then yea they don't exist much anymore. That's what people with a poor mindset are doing. You don't apply for jobs because they have the title you think fits you. You apply for jobs where you think you'd be qualified to do the job. Required qualifications are just a list of what they would like from the applicant but no one will ever have them all. HR people and recruiters create jobe ads. They are just boiler plate. They don't put "entry level" or "junior" anymore. The reason is there are 1000s of people who are applying and they want to discourage anyone that isn't truly motivated from even applying. If you see a job post for web developer that doesn't say "entry level" and immediately skim past it or look at the qualifications and see a technology you don't kno

spesialis mongodb docker guide

  1. start mongodb server
sudo docker run --name mongodb-spesialis -p 27017:27017 -d mongo:4.4

if the message is something like this:

@rainrisa
rainrisa / arch-linux-wifi.txt
Last active September 8, 2023 07:54
setting up iwctl on fresh arch
just enable systemd-resolved.service and iwd.service
there is no need to install NetworkManager or wpa_supplicant
since it will caused duplicate
reference: https://bbs.archlinux.org/viewtopic.php?id=257866
1. react starter, node starter on github is always good
2. make simple project that will be useful
3. remember your stack is just Fullstack JavaScript
4. that means you should just learn Next, Nuxt, and Nest.js
5. don't waste your time to focus on something else
declare module "jdatas" {
function ID(cod: number): Promise<string>;
class File {
direct: string;
constructor(path: string, name: string);
create<T extends object>(data: T, encoding: string): Promise<T>;
@rainrisa
rainrisa / uploadFile.ts
Created June 23, 2023 01:43
Gramjs send file in chunk
import fs from "node:fs";
import { basename } from "node:path";
import bigInt from "big-integer";
import { Api } from "telegram";
import { generateRandomBytes, readBigIntFromBuffer } from "telegram/Helpers.js";
import { getAppropriatedPartSize } from "telegram/Utils.js";
import bot from "../bot.js";
type ProgressCallback = (chunkLength: number, uploaded: number, total: number) => void;
@rainrisa
rainrisa / main.py
Created December 16, 2022 20:21
pyrogram parse entities
# source: gramjs library
# https://github.com/gram-js/gramjs/blob/babc668a6d2b0c193b2b640173ae1935fe02f959/gramjs/tl/custom/message.ts#L839-L854
# https://github.com/gram-js/gramjs/blob/babc668a6d2b0c193b2b640173ae1935fe02f959/gramjs/Utils.ts#L261-L269
def get_inner_text(text, entities):
result = []
for entity in entities:
start = entity.offset
end = start + entity.length
@rainrisa
rainrisa / hideRomaji.js
Created November 29, 2022 20:53
Hide romaji on jlptsensei.com
// open chrome console and copy paste this code
document.querySelectorAll("td.jl-td-gr").forEach((el) => el.style.display = "none")
@rainrisa
rainrisa / script.js
Created November 28, 2022 05:14
Get list of all global variables on a website
Object.keys(window).filter(
(x) =>
typeof window[x] !== "function" &&
Object.entries(Object.getOwnPropertyDescriptor(window, x)).filter(
(entry) =>
["value", "writable", "enumerable", "configurable"].includes(entry[0]) &&
entry[1]
).length === 4
);
@rainrisa
rainrisa / README.md
Created November 22, 2022 04:25
nvchad on debian
  1. install git and wget
sudo apt install git wget
  1. create a dir to store nvim
mkdir nvim-8.1.0 && cd nvim-8.1.0
  1. download nvim package for debian directly from github so that we can get the latest release