Skip to content

Instantly share code, notes, and snippets.

@joncardasis
joncardasis / Storing-Images-On-Github.md
Last active May 10, 2024 14:57
Storing Images and Demos in your Repo

Storing Images and Demos in your Repo

In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.

How to

1. Clone a fresh copy of your repo

In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.

2. Create a new branch

Create a new branch in your repo by using git checkout --orphan assets

1. Create a folder in Dropbox or Google Drive

We'll use ~/Dropbox/Macnotes in this example

2. Copy the notes folder to the new folder in Dropbox or Google Drive

We'll use Finder for this instead of terminal as the cp -r command also copies the contents of all aliases and the Notes folder has a lot of those. Quit notes Open terminal and enable hidden files in Finder:

defaults write com.apple.finder AppleShowAllFiles YES.
@lcenchew
lcenchew / revisit-2024.md
Last active May 10, 2024 14:56
Always looking for great software to use ... #write

Revisiting Note Taking tools

Gravitated to Apple Notes and the new Journal app. Journal is still limited in feature but there are nice features I use often - like sending a screenshot to it. Cross platform is not so critical since I'd sunk deeper into Apple ecosystem.

Using

  • Apple Notes
  • Google Drive (Docs & Slides)
  • Github
{
"13HAaCcuKiXPc3GpkzDqPS": {
"checklist": "",
"completiondate": 7152022,
"creationdate": 7152022,
"deadline": 0,
"evening": false,
"heading": "",
"inbox": false,
"islogged": true,
@heiswayi
heiswayi / google-dorks-2015.txt
Created October 26, 2015 07:14
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~
@dideler
dideler / bot.rb
Last active May 10, 2024 14:55
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@lejoe
lejoe / 1-Desktop.md
Last active May 10, 2024 14:55
Mac desktop setup

Desktop

Development:

Terminal: Hyper
Configurable with JS and CSS

Editor: VS code
The reference.

@tbranyen
tbranyen / events.js
Last active May 10, 2024 14:54
Rethinking events using ES6 (https://tbranyen.com/events)
const bus = {};
const get = e => (bus[e] = bus[e] || new Set());
export const listeners = new Proxy(bus, { get });
export const emit = (e, ...args) => listeners[e].forEach(fn => fn(...args));
@tbranyen
tbranyen / webapp.config.json
Created October 23, 2018 18:15
Build out ESM, CJS, UMD, Script, UMD Minified, and Script Minified
{
"builds": [{
"input": "lib/**/*.js",
"output": "dist/esm",
"outputType": "module",
"debug": true
}, {
"input": "lib/**/*.js",
"output": "dist/cjs",
"outputType": "commonjs",
@tbranyen
tbranyen / console-react.jsx
Created January 29, 2019 22:55
A Console component for React
const Console = props => {
for (let method in console) {
if (method in props) {
console[method](props[method]);
}
}
return <></>;
};