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
| // For use on https://twitter.com/settings/your_twitter_data/twitter_interests | |
| function uncheckAll() { | |
| let inputs = document.querySelectorAll('input[type="checkbox"]'); | |
| let delay = 0 | |
| for (let i = 0; i < inputs.length; i++) { | |
| if (inputs[i].checked) { | |
| setTimeout(() => { inputs[i].click( new Event('change') ) ; console.log(i) }, delay); | |
| delay += 1000; | |
| } else { | |
| console.log("Skipped " + i) |
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/sh | |
| # rename-pictures.sh | |
| # Author: Justine Tunney <jtunney@gmail.com> | |
| # License: Apache 2.0 | |
| # | |
| # This shell script can be used to ensure all the images in a folder | |
| # have good descriptive filenames that are written in English. It's | |
| # based on the Mistral 7b and LLaVA v1.5 models. | |
| # | |
| # For example, the following command: |
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
| # Clone llama.cpp | |
| git clone https://github.com/ggerganov/llama.cpp.git | |
| cd llama.cpp | |
| # Build it | |
| make clean | |
| LLAMA_METAL=1 make | |
| # Download model | |
| export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin |
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 network | |
| import socket | |
| import time | |
| import struct | |
| from machine import Pin | |
| NTP_DELTA = 2208988800 | |
| host = "pool.ntp.org" |
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
| SSID = "" | |
| PSK = "" |
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
| sqlcsv() { | |
| if [ $# -lt 2 ] | |
| then | |
| echo "USAGE: sqlcsv [filename.csv] [SQL]" | |
| echo "In the SQL, refer to the data sourse as [filename]" | |
| else | |
| filename="$1" | |
| dataname=${filename%????} | |
| sqlite3 :memory: -cmd '.mode csv' -cmd ".import $filename $dataname" -cmd '.mode markdown' $2 | |
| 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
| javascript:localStorage.clear();sessionStorage.clear();(function(){var cookies=document.cookie.split("; ");for(var c=0;c<cookies.length;c+=1){var d=window.location.hostname.split(".");while(d.length>0){var cookieBase=encodeURIComponent(cookies[c].split(";")[0].split("=")[0])+'=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain='+d.join('.')+' ;path=';var p=location.pathname.split('/');document.cookie=cookieBase+'/';while(p.length>0){document.cookie=cookieBase+p.join('/');p.pop()};d.shift()}}})();window.location="https://facebook.com/l.php?u="+encodeURIComponent(window.location.href) |
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
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
NewerOlder