Skip to content

Instantly share code, notes, and snippets.

View cihat's full-sized avatar
💻
writing code🚀

Cihat SALİK cihat

💻
writing code🚀
View GitHub Profile
@cihat
cihat / loading_messages.js
Created April 24, 2024 15:21 — forked from meain/loading_messages.js
Funny loading messages
export default [
"Reticulating splines...",
"Generating witty dialog...",
"Swapping time and space...",
"Spinning violently around the y-axis...",
"Tokenizing real life...",
"Bending the spoon...",
"Filtering morale...",
"Don't think of purple hippos...",
"We need a new fuse...",
@cihat
cihat / rust-command-line-utilities.markdown
Created January 28, 2024 00:24 — forked from sts10/rust-command-line-utilities.markdown
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@cihat
cihat / brew-bundle-brewfile-tips.md
Created January 27, 2024 23:34 — forked from ChristopherA/brew-bundle-brewfile-tips.md
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@cihat
cihat / tmux-cheat-sheet.md
Created January 6, 2024 18:17 — forked from michaellihs/tmux-cheat-sheet.md
tmux Cheat Sheet
@cihat
cihat / gist:50a4dabd9aa93e73eae9b7f37103657a
Created November 25, 2023 22:38
Bootable Disk on MacOS
~ sudo diskutil list
~ sudo umount /dev/(IDENTIFIER)
~ sudo dd bs=4M if=/path-of-iso-file of=/dev/(IDENTIFIER) status=progress oflag=sync
@cihat
cihat / postgres.md
Created June 22, 2023 19:27 — forked from phortuin/postgres.md
Set up postgres + database on MacOS (M1)

Based on this blogpost.

Install with Homebrew:

$ brew install postgresql@14

(The version number 14 needs to be explicitly stated. The @ mark designates a version number is specified. If you need an older version of postgres, use postgresql@13, for example.)

{
"workbench.sideBar.location": "right",
// "editor.fontFamily": "Fira Code, 'Cascadia Code', Consolas, 'Courier New', monospace",
"editor.fontFamily": "JetBrains Mono",
"editor.fontLigatures": true,
"[json]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace",
@cihat
cihat / .vimrc
Created November 8, 2022 20:31 — forked from SelmanKahya/.vimrc
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" -----------------------------
" IMPORTANT:
" Keep Plugin commands between vundle#begin/end.
@cihat
cihat / gist:d67b984a42dd8b3b219933602052b295
Created September 25, 2022 19:29
Setting to turn off eslint errors for vuejs
module.exports = {
root: false,
extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/eslint-config-prettier"],
parserOptions: {
ecmaVersion: "latest",
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
},
const list = [];
function fixStream(streams) {
let count_order = 0;
let total = 0;
let stream_group = [];
streams = [].concat(...streams);
streams.forEach((item, i, stream) => {