Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
curl -fsSL https://pkgs.tailscale.com/stable/debian/bullseye.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/debian/bullseye.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get update
sudo apt-get install tailscale
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Elasticquent\ElasticquentTrait;
use SleepingOwl\Models\SleepingOwlModel;
class Place extends SleepingOwlModel
{% for version in versions %}
<li><a href="download/{{version.files}}">{{version}}</a> <span>( {{version.description}} )<span> | <small><a href="#" onclick='$("#f{{version.pk}}").toggle();'>Comment</a></small></li>
<div id="f{{version.pk}}" style="display:none;">
{% for comment in version.comments_set.all %}
test
{% endfor %}
<form method="post">
<input type="hidden" name="version" value="{{version.pk}}" />
<textarea name="comment"></textarea>
<h1>Login</h1>
{% if error %}
lol
<p>{{error}}</p>
{% endif %}
<form action="{% url 'login' %}" method="POST">
{% csrf_token %}
<input type="text" name="username" placeholder="Username" />
<input type="password" name="password" placeholder="Password" />
@raimonds1503
raimonds1503 / GV.as
Created March 6, 2013 18:51
Lisntening for events
package
{
import blocked.events.NewWorldEvent;
import blocked.worlds.World;
import blocked.worlds.WorldManager;
import net.hires.debug.Stats;
import playerio.Client;
import playerio.Connection;
import starling.core.Starling;
import starling.display.Sprite;
package draugiem
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.HTTPStatusEvent;
import flash.net.URLLoader;
import flash.net.URLRequest;
/**
* ...
@raimonds1503
raimonds1503 / MainActivity.java
Created November 7, 2012 18:53
Why crashing?
private void showRegister(View view) {
try {
Intent intent = new Intent(this, RegisterActivity.class);
intent.putExtra("t", "t");
startActivity(intent);
} catch (IllegalStateException e) {
e.printStackTrace();
}
}
@raimonds1503
raimonds1503 / bar.cpp
Created August 17, 2012 18:44
How I suck at C++
#include "bar.h"
Bar::Bar(float dx, float dy, float dwidth, float dheight, float ddepth) {
x = dx;
y = dy;
width = dwidth;
height = dheight;
depth = ddepth;
}