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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r) | |
git clone https://github.com/tomaspinho/rtl8821ce | |
cd rtl8821ce | |
chmod +x dkms-install.sh | |
chmod +x dkms-remove.sh | |
sudo ./dkms-install.sh |
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
{ | |
"nodes": [{ | |
"id": "10", | |
"name": "0611 205 70 10" | |
},{ | |
"id": "11", | |
"name": "0611 205 70 11" | |
},{ | |
"id": "12", | |
"name": "0611 205 70 12" |
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/ruby | |
integer_attributes = ["order", "progress"] | |
require "nokogiri" | |
x = Nokogiri::XML File.read "swift3_db.xml" | |
referencing = x.xpath("//mxCell").find_all{|e| e["source"]}.collect{|e| e["source"]} | |
p referencing.sort | |
result = {} | |
x.xpath("//mxCell").find_all{|e| e["parent"] == "1" && !e["target"]}.each do |model| |
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
#HALLO |
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 | |
colleagues="accounting roy | |
accounting rainer | |
sales volker | |
sales vera | |
personell paula | |
personell peter | |
director gertrud | |
workscouncil gertrud |
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 | |
host="root@example" | |
date="$(date +%Y-%m-%d_%H-%M)" | |
for d in $(zfs list -o mountpoint); do | |
if [ $d = "MOUNTPOINT" ]; then continue; fi # skip table head | |
from="$from $d" | |
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
TYPE=hourly | |
if [[ "$TYPE" != "" ]]; then | |
for i in $(zfs list -t snapshot | grep @zfs-auto-snap_$TYPE | cut -f1 -d" "); do | |
echo "delete $(zfs list -t snapshot | grep @zfs-auto-snap_$TYPE | wc -l) snapshots?"; read | |
echo $i; zfs destroy $i | |
done | |
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
return do shell script "echo cpu $(ps axo %cpu | awk '{s+=$1}END{print s}' | cut -f 1 -d '.')%" |
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
return do shell script "echo cpu $(ps axo %cpu | awk '{s+=$1}END{print s}' | cut -f 1 -d '.')%" |
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 | |
# author: louwrentius | |
# source: http://louwrentius.com/zfs-on-linux-monitor-cache-hit-ratio.html | |
INTERVAL="$1" | |
if [ -z $INTERVAL ] | |
then | |
INTERVAL=5 |
NewerOlder