Skip to content

Instantly share code, notes, and snippets.

View Lulzx's full-sized avatar
👀
69 people are currently looking at this profile

Lulzx Lulzx

👀
69 people are currently looking at this profile
View GitHub Profile
Hello

Keybase proof

I hereby claim:

  • I am lulzx on github.
  • I am lulzx (https://keybase.io/lulzx) on keybase.
  • I have a public key ASDA9wesgUb092VtWiMCnPM7a9WSG3MLl4y9r-KoZSFEaAo

To claim this, I am signing this object:

@Lulzx
Lulzx / lmao.php
Created February 23, 2018 18:39
phpshit
<?php
$servername = "localhost";
$username = "username";
$password = "password";
$conn = new mysqli($servername, $username, $password);
if ($conn->connect_error)
{
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
@Lulzx
Lulzx / lulz.py
Created November 8, 2018 16:38
kill me
import os
import sys
import signal
import subprocess
currentPID = os.getpid()
if 'pid' not in os.listdir():
with open('pid', mode='w') as f:
print(str(currentPID), file=f)
else:
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.waitForSelector('.main_wrapper > .form > #form1 > p > #username')
await page.click('.main_wrapper > .form > #form1 > p > #username')
await page.waitForSelector('.main_wrapper > .form > #form1 > p > #password')
await page.click('.main_wrapper > .form > #form1 > p > #password')
@Lulzx
Lulzx / solus-usb.sh
Created December 14, 2018 11:29
command to flash solus' iso to usb drive
sudo dd if=Solus-3.9999-Budgie.iso of=/dev/sdb bs=1M;sudo sync;sudo eject /dev/sdb
@Lulzx
Lulzx / homo_sol-1.md
Created February 2, 2019 15:04
solution for a math problem

Solve ( d^2 y(x))/( dx^2) + y(x) = 0:

Assume a solution will be proportional to e^(λ x) for some constant λ. Substitute y(x) = e^(λ x) into the differential equation: ( d^2 )/( dx^2)(e^(λ x)) + e^(λ x) = 0

Substitute ( d^2 )/( dx^2)(e^(λ x)) = λ^2 e^(λ x): λ^2 e^(λ x) + e^(λ x) = 0

Factor out e^(λ x):

#include <stdio.h>
int count(int l, int r, int n, int m)
{
int count = 0;
for (int i = l; i <= r; i++) {
int sum = 0, x = i, t;
t = (i % m);
while (x != 0) {
sum += x % 10;
#include <stdio.h>
int main(){
int i;
scanf("%d", &i);
while(i != 1){
printf("%d → ", i);
if(!(i % 2)){
i /= 2;
}
#include <stdio.h>
void check(int matrix, int rows, int columns){
printf("%d", matrix[0][0]);
}
int main(){
int rows, columns, n, matrix[1000][1000];
scanf("%d%d", &rows, &columns);
for(int i = 0; i < rows; i++){