Skip to content

Instantly share code, notes, and snippets.

View sineemore's full-sized avatar
🖤

sineemore

🖤
View GitHub Profile
@sineemore
sineemore / xupdates.sh
Last active November 13, 2021 02:25
Script to list updated packages without root
#!/bin/sh
set -eu
argv0="$0"
usage() {
printf 'usage: %s [-s] [-m] [-h] [package...]\n' "$argv0"
}
adobe-flash-plugin-ppapi
CLion
DataGrip
GoLand
JAI
MultiMC
PhpStorm
ReDoomEd.app
RubyMine
tarsnap
id author text date
1 Ты не становишься моложе, Марк. Мир меняется. Музыка меняется, даже наркотики меняются. Нельзя же сидеть целыми днями дома и мечтать о героине и Зигги Попе.
2 Марк Игги Поп.
3 Без разницы. Все равно он уже умер.
4 Марк Игги Поп не умер, в прошлом году Томми ходил на его концерт.
5 Ты должен найти для себя что-то новое.
@sineemore
sineemore / messages.json
Created September 30, 2021 11:58
messages
{
"messages": [
{
"id": "message-1",
"date": "2012-04-23T18:25:43.511Z",
"author": "client",
"text": "Привет, а в каком формате загружать диалоги?"
},
{
"id": "message-2",
@sineemore
sineemore / pewpew.csv
Last active September 24, 2021 14:04
pewpew.csv
// basic file operations
#include <iostream>
#include <fstream>
using namespace std;
int main () {
ofstream myfile;
myfile.open ("example.txt");
myfile << "Writing this to a file.\n";
myfile.close();
@sineemore
sineemore / mem.csv
Created September 20, 2021 10:43
mem.csv
dialogId message initiator
1 вы продоёте рыбов cat
1 нет просто показываю seller
1 красивое... cat
@sineemore
sineemore / pair.json
Created September 17, 2021 10:52
pair.json
{
"image1": "https://upload.wikimedia.org/wikipedia/ru/c/cb/AmazingSpiderMan50.jpg",
"image2": "https://upload.wikimedia.org/wikipedia/ru/7/75/Ant-Man_poster.jpg"
}
@sineemore
sineemore / document.html
Last active September 13, 2021 13:09
document.html
<h1 id="sample-markdown">Sample Markdown</h1>
<p>This is some basic, sample markdown.</p>
<h2 id="second-heading">Second Heading</h2>
<ul>
<li>Unordered lists, and:<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
</li>
{
"messages": [
{
"id": "message-1",
"date": "2012-04-23T18:25:43.511Z",
"author": "client",
"text": "Привет, а в каком формате загружать диалоги?"
},
{
"id": "message-2",
@sineemore
sineemore / main.go
Created July 28, 2021 13:41
sleep less on Ctrl+C
package main
import (
"fmt"
"os"
"os/signal"
"time"
)
func main() {