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
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
bindkey -e | |
# End of lines configured by zsh-newuser-install | |
# The following lines were added by compinstall | |
zstyle :compinstall filename '/Users/ikubaku/.zshrc' | |
autoload -Uz compinit |
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
enable-ssh-support | |
pinentry-program /usr/bin/pinentry-x11 | |
# macOSなら下 | |
#pinentry-program /opt/homebrew/bin/pinentry-mac |
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
[user] | |
name = ikubaku | |
email = hide4d51@gmail.com | |
[init] | |
defaultBranch = dev | |
[pull] | |
rebase = false | |
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
[String]$sid = "<Fill in the old SID here>" | |
[String]$newuser = "<Fill in the new username here(domain\user)>" | |
$path = Get-ChildItem "<Fill in the directory to perform operation(note that the directory specified here will not be modified)>" -Recurse | |
foreach($file in $path) { | |
$acl = Get-Acl -LiteralPath $file.FullName | |
if($acl.Owner -eq "O:$sid") { | |
foreach($acc in $acl.access) { | |
if($acc.IdentityReference.Value -match $sid) { | |
$newacc = New-Object System.Security.AccessControl.FileSystemAccessRule($newuser, @($acc.FileSystemRights), @($acc.InheritanceFlags), @($acc.PropagationFlags), @($acc.AccessControlType)) |
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
base plasma a2jmidid alsa-utils appstream-glib ark bluez-alsa-git bluez-utils bubblewrap-suid cadence chromium cups diffutils dolphin dosfstools downgrade e2fsprogs efibootmgr emacs-nox fcitx fcitx-mozc fcitx-qt5 firefox flatpak gnome-themes-extra grub gst-plugins-good gwenview htop imagemagick inetutils jack2 kate kcm-fcitx kcm-wacomtablet kdeconnect keepassxc konsole lhasa lib32-gst-plugins-good lib32-ncurses5-compat-libs libappindicator-gtk3 libva-mesa-driver linux linux-firmware linux-headers linux-lts linux-lts-headers linux-rt linux-rt-headers linux-xanmod linux-xanmod-headers logrotate lvm2 man-db man-pages mesa nano ncurses5-compat-libs networkmanager non-mixer noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ocl-icd opencl-mesa openssh os-prober partitionmanager pavucontrol perl pkgstats print-manager pulseaudio pulseaudio-jack rkhunter rsync s-nail sddm spectacle sudo sysfsutils timidity++ ttf-dejavu unhide unrar unzip usbutils vi vlc vulkan-radeon vulkan-tools wget which whois xclip xdg-user-dirs x |
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/sh | |
### GPIO character device blinky(toggles the offset 2 line of the /dev/gpiochip0) | |
while :; do | |
gpioset -m time -u 500000 gpiochip0 2=0 | |
test $? -gt 128 && break | |
gpioset -m time -u 500000 gpiochip0 2=1 | |
test $? -gt 128 && break | |
done |
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/sh | |
### GPIO Sysfs interface blinky(toggles gpio2) | |
N_GPIO=2 | |
PERIOD=0.5 | |
unexport_gpio() { | |
echo $N_GPIO > /sys/class/gpio/unexport | |
exit 0 | |
} |
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 <stdio.h> | |
#include <string.h> | |
int main(void) { | |
char x[256]; | |
char r[512]; | |
strcpy(x, "#include <stdio.h>%c#include <string.h>%c%c%cint main(void) {%c char x[256];%c char r[512];%c strcpy(x, %c%s%c);%c sprintf(r, x, 10, 10, 10, 10, 10, 10, 10, 34, x, 34, 10, 10, 10, 10, 10);%c puts(r);%c return 0;%c}%c"); | |
sprintf(r, x, 10, 10, 10, 10, 10, 10, 10, 34, x, 34, 10, 10, 10, 10, 10); | |
puts(r); |
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
# graphs.py - Graph nodes and misc. functions for Python3 | |
# 2018 (C) ikubaku | |
# Published under the MIT License https://opensource.org/licenses/MIT | |
import sys | |
import math | |
import queue | |
import copy | |