Skip to content

Instantly share code, notes, and snippets.

string bound = "---------------------------" + DateTime.Now.Ticks.ToString("x");
string package = "--" + bound + "\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\n" + username + "\r\n--" + bound + "\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\n" + password + "\r\n--" + bound + "\r\nContent-Disposition: form-data; name=\"uri\"\r\n\r\n" + "/index.cgi" + "\r\n--" + bound + "--\r\n";
pacman -S lib32-mesa xf86-video-amdgpu vulkan-radeon lib32-vulkan-radeon libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau
@nemesis64
nemesis64 / ct.ssh
Created December 11, 2018 13:56
Compliance test for AirOS products
touch ct&&sed -i '/radio.countrycode/c\\radio.countrycode=511' /tmp/system.cfg&&sed -i '/radio.1.countrycode/c\\radio.1.countrycode=511' /tmp/system.cfg&&save;reboot
@nemesis64
nemesis64 / pvt.php
Last active April 15, 2019 14:08
pewdiepie vs t series tracker
<?php
//This work is licensed under do whatever the fuck you want with it, have fun.
$apikey = "PUT YOUR API KEY HERE";
$pewdiepie = json_decode(file_get_contents("https://www.googleapis.com/youtube/v3/channels?part=statistics&id=UC-lHJZR3Gqxm24_Vd_AJ5Yw&key=$apikey"),true)['items']['0']['statistics']['subscriberCount'];
$tseries = json_decode(file_get_contents("https://www.googleapis.com/youtube/v3/channels?part=statistics&id=UCq-Fj5jknLsUf-MWSy4_brA&key=$apikey"),true)['items']['0']['statistics']['subscriberCount'];
$subgap = strval($pewdiepie - $tseries);
if(!empty($_GET['json']) && $_GET['json'] === 'yes')
{
@nemesis64
nemesis64 / urbandictionary.sh
Created September 15, 2018 00:07
bash Script for urban dictionary definition
curl -s "https://api.urbandictionary.com/v0/tooltip?term=$1" | python3 -c "import sys, json, html; print(html.unescape(json.load(sys.stdin)['string']).split('\n',2)[1])"
using System;
using System.IO;
using System.Net;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace scraper
{
class Program
{