Skip to content

Instantly share code, notes, and snippets.

@mortenege
mortenege / GitHub SSH without agent
Created August 24, 2018 04:57
How to set up using GitHub SSH with keys without agent
1. This assumes an SSH keypair exists, usually in ~/.ssh (windows C:\Users\<username>\.ssh)
2. This assumes a git repository exists, otherwise create one as usual `git init`
3. Create a Repository on GitHub
4. Add SSH key to GitHub
5. Add the remote origin from gthub
@paulirish
paulirish / thing.js
Created May 7, 2018 17:18
log the clipboard contents
document.body.innerHTML = 'Paste or drop items onto this page. View results in console.';
function getPayload(item) {
const kind = item.kind;
switch (kind) {
case 'string': return new Promise(res => item.getAsString(res));
case 'file': return Promise.resolve(item.getAsFile());
default: throw new Error('unknown item kind! ' + kind);
}
@paulirish
paulirish / log-the-datatransfer-data.js
Created February 15, 2018 01:55
log paste and copy event payloads
document.body.innerHTML = 'Paste or drop items onto this page. View results in console.';
function getPayload(item) {
const kind = item.kind;
switch (kind) {
case 'string': return new Promise(res => item.getAsString(res));
case 'file': return Promise.resolve(item.getAsFile());
default: throw new Error('unknown item kind! ' + kind);
}
@jwbenson
jwbenson / Gist.js
Last active October 14, 2018 18:21
gist key value store
class Gist {
constructor(options) {
this.token = options.token;
this.gistID = options.gistID;
this.fileName = options.filename || 'data.json';
this.description = options.description || 'unnamed stash';
this.cacheData = null;
}
@barbchoy
barbchoy / palindrome.rb
Last active September 29, 2017 19:53
null created by barbchoy - https://repl.it/Br7Q/2500
# Write a method that takes a string and returns true if it is a
# palindrome. A palindrome is a string that is the same whether written
# backward or forward. Assume that there are no spaces; only lowercase
# letters will be given.
#
# Difficulty: easy.
def palindrome?(string)
i=0
palindrome_or_no=true
@beto2012
beto2012 / fox.m3u
Created September 18, 2017 02:00
fox.m3u
#EXTINF:-1 tvg-logo="https://s3-sa-east-1.amazonaws.com/projetos-artes/fullsize%2F2017%2F08%2F06%2F20%2FLogo-217018_269911_204600046_444574001.jpg" group-title="canal 01", fox (2017)
http://188.166.46.162/loadbalance/fox-hd/chunks.m3u8?pxAuth=70S6YkVdyLaoWcVNWP0RFDVhjYPM0pLR
@Pulimet
Pulimet / AdbCommands
Last active April 19, 2025 09:48
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@onigetoc
onigetoc / IPTV-big-list.m3u
Last active April 16, 2025 14:18
IPTV big list.m3u
#EXTM3U
#EXTINF:0 tvg-name="Newsmax TV" tvg-language="English" tvg-country="CA" tvg-id="Newsmax-TV" tvg-logo="https://i.imgur.com/Twkovic.gif" group-title="Entertainment",Newsmax TV
https://nmxlive.akamaized.net/hls/live/529965/Live_1/index.m3u8
#EXTINF:0 tvg-logo="https://i.imgur.com/ODIWC6n.jpg" tvg-name="Infowars1" tvg-id="Infowars1" group-title="News",Infowars Live1
https://infostream.secure.footprint.net/hls-live/infostream-infostream/_definst_/master.m3u8
#EXTINF:0 tvg-logo="https://i.imgur.com/ODIWC6n.jpg" tvg-name="Infowars" tvg-id="Infowars" group-title="News",Infowars Live 2
https://infowarslive-lh.akamaihd.net/i/infowarsevent_1@366809/master.m3u8
#EXTINF:0 tvg-name="Russia today News" tvg-country="RU" tvg-language="English" tvg-logo="https://i.imgur.com/QY4B8Hg.png" group-title="News",RT News
https://rt-news-gd.secure2.footprint.net/1103.m3u8
#EXTINF:0 tvg-name="Russia today USA" tvg-country="RU" tvg-language="English" tvg-logo="https://i.imgur.com/QY4B8Hg.png" group-title="News",RT USA
@ovidiaconescu
ovidiaconescu / fake-browser.css
Last active December 3, 2021 14:23
Create a browser window out of html and css
.fake-browser {
color: black;
}
.fake-browser-bar {
padding: 10px 8px 6px;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom: 2px solid #ccc;
@Adron
Adron / install-golang-apt-get.sh
Last active March 29, 2025 11:12
Installing golang via apt-get
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install golang
# Usually this is good to install golang, but alas the apt-get repo is usually out of sync with the latest.