cabal clients
  cabal-core
cabal-core
  discovery-swarm
    dat-swarm-defaults
  kappa-view-level
 kappa-core
        
  
    
      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
    
  
  
    
  | ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security | 
- compile ffmpeg for arm https://github.com/fiorix/ffmpeg-arm
 - create youtube 'live event'. get rtmp url + session id
 - run this:
 
raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/<SESSION>
you can tweak -b and -fps to your liking. the settings above work well for 1080p. by not specifying width or height we get the full 1920x1080 resolution from the raspi camera
  
    
      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
    
  
  
    
  | /** | |
| * Author: Jason White | |
| * | |
| * Description: | |
| * Reads joystick/gamepad events and displays them. | |
| * | |
| * Compile: | |
| * gcc joystick.c -o joystick | |
| * | |
| * Run: | 
  
    
      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
    
  
  
    
  | // to compile (using mingw-w64) | |
| // g++ this_filename.c -lole32 | |
| // outputs current system volume (out of 0-100) to stdout, ex: output "23" | |
| // mostly gleaned from examples here: http://msdn.microsoft.com/en-us/library/windows/desktop/dd370839(v=vs.85).aspx | |
| // download a compiled version here: | |
| // https://sourceforge.net/projects/mplayer-edl/files/adjust_get_current_system_volume_vista_plus.exe.exe (updated, can set it too now!) | |
| #include <windows.h> | |
| #include <commctrl.h> | |
| #include <mmdeviceapi.h> | |
| #include <endpointvolume.h> | 
  
    
      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
    
  
  
    
  | r.db("ScrobbleGraph").table("scrobbles").groupedMapReduce( | |
| function(doc) { return doc("date").date() }, | |
| function(doc) { return [doc] }, | |
| function(left, right) { return left.add(right)} | |
| ) | |
| // It's better to use just an orderBy and group on the client because | |
| // - The database won't have to keep everything in memory | |
| // - It's faster because of the index | 
  
    
      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
    
  
  
    
  | func readLine(path string) { | |
| inFile, _ := os.Open(path) | |
| defer inFile.Close() | |
| scanner := bufio.NewScanner(inFile) | |
| scanner.Split(bufio.ScanLines) | |
| for scanner.Scan() { | |
| fmt.Println(scanner.Text()) | |
| } | |
| } | 
NewerOlder