This file contains hidden or 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 | |
set -eu | |
if [ $# -lt 1 ]; then | |
echo "Usage: benchexec <your command>" | |
exit 1 | |
fi | |
echo "Input your root password to change the CPU governor for disabling CPU-scaling." |
This file contains hidden or 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 | |
set -euo pipefail | |
if [ -z "$DISCORD_WEBHOOK_URL" ]; then | |
echo '$DISCORD_WEBHOOK_URL is not set. Please set and try again.' | |
exit 1 | |
fi | |
if [ -t 0 ]; then |
This file contains hidden or 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 | |
git tag | sort -V | tail -n 2 | xargs -n 2 bash -c 'latexdiff-vc -e utf8 --git --flatten --force -r $0 -r $1 -t CFONT main.tex' |
This file contains hidden or 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
const std = @import("std"); | |
const os = std.os; | |
const linux = os.linux; | |
const print = std.debug.print; | |
fn parent(_: usize) !void { | |
os.exit(0); | |
} | |
fn child() !void { |
This file contains hidden or 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
const std = @import("std"); | |
const os = std.os; | |
const fs = std.fs; | |
const fmt = std.fmt; | |
const heap = std.heap; | |
const ArenaAllocator = heap.ArenaAllocator; | |
const linux = os.linux; | |
const print = std.debug.print; | |
// no interface natively in zig for now |
This file contains hidden or 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
const { Client, Intents } = require('discord.js'); | |
/** | |
* Handler that will be called during the execution of a PostLogin flow. | |
* | |
* @param {Event} event - Details about the user and the context in which they are logging in. | |
* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login. | |
*/ | |
exports.onExecutePostLogin = async (event, api) => { | |
const identities = event.user.identities.filter((v) => { return v.connection == "discord"; }); |
This file contains hidden or 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
const std = @import("std"); | |
const heap = std.heap; | |
const http = std.http; | |
const Uri = std.Uri; | |
const debug = std.debug; | |
pub fn main() anyerror!void { | |
var arena = heap.ArenaAllocator.init(std.heap.page_allocator); | |
defer arena.deinit(); | |
const allocator = arena.allocator(); |
This file contains hidden or 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
miscord-dev |
This file contains hidden or 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 | |
set -eu | |
# You need to install annict-epgstation-connector first. | |
# $ brew tap musaprg/tap | |
# $ brew install annict-epgstation-connector | |
ANNICT_API_TOKEN=put-your-annict-token-here |
This file contains hidden or 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
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "ctrl+e", | |
"command": "-workbench.action.quickOpen" | |
}, | |
{ | |
"key": "ctrl+e", | |
"command": "-workbench.action.quickOpenNavigateNextInFilePicker", | |
"when": "inFilesPicker && inQuickOpen" |