Skip to content

Instantly share code, notes, and snippets.

View grikomsn's full-sized avatar

Griko Nibras grikomsn

View GitHub Profile

Keybase proof

I hereby claim:

  • I am grikomsn on github.
  • I am grikomsn (https://keybase.io/grikomsn) on keybase.
  • I have a public key whose fingerprint is C8D1 44D7 CBD8 E183 2449 69E1 194C DB6C 6785 C7B3

To claim this, I am signing this object:

import { AtUri, BskyAgent } from "@atproto/api";
const raise = (message?: string) => {
throw new Error(message);
};
const besky = async () => {
const username = process.env.BLUESKY_USERNAME || raise(`env BLUESKY_USERNAME not set`);
const password = process.env.BLUESKY_PASSWORD || raise(`env BLUESKY_PASSWORD not set`);
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/LOL
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/LOL
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/LOL
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/LOL
sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/LOL
@grikomsn
grikomsn / build-static.sh
Last active February 20, 2023 13:26
photo-stream upstream syncer
#!/usr/bin/env bash
build_with_cache() {
if [[ -d "$XDG_CACHE_HOME"/photos ]]; then
echo "Copying cached photos directory..."
rsync -a "$XDG_CACHE_HOME"/photos/ photos
else
echo "No cached photos directory to be found"
fi
#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Ask for the administrator password upfront
sudo -v
#!/bin/bash
# https://gist.github.com/grikomsn/ff46c663be2a077bd4749073489e163a
git log --graph --oneline --decorate `git fsck --no-reflog | awk '/dangling commit/ {print $3}'`
patch_electron() {
SED_PATTERN='s/ /\\ /g'
APP_PATCHED=$(echo $1 | sed -e "$SED_PATTERN")
APP_ORIG="$APP_PATCHED\ 2"
APP_PWD=$(pwd | sed -e "$SED_PATTERN")
if [ $# -eq 0 ]
then
printf "name pls\n"
else
[
{
"nameWithOwner": "EbookFoundation/free-programming-books",
"description": ":books: Freely available programming books",
"url": "https://github.com/EbookFoundation/free-programming-books"
},
{
"nameWithOwner": "public-apis/public-apis",
"description": "A collective list of free APIs for use in software and web development.",
"url": "https://github.com/public-apis/public-apis"
@grikomsn
grikomsn / dasdad_vwmdl_crshr.cfg
Created June 22, 2017 09:58
My CS:GO viewmodel and crosshair configs
cl_crosshair_drawoutline "1"
cl_crosshair_dynamic_maxdist_splitratio "0.35"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "0.5"
cl_crosshair_dynamic_splitdist "7"
cl_crosshair_outlinethickness "1"
cl_crosshair_sniper_show_normal_inaccuracy "0"
cl_crosshair_sniper_width "1"
cl_crosshairalpha "255"
cl_crosshaircolor "1"