root@zetacore0:~# zetacored query gov proposals
pagination:
next_key: null
total: "0"
proposals:
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
tell application "System Events" | |
-- this is a custom keyboard shortcut for command + control + left arrow (Mission Control -> Show Notification Center) | |
keystroke (ASCII character 28) using {control down, command down} | |
end tell | |
tell application "System Events" | |
set _first_notification to group 1 of UI element 1 of scroll area 1 of group 1 of window "Notification Center" of application process "NotificationCenter" | |
-- this activates the notification group | |
click _first_notification | |
-- this actually follows the notification |
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
root@rocm22:~/clpeak/build# ./clpeak -d 0 | |
Platform: AMD Accelerated Parallel Processing | |
Device: gfx1100 | |
Driver version : 3513.0 (HSA1.1,LC) (Linux x64) | |
Compute units : 42 | |
Clock frequency : 3125 MHz | |
Global memory bandwidth (GBPS) | |
float : 615.87 |
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
// ==UserScript== | |
// @name Mute preroll ads on twitch | |
// @namespace http://agartner.com | |
// @version 0.3 | |
// @author Alex Gartner | |
// @match https://www.twitch.tv/* | |
// ==/UserScript== | |
let interval; | |
let didMute = false; |
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
/* | |
Make sure your csv has these headers: | |
description,dateAcquired,dateSold,salesPrice,cost | |
Convert csv to json. | |
Paste the following code into the console. | |
Run fillAll with the json as an argument. | |
*/ |
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 | |
auth_email='YOUR_EMAIL' | |
auth_key='YOUR_API_KEY' | |
zone_id='YOUR_ZONE_ID' | |
#you must create the record before using this script | |
record_id='YOUR_RECORD_ID' | |
host_name='YOUR_HOST_NAME' |
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
const fs = require("fs"); | |
const login = require("facebook-chat-api"); | |
login({appState: JSON.parse(fs.readFileSync('appstate.json', 'utf8'))}, (err, api) => { | |
if(err) return console.error(err); | |
api.setOptions({selfListen: true}); | |
api.listen((err, event) => { | |
if(err) return console.error(err); |
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
// ==UserScript== | |
// @name vmware open console in new tab | |
// @namespace http://agartner.com | |
// @version 0.2 | |
// @description opens vmrc console in new tab rather than window. also forces html5 console if html5 = true. forces external if externalConsle = true | |
// @match https://vcloud.ialab.us/cloud/org/* | |
// @copyright 2014-2017, Alex Gartner | |
// ==/UserScript== | |
unsafeWindow.openPopoutConsole = function(vmName, vmId, vAppName, vmDevicesAvailable, buttonLabels, miscLabels, confirmationLabels, isVmrc) { |
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
[Unit] | |
Description=Forward TCP from 9000 to 9001 (bidirectional) | |
After=network.target | |
[Service] | |
Type=simple | |
User=nobody | |
Group=nobody | |
ExecStart=/usr/bin/socat TCP-LISTEN:9000,reuseaddr,fork TCP-LISTEN:9001,reuseaddr | |
Restart=always |
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 | |
cd /sys/class/hwmon | |
for dir in $(ls); do | |
cd $dir | |
if [[ $(cat name) = "amdgpu" ]]; then | |
echo 1 > pwm1_enable | |
cat pwm1_max > pwm1 | |
fi | |
cd .. |
NewerOlder