Skip to content

Instantly share code, notes, and snippets.

View qls0ulp's full-sized avatar
🏠
Working from home

tt-g qls0ulp

🏠
Working from home
View GitHub Profile
@qls0ulp
qls0ulp / not-bad-code.js
Created July 4, 2020 09:07 — forked from domenic/not-bad-code.js
Avoiding explicit promise construction antipattern
function getUserDetail(username) {
if (userCache[username]) {
return Promise.resolve(userCache[username]);
}
// Use the fetch API to get the information
return fetch('users/' + username + '.json')
.then(function(result) {
userCache[username] = result;
return result;
@qls0ulp
qls0ulp / udemy-full-discount.py
Created April 12, 2020 07:23 — forked from pH-7/udemy-full-discount.py
Get all Udemy Courses with 100% off Coupons thanks to growthcoupon.com & Importer.io
##########
##
## Get all Udemy Courses with 100% off Coupons thanks to growthcoupon.com & Importer.io
##
##########
from json import loads
from bs4 import BeautifulSoup
import mechanize
@qls0ulp
qls0ulp / play_music.h
Created March 21, 2020 06:03 — forked from octalmage/play_music.h
Google Music Class Dump - iOS
/*
* Generated by class-dump 3.1.2.
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
*/
struct CATransform3D {
float _field1;
float _field2;
float _field3;
@qls0ulp
qls0ulp / web-servers.md
Created January 18, 2020 07:13 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@qls0ulp
qls0ulp / index.html
Last active December 18, 2020 13:36
Seeded Procedural Music Generator
<header id="intro">
<section>
<h1>Procedurally Generated Music</h1>
<p>
This will infinitely generate a random song based on the <em>seed</em> that you provide it with.
Procedural generation ensures that the song will always be the exact
same song for the seed data you provide, but will be unique to any other seed.
</p>
<p>
Type anything into the input below and hit "Load" to generate and hear your song.
@qls0ulp
qls0ulp / index.html
Created December 25, 2019 16:35
rNNWxYY
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta id='descriptionTag' name="description" content="This is a description for the site.">
<title>t✨artistiK</title>
@qls0ulp
qls0ulp / README.MD
Created December 13, 2019 09:45 — forked from lmarkus/README.MD
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

@qls0ulp
qls0ulp / sites.csv
Last active September 13, 2019 04:31 — forked from AaronMT/sites.csv
$> monkeyrunner sites.py sites.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"http://google.com"
"http://facebook.com"
"http://youtube.com"
"http://yahoo.com"
"http://baidu.com"
"http://wikipedia.org"
"http://live.com"
"http://qq.com"
"http://amazon.com"
"http://twitter.com"
@qls0ulp
qls0ulp / google-dorks-2015.txt
Created June 12, 2019 00:09 — forked from heiswayi/google-dorks-2015.txt
Google Dorks List 2015
intitle:index.of .bash_history
intitle:index.of .sh_history
intitle:"Index of" index.html.bak
intitle:"Index of" index.php.bak
intitle:"Index of" index.jsp.bak
intitle:"Index of" ".htpasswd" htpasswd.bak
inurl:backup intitle:index.of inurl:admin
"Index of /backup"
intitle:"Index of" index.html~
intitle:"Index of" index.php~
@qls0ulp
qls0ulp / markdown-cheatsheet.md
Created May 13, 2019 16:09 — forked from heiswayi/markdown-cheatsheet.md
Ultimate Markdown Cheatsheet, based on GitHub-flavored Markdown

Typography

Headings

Headings from H1 to H6 are constructed with a # for each level.

# H1 Heading
## H2 Heading
### H3 Heading