Skip to content

Instantly share code, notes, and snippets.

@yeokm1
yeokm1 / ttrss-on-ubuntu.md
Created May 16, 2015 09:42
How to install Tiny Tiny RSS on Ubuntu

Adapted from here

  1. Install all packages
sudo apt-get update
sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git
  1. Configure PostgresSQL
@huseyinyilmaz
huseyinyilmaz / grep.hs
Created December 3, 2015 22:32
haskell implementation of grep tool
{-
Haskell implementation of grep tool.
http://linux.die.net/man/1/grep
-- from stdin:
$ ls | ./grep ep.hs
-- with file names
$ ./grep List grep.hs
grep.hs:import Data.List(isInfixOf)
@Holger-Will
Holger-Will / jwtRS256.sh
Last active May 6, 2024 00:35
generate public private key pair (RSA RS256) for use with koa-jwt jasonwebtoken etc.
# generate private key
openssl genrsa -out private.pem 2048
# extatract public key from it
openssl rsa -in private.pem -pubout > public.pem
@AndrewMast
AndrewMast / disable_vanguard.vbs
Last active May 6, 2024 00:33
Commands to disable Riot Vanguard when you aren't playing Valorant
' Disables Vanguard from starting when you boot your computer
Call CreateObject("Shell.Application").ShellExecute("cmd.exe", "/c ""sc config vgc start= disabled & sc config vgk start= disabled""", "", "runas")
@wldomiciano
wldomiciano / circle-drawing.c
Created May 23, 2019 23:23
Drawing a normal and filled circle with SDL 2
#include <SDL.h>
SDL_Window* window;
SDL_Renderer* renderer;
void drawCircle(int xc, int yc, int x, int y) {
SDL_RenderDrawPoint(renderer, xc + x, yc + y);
SDL_RenderDrawPoint(renderer, xc - x, yc + y);
SDL_RenderDrawPoint(renderer, xc + x, yc - y);
@unixpickle
unixpickle / README.md
Created November 14, 2019 20:58
Hacking Lily's Garden

Overview

In this document, I will describe how I managed to get unlimited stars and coins in the Android game "Lily's Garden". In short, here are the steps:

  • Use the adb backup feature to extract all of the game's data
  • Extract the Android backup into a tar file
  • Modify the file which stores the number of coins and stars
  • Re-sign the coins/stars field using a reverse-engineered HMAC key
  • Convert the tar file back to an Android backup
@m-Phoenix852
m-Phoenix852 / discord-token-logger.js
Created August 26, 2020 07:45
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
### BY: MUNFAQQIHA ####################################################################################################################################
######################### A BASH SHELL SCRIPT FOR LINUX AND WINDOWS TO AUTOMATICALLY NON-STOP UPLOAD FILES TO WWW.TERABOX.COM #########################
#######################################################################################################################################################
### ----------------------------------------------------------------------------------------------------------------------------------------------- ###
### | a sample of successful upload on linux & windows: https://terabox.fun/sl/2ZTPZn8B78 | ###
### ----------------------------------------------------------------------------------------------------------------------------------------------- ###
### it is possible to upload multiple different types of files recursively, except 0-byte file size, in a folder
@burritojustice
burritojustice / gazeteer_of_planetary_nomenclature.geojson
Last active May 6, 2024 00:18
mars elevation, landers, features
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
.log
0
1
1234
12345
123456
18Renmeng
2
ACrenshaw
AGorg