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 | |
# $1 : original file | |
# $2 : destination file | |
# $3 : patterns file | |
if [ ! $# -eq 3 ]; | |
then | |
echo Usage : $0 original destination patterns | |
exit 1 | |
fi |
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 graphQLToJSON(query) { | |
return "{\"query\": \"query" + | |
query.replace(/\n/g, " ").replace(/"/g, "\\\"") + | |
"\"}"; | |
} |
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 | |
red="\033[0;31m" | |
NC="\033[0m" # No Color | |
for i in ./* | |
do | |
if [ -d "$i" ] | |
then | |
if [ -d "$i/.git" ] |
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
deviceId=$(lsusb | grep LaCie | cut -d ' ' -f 6) | |
echo options usb-storage quirks=${deviceId}:u | sudo tee /etc/modprobe.d/blacklist_uas_357d.conf | |
sudo update-initramfs -u | |
echo unplug the disk and reboot |
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
# run with & powershell.exe -executionpolicy bypass -file .\copy_cd.ps1 | |
Add-Type -TypeDefinition @' | |
using System; | |
using System.Runtime.InteropServices; | |
using System.ComponentModel; | |
namespace CDROM | |
{ | |
public class Commands |