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
| Timer timer=new Timer(); | |
| int numtrials=1; | |
| int[] array; | |
| int[] timings1; | |
| int[] timings2; | |
| int[] timings3; | |
| void setup() { | |
| for (int n = 100; n<= 2000; n+=100) { | |
| timings1 = new int[numtrials]; |
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 GIF from 'gifuct-js/dist/gifuct-js.js' | |
| class GIFImage { | |
| constructor(data, label) { | |
| var oReq = new XMLHttpRequest(); | |
| oReq.open("GET", gifURL, true); | |
| oReq.responseType = "arraybuffer"; | |
| oReq.onload = function (oEvent) { | |
| var arrayBuffer = oReq.response; // Note: not oReq.responseText |
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
| #! /usr/bin/python | |
| #improvement of Weslley S Pereira's script by Jacob Trock | |
| try: | |
| # Python2 | |
| import Tkinter as tk | |
| except ImportError: | |
| # Python3 | |
| import tkinter as tk |
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
| How to clean up installed packages list to find (most) human-installed packages | |
| use this regex: | |
| ^.*(lib|-bin|conf|utils|data|kde|gnome|plugin|driver|python|xserver|theme|dev|linux|core|extra|common|settings|source|mono|doc).*$ | |
| then this escape sequence to clean it all up | |
| \n\n |
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
| for f in *.ogg; do ffmpeg -i "${f%}" "${f//-/}.flac"; done | |
| ffmpeg-normalize *.mp3 -c:a libmp3lame -b:a 320k -ext mp3 | |
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
| (GUI exts/themes)======================================== | |
| -widgets | |
| -event calendar | |
| -todolist | |
| -GUI | |
| -icon style-gnustep icons | |
| -plasma style-commonality | |
| -cursor style-sgi | |
| -application style-ms windows 9x | |
| -window decorations-CDE |
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
| sudo apt install v4l2loopback-dkms | |
| sudo modprobe v4l2loopback | |
| sudo ffmpeg -loglevel verbose -f x11grab -framerate 25 -video_size 1920x1080 -i :0.0 -f v4l2 -vf format=yuyv422 /dev/video2 |
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
| /* Amplify Params - DO NOT EDIT | |
| API_name_GRAPHQLAPIENDPOINTOUTPUT | |
| API_name_GRAPHQLAPIIDOUTPUT | |
| ENV | |
| REGION | |
| Amplify Params - DO NOT EDIT */const axios = require('axios'); | |
| const gql = require('graphql-tag'); | |
| const graphql = require('graphql'); | |
| const { print } = graphql; |
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
| mkdir filtered && for f in *.mp3 ; do ffmpeg -i "$f" -ab 128k -map_metadata -1 "./filtered/${f%.}.opus"; done |
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 | |
| curl https://boot.netboot.xyz/ipxe/netboot.xyz.efi | |
| sudo mkdir /boot/efi/EFI/rescue | |
| sudo cp ./netboot.xyz.efi /boot/efi/EFI/rescue/ | |
| efibootmgr --create --disk /dev/sdx --part [EFI_PARTITION_NUMBER] --loader /EFI/rescue/netboot.xyz.efi --label "Netboot.xyz" |
OlderNewer