This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
if pidof sway >/dev/null 2>&1; then | |
echo 'sway is already running. exiting.' >&2 | |
exit 1 | |
fi | |
readonly XDG_CONFIG_HOME="$HOME/.config" | |
readonly LOG_FILE="$XDG_CONFIG_HOME/sway/log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Flutter: 2.10.1->3.0.4 <https://github.com/NixOS/nixpkgs/pull/173200> | |
# 043de04db8a6b0391b3fefaaade160514d866946 used below refers to latest commit on PR #173200. | |
{ | |
pkgs ? import (fetchTarball "https://github.com/nixos/nixpkgs/archive/043de04db8a6b0391b3fefaaade160514d866946.tar.gz") {}, | |
android-nixpkgs ? import (fetchTarball "https://github.com/tadfisher/android-nixpkgs/archive/master.tar.gz") {} | |
}: | |
let | |
android-sdk = android-nixpkgs.sdk (sdkPkgs: with sdkPkgs; [ | |
tools | |
emulator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/xml" | |
"fmt" | |
"log" | |
"os" | |
"sort" | |
"github.com/ikawaha/kagome/tokenizer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/xml" | |
"errors" | |
"log" | |
"net/http" | |
"os" | |
"os/exec" | |
"strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ~/.config/awesome/rc.lua | |
gears.timer { | |
timeout = 60 * 10, | |
autostart = true, | |
callback = function () | |
naughty.notify { | |
title = "Reminder!", | |
text = "Have you drank water recently?", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
readonly TERMINAL="${TERMINAL:-urxvt256c-ml}" | |
readonly EDITOR="${EDITOR:-vim}" | |
readonly FILE="$(mktemp)" | |
cleanup() { | |
test -f "$FILE" \ | |
&& rm -f "$FILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function scss-compile { | |
scss --compass -q \ | |
"skin/frontend/enterprise/$1/scss/$1.scss" \ | |
"skin/frontend/enterprise/$1/css/$1.css" \ | |
&& echo "Compile succeeded!" \ | |
|| echo "Compile failed!" | |
} | |
function scss-compile-debug { | |
scss --compass -g -l -t expanded \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('RELAY_HOST', '127.0.0.1'); | |
define('RELAY_PORT', 4545); | |
define('APP_TOKEN', 'REMOVED'); | |
header('Content-type: application/json'); | |
if (!isset($_REQUEST['token']) || $_REQUEST['token'] !== APP_TOKEN) { | |
echo json_encode(array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#define PERSON_NAME_UNSET 0x0001 | |
#define PERSON_GROUPS_UNSET 0x0002 | |
typedef struct collection_t { | |
void **items; | |
int count; | |
int available; |
NewerOlder