This file contains 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
# train_grpo.py | |
import re | |
import torch | |
from datasets import load_dataset, Dataset | |
from transformers import AutoTokenizer, AutoModelForCausalLM | |
from peft import LoraConfig | |
from trl import GRPOConfig, GRPOTrainer | |
# Load and prep dataset |
This file contains 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
// ==UserScript== | |
// @name Twitter Redact Mutes | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author dk | |
// @match ... | |
// @grant none | |
// ==/UserScript== |
This file contains 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
# This is a small script which talks with the Reddit API to do a search | |
# for a particular phrase. It can be cron'd to run on whatever schedule | |
# is appropriate. | |
# In this case, I was trying to find a set of PetSCII key caps for my | |
# mecahnical keyboard in /r/mechmarket. I've ultimately decided I don't | |
# want to spend the kind of money it would take to acquire a set, so I've | |
# stopped caring, but I wanted to save the script for posterity. | |
# Notably, this relies on the Python praw library to work. |
This file contains 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
config.omniauth :wordpress_hosted, ENV['SSO_KEY'], ENV['SSO_SECRET'], | |
strategy_class: OmniAuth::Strategies::WordpressHosted, | |
client_options: { site: ENV['SSO_URL'] } |
This file contains 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
--- | |
grails: | |
profile: web | |
codegen: | |
defaultPackage: cddm | |
gorm: | |
reactor: | |
# Whether to translate GORM events into Reactor events | |
# Disabled by default for performance reasons | |
events: false |
This file contains 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
{ | |
"color_scheme": "Monokai Pro.sublime-color-scheme", | |
"file_exclude_patterns": | |
[ | |
"*.git", | |
"*tmp/cache", | |
"*._*", | |
"*.DS_Store", | |
], | |
"font_face": "Monaco", |
This file contains 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/perl | |
# | |
# usage: vrancid [-dV] [-l] [-f filename | hostname] | |
# | |
use Getopt::Std; | |
getopts('dflV'); | |
if ($opt_V) { | |
print "rancid 2.3.6\n"; | |
exit(0); | |
} |
This file contains 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
# nvidia-xconfig: X configuration file generated by nvidia-xconfig | |
# nvidia-xconfig: version 270.41.06 ([email protected]) Mon Apr 18 15:14:00 PDT 2011 | |
Section "ServerLayout" | |
Identifier "Layout0" | |
Screen 0 "Screen0" 0 0 | |
InputDevice "Keyboard0" "CoreKeyboard" | |
InputDevice "Mouse0" "CorePointer" | |
EndSection |
This file contains 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/ruby | |
File.open("all/router.db").each do |line| | |
(device, type, state) = line.split(":") | |
if state == "up\n" | |
if type == "vyatta" | |
command = "~/bin/clogin" | |
written = `#{command} -c 'cat /opt/vyatta/etc/config/config.boot' #{device} > #{dev` | |
running = `#{command} -c 'show configuration' #{device} > #{device}.running` | |
else |
This file contains 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 ruby | |
require 'net/https' | |
require 'net/smtp' | |
username = 'username' | |
password = 'password' | |
# If you're accessing through SSL: | |
#http = Net::HTTP.new("nagios.domain.com", 443) |