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
| git filter-branch --index-filter 'config rm -rf --cached --ignore-unmatch path_to_file' HEAD |
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 pathlib import Path | |
| from openai import OpenAI | |
| import requests | |
| import json | |
| # AnkiConnect API endpoint | |
| ANKI_CONNECT_URL = "http://127.0.0.1:8765" | |
| # OpenAI Client initialization | |
| client = OpenAI() |
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
| // /roms/ports/Half-Life/value/autoexec.cfg | |
| alias "+SelectHold" "bind L1_BUTTON load quick; bind R1_BUTTON save quick; bind X_BUTTON cancelselect" | |
| alias "-SelectHold" "bind L1_BUTTON +duck; bind R1_BUTTON +attack; bind X_BUTTON impulse 100" |
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
| ------------------------------------ | |
| # Download opencore-amr-0.1.5, ffmpeg-2.4.14 | |
| ------------------------------------ | |
| # build for armv7 | |
| # opencore-amr | |
| export CC=arm-linux-gnueabihf-gcc | |
| export CXX=arm-linux-gnueabihf-g++ | |
| export AR=arm-linux-gnueabihf-ar |
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
| # Source: https://news.ycombinator.com/item?id=11071754 | |
| git init --bare $HOME/.myconf | |
| alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' | |
| config config status.showUntrackedFiles no | |
| config status | |
| config add .vimrc | |
| config commit -m "Add vimrc" | |
| config add .config/redshift.conf |
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
| console.log("---> Running scripts...."); | |
| let text = document.getElementById("main_content_container").getElementsByClassName("category semantic-no-styling")[0].innerText.trim(); | |
| //if ("Prime Seats" == text) { | |
| if (text.startsWith("Category")) { | |
| document.getElementById("book").click(); | |
| alert("Match found!!!"); | |
| } | |
| else { | |
| setTimeout(function(){history.go(0);}, Math.random() * (2000) + 3000); |
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 | |
| RUN TO_SEARCH="curl"; echo $(apt --installed list $(echo $TO_SEARCH) 2>/dev/null | grep installed | awk -F'[/| ]' '{print $1"="$3}' | tr '\n' ' ') |
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
| git clone https://key@github.com/bqcuong/repo.git |
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
| # print registers | |
| info registers | |
| # print buffer address | |
| p &buffer | |
| # print memory page, 12 words (1 word = 4 bytes) from buffer address | |
| x/12x &buffer | |
| https://www.rapidtables.com/convert/number/hex-to-decimal.html |
NewerOlder