This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from slack_cleaner2 import * | |
| s = SlackCleaner( | |
| token="xxxx-xxxxxxxxxxxxx-xxxxxxxxxxxxx-xxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", | |
| sleep_for=1, | |
| ) | |
| for msg in s.msgs(channels=s.conversations, with_replies=True): | |
| if msg.user == s.myself: | |
| msg.delete(replies=True, files=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @framerSupportedLayoutWidth fixed | |
| * @framerSupportedLayoutHeight fixed | |
| */import{jsx as _jsx}from"react/jsx-runtime";export default function Ouch(props){return /*#__PURE__*/_jsx("div",{style:{overflow:"hidden",...props.style},children:/*#__PURE__*/_jsx("img",{style:{width:"1000%"},decoding:"async",src:"data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAAGUbWV0YQAAAAAAAAAzaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAEFWSUYgU3RpbGwgUGljdHVyZQAAAAAOcGl0bQAAAAAAAQAAAG5paW5mAAAAAAADAAAAGmluZmUCAAAAAAEAAGF2MDFDb2xvcgAAAAAZaW5mZQIAAAAAAgAARXhpZkV4aWYAAAAALWluZmUCAAAAAAMAAG1pbWVYTVAAYXBwbGljYXRpb24vcmRmK3htbAAAAAAAOmlsb2MAAAAARAAAAwABAAAAAQAAAbwAAAQdAAIAAAABAAAF2QAAAUYAAwAAAAEAAAcfAAAx0QAAAHdpcHJwAAAAV2lwY28AAAAUaXNwZQAAAAAAAAHaAAAAyAAAABBwaXhpAAAAAAMKCgoAAAAMYXYxQ4EATAAAAAATY29scm5jbHgACQAQAAmAAAAADGNsbGkMmQQrAAAAGGlwbWEAAAAAAAAAAQABBQECBIMFAAAAKGlyZWYAAAAAAAAADmNkc2MAAgABAAEAAAAOY2RzYwADAAEAAQAAAABtZGF0EgAKChgh+zjsUJEAmEAyjAgYTwGCiiiigABRAs/KKT1me5r0oliE6R61yrcPKMlYyWMbFpN55nOKV0rJa2P5TDEAwDAryae3H |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # https://gist.github.com/grikomsn/ff46c663be2a077bd4749073489e163a | |
| git log --graph --oneline --decorate `git fsck --no-reflog | awk '/dangling commit/ {print $3}'` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
NewerOlder