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
/* | |
* @brief PMU example | |
* | |
* @note | |
* Copyright(C) NXP Semiconductors, 2013 | |
* All rights reserved. | |
* | |
* @par | |
* Software that is described herein is for illustrative purposes only | |
* which provides customers with programming information regarding the |
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
import java.util.concurrent.ConcurrentLinkedQueue; | |
public class Queues { | |
private static final ConcurrentLinkedQueue<Integer> queue = new ConcurrentLinkedQueue<>(); | |
private static boolean running = true; | |
public static void main(String[] args) throws InterruptedException { | |
new Thread(Queues::produce).start(); | |
new Thread(Queues::consume).start(); |
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
from i3pystatus import IntervalModule | |
import requests | |
class Teestube(IntervalModule): | |
""" | |
Shows if the Teestube is open or closed | |
Requires requests | |
""" | |
open_text = "TS Open" |
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
cd /tmp/ | |
# Till the date of publication of this script, the latest available download version is the 0.8.0 | |
wget -c https://github.com/ogham/exa/releases/download/v0.8.0/exa-linux-x86_64-0.8.0.zip | |
unzip exa-linux-x86_64-0.8.0.zip | |
# Move the unziped binary with the name "exa-linux-x86_64" to "/usr/local/bin/" with the exa name | |
if [ $(id -u) -eq 0 ]; then | |
mv exa-linux-x86_64 /usr/local/bin/exa |
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 [ "$#" -lt 3 ]; then | |
echo "Usage: [speed] [output file name] [files...]" | |
exit -1 | |
fi | |
mkdir gif | |
cd gif | |
echo -n "Copying..." |
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 | |
# Get your own path | |
path=$(dirname $(realpath $0)) | |
# Make sure that git uses the path of the script and not the current directory | |
git="git --work-tree=$path --git-dir=$path/.git/" | |
# Get today's date | |
day="$(date +'%d')" |
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/python3 | |
import re | |
import subprocess | |
import sys | |
############################################## | |
# Multi Monitor setup script by Simon Struck # | |
############################################## |