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/sh | |
services=`curl -sSL http://localhost:40772/api/services` | |
len=`echo $services | jq length` | |
cat<<EOF > config_logo.yml | |
resource: | |
logos: | |
EOF |
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 | |
if [ $# != 1 ]; then | |
echo "usage: $0 <target firmware>.hex" | |
exit 0 | |
fi | |
read -p "target file is $1. correct? [Yn] " yn | |
case "$yn" in | |
"" | [yY]*);; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
void usage(char *cmd) | |
{ | |
fprintf(stderr, "%s: you need to pass arguments at least 1\n", cmd); | |
return; | |
} | |
int main(int argc, char **argv) |
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
.PHONY: all unpack | |
GEO_DICT=SKK-JISYO.geo.utf8 | |
EN_DICT=SKK-JISYO.edict.utf8 | |
DICTS=$(GEO_DICT) $(EN_DICT) | |
WORD_LISTS=2ch-words.txt 6ch-words.txt | |
all: $(WORD_LISTS) | |
@for i in `seq 50`; \ |
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
.PHONY: all yakisuto namadere wagahai unpack | |
JA_DICT=SKK-JISYO.L.utf8 | |
EN_DICT=SKK-JISYO.edict.utf8 | |
DICTS=$(JA_DICT) $(EN_DICT) | |
WORD_LISTS=4ch-words.txt 6ch-words.txt en-words-ea5.txt en-words-n5.txt en-words-ic.txt | |
all: $(WORD_LISTS) | |
@for i in `seq 5`; \ |
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
#include <sys/types.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define check(v) \ | |
do { \ | |
if ((v) < 0) { \ |
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
$action = New-ScheduledTaskAction -Execute "scoop.exe" -Argument "update" | |
$trigger = New-ScheduledTaskTrigger -DaysInterval 1 -Daily -At "14:00 PM" | |
$settings = New-ScheduledTaskSettingsSet -Hidden | |
$user = $env:username | |
Register-ScheduledTask -TaskPath \ -TaskName scoop_update -Action $action -Trigger $trigger -User $user -Settings $settings | |
Enable-ScheduledTask -TaskPath \ -TaskName scoop_update | |
Start-ScheduledTask -TaskPath \ -TaskName scoop_update |
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
#/usr/bin/fish | |
curl -LO https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.8.tar.xz | |
tar -xJf linux-5.8.tar.xz | |
cd linux-5.8 | |
for i in ( find . -maxdepth 1 -type d ! \( -name '.*' -o -name 'Documentation' -o -name 'LICENSES' -o -name 'samples' -o -name 'scripts' -o -name 'tools' \) ) | |
echo $i; | |
cloc $i; | |
end > ../linux_loc.txt |
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/sh | |
echo `grep 'cpu family\|stepping\|model' /proc/cpuinfo | grep -v 'model name' | sort | uniq | awk -F':' '{print $2}' | tr -d ' ' | tr '\n' '-' | sed 's/-$/\n/'`/`sed 's/^0x//' /sys/devices/system/cpu/cpu0/microcode/processor_flags` | xargs -I{} bzgrep {} /usr/share/doc/intel-microcode-*/releasenote.bz2 |
NewerOlder