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 | |
| a=`nodesite-cdn upload $1` | |
| e="${1#*.}" | |
| b=`2>/dev/null curl https://l.og.ax/https://cdn.nodesite.eu/{$a}.{$e}` | |
| notify-send "$1 uploaded to Nodesite CDN!" | |
| echo "Your URL is: $b" |
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
| package main | |
| import ( | |
| "log" | |
| "os/exec" | |
| "fmt" | |
| ) | |
| /// | |
| func main() { | |
| cmd := exec.Command("touch", "grass") |
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
| version=$(curl https://distro.ibiblio.org/archlinux/iso/latest/md5sums.txt --silent | grep iso$ | awk '{print $2}' | sed -e 's/archlinux-//g' -e 's/-x86_64.iso//g') | |
| wget -O /home/jonte/isos/archlinux.iso "https://ftp.acc.umu.se/mirror/archlinux/iso/"$version"/archlinux-"$version"-x86_64.iso" |
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 discord | |
| import random | |
| class MyClient(discord.Client): | |
| async def on_ready(self): | |
| print('Logged on as', self.user) | |
| async def on_message(self, message): | |
| # don't respond to ourselves | |
| if message.author == self.user: |
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 tweepy as tp | |
| import time | |
| import os | |
| # credentials to login to twitter api | |
| consumer_key = 'removed' | |
| consumer_secret = 'removed' | |
| access_token = 'removed' | |
| access_secret = 'removed' |