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
| # Create a new AnnotatedTimeLine chart | |
| @chart = GoogleVisualr::AnnotatedTimeLine.new | |
| # Add Column Headers | |
| @chart.add_column('date' , 'Created at') | |
| @chart.add_column('number', 'Open') | |
| @chart.add_column('number', 'Close') | |
| @chart.add_column('number', 'High' ) | |
| @chart.add_column('number', 'Low' ) | |
| @chart.add_column('number', 'Volume') |
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 | |
| ################################################################################ | |
| # @description This little helper can interactively guide you to rename | |
| # name and email of committer and author in your git history. | |
| # @author Fernandos https://github.com/X4 | |
| ################################################################################ | |
| echo "----------------------------------------" | |
| echo "Rename [0] name / [1] email / [2] both " | |
| echo "----------------------------------------" |
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
| #include "gwan.h" | |
| int main(int argc, char *argv[]) | |
| { | |
| xbuf_t *reply = get_reply(argv); | |
| xbuf_cat(reply, | |
| "<form method='POST'>" | |
| "<input name='post' type='text' value='Testing POST' />" | |
| "<input type='submit' value='POST'/>" |
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
| body { | |
| font: 13px/19px Arial, sans-serif; | |
| color: #666666; | |
| -webkit-font-smoothing: antialiased; | |
| -webkit-text-size-adjust: none; /* Fix for webkit rendering */ | |
| } | |
| body:before { | |
| content: ""; | |
| position: fixed; | |
| top: -10px; |
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
| start() { for arg in $*; do sudo /etc/rc.d/rc.$arg start; done } | |
| stop() { for arg in $*; do sudo /etc/rc.d/rc.$arg stop; done } | |
| restart() { for arg in $*; do sudo /etc/rc.d/rc.$arg restart; done } | |
| run() { for arg in $*; do sudo /etc/rc.d/rc.$arg run; done } | |
| test() { for arg in $*; do sudo /etc/rc.d/rc.$arg test; done } | |
| status() { for arg in $*; do sudo /etc/rc.d/rc.$arg status; 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
| #!/usr/bin/env bash | |
| # Start/stop/restart TrustLeap G-WAN Application Server. | |
| # @date 2012-12-24 | |
| # @author Ferhat | |
| # @version 0.98 | |
| ########################################################## | |
| # This is the directory you installed gwan into | |
| DIR="/opt/gwan" |
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 | |
| ifconfig wlan0 down && sleep 1 | |
| ifconfig wlan0 up && sleep 1 | |
| echo "Reset WiFi" | |
| rmmod iwldvm && sleep 1 | |
| rmmod iwlwifi && sleep 1 | |
| echo "Remove Intel kernel modules" |
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
| # MAC manipulators | |
| alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`' | |
| alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE' |
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 | |
| # ------------------------------------------------------- | |
| # @author X4 | |
| # @version 1.0 | |
| # | |
| # HowTo: | |
| # You can add a new GlobalHotkey to the media forward an back buttons for example. | |
| # There are other ways to run this script: Button or Keypresses, Plasmoids, Events.. | |
| # | |
| # Use these parameters when on XFCE for example: |
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 | |
| set -e | |
| WALLPAPER_PATH="$HOME/Bilder/Sample Pictures/" | |
| create_queue() { | |
| find $WALLPAPER_PATH -type f -iregex '.*\.\(jpg\|gif\|png\|jpeg\)$' > /tmp/krawall_queue | |
| } | |
| shuffle_wallpapers() { |
OlderNewer