Skip to content

Instantly share code, notes, and snippets.

View ddo's full-sized avatar
🌚
Fixing the world

Ddo ddo

🌚
Fixing the world
View GitHub Profile
@ddo
ddo / useragent.js
Created November 9, 2020 10:04
useragent.js
// TODO: remove this, just for debugging.
chrome.storage.onChanged.addListener(function(changes, namespace) {
updateCache(function() {});
for (key in changes) {
var storageChange = changes[key];
console.log('Storage key "%s" in namespace "%s" changed. ' +
'Old value was "%s", new value is "%s".',
key,
namespace,
storageChange.oldValue,
@ddo
ddo / firebase.yml
Created February 25, 2020 15:58
github actions > firebase deploy
name: Build and Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
@ddo
ddo / gist:c679303025b84a2efd5dbbdf8ca56284
Created April 9, 2017 17:54 — forked from AliMD/gist:3344523
All github Emoji (Smiles)

All github Emoji (Smiles)

ali.md/emoji

:bowtie: | 😄 | 😆 | 😊 | 😃 | ☺️ | 😏 | 😍 | 😘 | :kissing_face: | 😳 | 😌 | 😆 | 😁 | 😉 | :wink2: | 👅 | 😒 | 😅 | 😓

😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | :neckbeard: | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷

😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨

~/.config/gtk-3.0/gtk.css:
VteTerminal,
TerminalScreen {
padding: 10px 10px 10px 10px;
-VteTerminal-inner-border: 10px 10px 10px 10px;
}
@ddo
ddo / chat.go
Last active August 29, 2015 14:17
package main
import (
"bufio"
"net"
)
type Client struct {
incoming chan string
outgoing chan string
@ddo
ddo / README.md
Last active March 24, 2023 19:17 — forked from nicerobot/README.md
uninstall-node.sh

To run this, you can try:

curl -ks https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh | bash

I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.

Alternatively,

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh

chmod +x ./uninstall-node.sh

[
{ "keys": ["crt+shift+t"], "command": "open_terminal" },
{ "keys": ["crt+shift+alt+t"], "command": "open_terminal_project_folder" }
]
@ddo
ddo / Preferences.sublime-settings
Last active September 14, 2017 10:26
Sublime settings
{
"font_face": "Source Code Pro",
"font_size": 13,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"theme": "Seti_orig.sublime-theme",
"translate_tabs_to_spaces": true,
USE tlnmd
GO
SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name = 'office_owner'
ORDER BY table_name
<?php
header( 'Content-type: text/html; charset=utf-8' );
echo 'Begin ...<br />';
for( $i = 0 ; $i < 10 ; $i++ )
{
echo $i . '<br />';
flush();
ob_flush();
sleep(1);