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
| Running: qwen2.5-coder-0.5b:Q5_0 | |
| Type '/exit' or press Ctrl+C to quit | |
| Type '/help' to see available commands | |
| hello | |
| > ❌ Error: Failed to get response from the model. Please try again. | |
| Type your message or use /help for commands... |
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
| class Hello | |
| def say | |
| puts "hello" | |
| end | |
| end | |
| Hello.new.say | |
| # hello | |
| module HelloPatch |
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 ruby | |
| str = `passenger-memory-stats | grep "Passenger RubyApp" | grep MB | grep -v 'grep'` | |
| rows = str.split(/\n/) | |
| rows = rows.map {|s| s.gsub(/\s+/, ' ').gsub(/MB Passenger.*/, '').gsub(/ .* MB/, '')} | |
| rows = rows.select{|row| pid, mem = row.split(' '); mem.to_f > 1000 }.map{|row| row.split(' ').first} | |
| rows.each{|pid| puts "kill #{pid}"; `kill #{pid}` } |
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
| 59bcc3ad6775562f845953cf01624225 |
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 -e | |
| if [ $# != 3 ] | |
| then | |
| echo "usage: $0 <src-port> <dst-host> <dst-port>" | |
| exit 0 | |
| fi | |
| while true; do | |
| TMP=`mktemp -d` |
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
| db.currentOp().inprog.forEach( | |
| function(op) { | |
| if(op.secs_running > 5) printjson(op); | |
| } | |
| ) | |
| db.currentOp().inprog.forEach( | |
| function(op) { | |
| if(op.secs_running > 5) db.killOp(op["opid"]); | |
| } |
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 apt-get install pkg-config libqt4-dev libqca2-dev \ | |
| libqca2-plugin-ossl libqjson-dev libzmq3-dev python-zmq \ | |
| python-setproctitle python-jinja2 python-tnetstring \ | |
| python-blist mongrel2-core zurl | |
| git clone git://github.com/fanout/pushpin.git | |
| cd pushpin | |
| git submodule init && git submodule update | |
| make |
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
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net" | |
| "os" | |
| "os/signal" | |
| "runtime/pprof" |
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
| require 'active_support/concern' | |
| module Concerns | |
| module Indexable | |
| class ResultList | |
| include Enumerable | |
| attr_accessor :results | |
| attr_accessor :total | |
| attr_accessor :from |
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
| class Fixnum | |
| def +(x) | |
| "potato" | |
| end | |
| def *(x) | |
| "potato" | |
| end | |
| def /(x) |
NewerOlder